/[MITgcm]/MITgcm_contrib/test_scripts/svante/test_submit_svante
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/svante/test_submit_svante

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7 by jmc, Fri Jan 13 22:41:26 2017 UTC revision 1.8 by jmc, Sat Jan 14 16:20:04 2017 UTC
# Line 16  fi Line 16  fi
16    
17  headNode=`hostname -s`  headNode=`hostname -s`
18  #QSUB="qsub"  #QSUB="qsub"
19  #QSTAT="qstat -a | grep $USER"  #QSTAT="qstat -u $USER"
20  #dNam=$headNode  #dNam=$headNode
21  QSUB="/usr/bin/sbatch"  QSUB="/usr/bin/sbatch"
22  QSTAT="/usr/bin/squeue -u $USER"  QSTAT="/usr/bin/squeue -u $USER"
# Line 150  cd $OUT_DIR Line 150  cd $OUT_DIR
150      esac      esac
151      BATCH_SCRIPT="test_svante_$sfx"      BATCH_SCRIPT="test_svante_$sfx"
152      if test -f $SUB_DIR/$BATCH_SCRIPT ; then      if test -f $SUB_DIR/$BATCH_SCRIPT ; then
153        JOB="tst_"$i        JOB="t_"$i
154        job_exist=`$QSTAT | grep $JOB | wc -l`        job_exist=`$QSTAT | grep $JOB | wc -l`
155        if test "x_$job_exist" = x_0 ; then        if test "x_$job_exist" = x_0 ; then
156          #-- move previous output file          #-- move previous output file

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.22