update to @SSwarper to set OMP_NUM_THREADS automatically for gridengine queues

Hey,

Could the code at the top of @SSwarper that sets OMP_NUM_THREADS based on CPU resources allocated in queueing system be modified (as follows) to work with GridEngine as well as SLURM?


# set number of threads if run via SLURM or Grid Engine

if ( $?SLURM_CPUS_PER_TASK ) then
 setenv OMP_NUM_THREADS $SLURM_CPUS_PER_TASK
else if ( $?NSLOTS ) then
 setenv OMP_NUM_THREADS $NSLOTS
endif

Thanks.

Colm.

OK. I just pushed this change to GitHub.

Thanks, Bob.