Fixed bug: added option -singleCompThread option to the matlab command when $NSLOTS is 1.
Fixed bug: added option -singleCompThread option to the matlab command when $NSLOTS is 1.

Otherwise, MATLAB would use multiple threads (on multiple processors) when only one processor is requested (through qsub -pe).

Doesn't seem necessary to change the case when NSLOTS is greater than 1 because each of the parallel workers seem to stick to one thread by default.

TODO: create a way to specify the -pe option for qsub without using multiple MATLAB workers.

jcchau/grid-scripts