; Batch for IDL. ; Note there is no PRO or END state at the beginning or end. ; See the docs for batch program syntax: https://www.harrisgeospatial.com/docs/BatchJobs.html ; Convert the NSLOTS environment variable to a number ; and assign it to limit the number of IDL threads. ; If NSLOTS is not defined then set the number ; of allowed threads to 1 so that IDL behaves on ; login nodes. IF STRLEN(GETENV('NSLOTS')) GT 0 THEN CPU, TPOOL_NTHREADS = LONG(GETENV('NSLOTS')) ELSE CPU, TPOOL_NTHREADS = 1 ; Now run the procedure in my_idl_test.pro my_idl_test