#!/bin/csh
#
#  C-shell script to execute GAMESS test jobs, one job after the next.
#  Each output is put in its own separate log file in the gamess root.
#  Invoke this by typing 'runall'.
#
#  The jobs are run in batch queues if DQS is found on the system.
#
#  A script to check the results is ~/gamess/tools/checktst/checktst,
#  Edit this file to set the base path to GAMESS, and execute it to be
#  sure all the jobs TERMINATED NORMALLY, and got correct numbers too.
#
chdir /u1/mike/gamess
set VERNO=00
#
foreach NUM ( 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 \
              16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 \
              31 32 33 34 35 36 37 38 39 40 )
  if (-e /usr/local/bin/dqs_execd) then
     gms -v $VERNO -q ti -l exam$NUM.log exam$NUM
     sleep 5
  else
     rungms exam$NUM $VERNO 1  >&  exam$NUM.log
  endif
end
