/[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.1 by jmc, Sun Nov 8 17:33:13 2015 UTC revision 1.5 by jmc, Thu Dec 29 22:05:32 2016 UTC
# Line 14  else Line 14  else
14    TEST_LIST=$*    TEST_LIST=$*
15  fi  fi
16    
17  QSUB="qsub"  #QSUB="qsub"
18  QSTAT="qstat"  #QSTAT="qstat"
19  dNam=`hostname -s`  #dNam=`hostname -s`
20  HERE="$HOME/test_$dNam"  QSUB="/usr/bin/sbatch"
21  TST_DIR="/net/fs09/d0/jm_c/test_${dNam}"  QSTAT="/usr/bin/qstat"
22    dNam='svante'
23    HERE="$HOME/test_${dNam}"
24    TST_DISK="/net/fs09/d0"
25    TST_DIR="$TST_DISK/jm_c/test_${dNam}"
26  logPfix='test_submit'  logPfix='test_submit'
27    
28  SUB_DIR="$HERE/$dNam"  SUB_DIR="$HERE/$dNam"
# Line 50  export LC_ALL="en_US.UTF-8" Line 54  export LC_ALL="en_US.UTF-8"
54  #  Turn off stack limit for FIZHI & AD-tests  #  Turn off stack limit for FIZHI & AD-tests
55  ulimit -s unlimited  ulimit -s unlimited
56    
57  if test -f /etc/profile.d/modules.sh ; then  if test -f /etc/profile.d/modules.sh    ; then . /etc/profile.d/modules.sh    ; fi
58      . /etc/profile.d/modules.sh  if test -f /etc/profile.d/zz_modules.sh ; then . /etc/profile.d/zz_modules.sh ; fi
 fi  
59  #- load standard modules:  #- load standard modules:
60  module add fedora torque maui svante  #module add fedora slurm maui svante
61    module add slurm
62  module list                                             >> $LOG_FIL 2>&1  module list                                             >> $LOG_FIL 2>&1
63    
64  #- method to acces CVS:  #- method to acces CVS:
# Line 67  gcmDIR='MITgcm' Line 71  gcmDIR='MITgcm'
71  exp2add=''  exp2add=''
72  updFile='updated_code'  updFile='updated_code'
73    
74    echo "cd $TST_DISK ; pwd (x2)" | tee -a $LOG_FIL
75    cd $TST_DISK    | tee -a $LOG_FIL 2>&1
76    pwd             | tee -a $LOG_FIL
77    sleep 30
78    pwd             | tee -a $LOG_FIL
79  if test ! -d $TST_DIR ; then  if test ! -d $TST_DIR ; then
80     echo -n "Creating a working dir: $TST_DIR ..."       | tee -a $LOG_FIL     echo -n "Creating a working dir: $TST_DIR ..."       | tee -a $LOG_FIL
81     /bin/rm -rf $TST_DIR    #/bin/rm -rf $TST_DIR
82     mkdir $TST_DIR     mkdir $TST_DIR
83     retVal=$?     retVal=$?
84     if test "x$retVal" != x0 ; then     if test "x$retVal" != x0 ; then

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22