Changeset 2199
- Timestamp:
- 09/11/09 06:53:32 (15 years ago)
- Location:
- issm/trunk/cron
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/cron/nightlyrun.sh
r2192 r2199 51 51 HOST_NAME=$(host_name $OS); 52 52 START_TIME=$(timer) 53 54 #Initialize nightly run output 55 rm -rf $ISSM_DIR/test/Verification/NightlyRun 56 mkdir $ISSM_DIR/test/Verification/NightlyRun 57 cat << END > $ISSM_DIR/test/Verification/NightlyRun/nightly.log 58 today: $(echo $TODAY) 59 user: $(whoami) 60 host: $(echo $HOST_NAME) 61 OS: $(echo $OS) 62 release: $(echo "issm") 63 END 53 ISSM_RELEASE="issm"; 64 54 65 55 #create ISSM variables … … 156 146 INSTALL_TIME=$(timer) 157 147 ELAPSED_INSTALL=$(timer $START_TIME) 158 cat << END >> $ISSM_DIR/test/Verification/NightlyRun/nightly.log 148 rm -rf $ISSM_DIR/test/Verification/NightlyRun 149 mkdir $ISSM_DIR/test/Verification/NightlyRun 150 cat << END > $ISSM_DIR/test/Verification/NightlyRun/nightly.log 151 today: $(echo $TODAY) 152 user: $(whoami) 153 host: $(echo $HOST_NAME) 154 OS: $(echo $OS) 155 release: $(echo "issm") 159 156 elapsed_install: $(echo $ELAPSED_INSTALL) 160 157 END -
issm/trunk/cron/run.sh
r2192 r2199 10 10 source $1; 11 11 12 #check NUMCPUS_RUN options 13 if [ "$NUMCPUS_RUN" = "" ] 14 then 15 echo "NUMCPUS_RUN option not found, defaulting to NUMCPUS_RUN = 1" 16 NUMCPUS_RUN=1 17 fi 18 12 19 #create softlink to startup 13 20 cd $ISSM_DIR/test/Verification/NightlyRun/ 14 if [ -e startup.m ]15 then16 rm startup.m17 fi18 21 ln -s $ISSM_DIR/startup.m . 19 22 … … 25 28 warning off %necessary to avoid a nightly.log of several Go for cielo_parallel 26 29 try, 27 $(if [ "$ 1" = "" ]30 $(if [ "$NROPTIONS" = "" ] 28 31 then 29 echo "nightlyrun ;"32 echo "nightlyrun('rank',$i,'numprocs',$NUMCPUS_RUN);" 30 33 else 31 34 echo "nightlyrun($NROPTIONS,'rank',$i,'numprocs',$NUMCPUS_RUN);"
Note:
See TracChangeset
for help on using the changeset viewer.