job.sh 786 Bytes
#! /bin/ksh
#
# For a single task, 4 cpu job (OpenMP) one would use:
#
# @ resources        = ConsumableCpus(1) ConsumableMemory(500)
#
#
# @ wall_clock_limit = 4:00:00
# @ class            = normal
# @ error            = ENKF.ECO.$(Host).$(jobid).err
# @ output           = ENKF.ECO.$(Host).$(jobid).out
# @ notification     = never
# @ job_type         = parallel
# @ job_name         = EnKF
# @ account_no       = nn2993k
# @ queue
                                                                                          
export OMP_NUM_THREADS=1

if [ $# -ne 0 ]
then
   echo "usage: $0 no arg"
   exit
fi

nrsamp=10
while [ $nrsamp -le 10 ]
do 
  sed -e "s/nrsamp/${nrsamp}/g" inpar.in_mal > inpar.in
  if  ./eco
  then
     nrsamp=`expr $nrsamp + 10`
  else
     exit
  fi
done