Changeset 1356 for trunk/NVTK/INSTALL/JOBS
- Timestamp:
- 2009-03-31T11:09:13+02:00 (15 years ago)
- Location:
- trunk/NVTK/INSTALL/JOBS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NVTK/INSTALL/JOBS/assessment.ksh
r1301 r1356 72 72 REV_USE=$( (awk '/Revision:/ {print $2}' specifs.txt) ) 73 73 TITLE="NEMO VALIDATION ${EXPER} : $CONF on $TARGET" 74 EMAIL='c tlod@locean-ipsl.upmc.fr'74 EMAIL='cethe@lsce.ipsl.fr' 75 75 76 76 \rm endjob.txt 2> /dev/null … … 477 477 478 478 if [ ${runt} != 'mon' ] ; then 479 echo " " >> endjob.txt 480 echo " ---> Reproductibility mon .vs. ${runt} ? : " >> endjob.txt 481 echo " ------------------------------------- " >> endjob.txt 482 483 filemon="mon/LONG/${EXPER}/solver.stat" ; filexxx="${runt}/LONG/${EXPER}/solver.stat" 484 xfilemon=0 485 486 checkfile ${filemon} 'endjob.txt' NORM yes yes ; xfilemon=$? 487 checkfile ${filexxx} 'endjob.txt' NORM no yes ; xfilemon=$? 479 480 if [ ${CONF} != 'ORCA2_OFF_PISCES' ] ; then 481 echo " " >> endjob.txt 482 echo " ---> Ocean Reproductibility mon .vs. ${runt} ? : " >> endjob.txt 483 echo " ------------------------------------------- " >> endjob.txt 484 485 filemon="mon/LONG/${EXPER}/solver.stat" ; filexxx="${runt}/LONG/${EXPER}/solver.stat" 486 xfilemon=0 487 488 checkfile ${filemon} 'endjob.txt' NORM yes yes ; xfilemon=$? 489 checkfile ${filexxx} 'endjob.txt' NORM no yes ; xfilemon=$? 488 490 489 mak_diff_file -x ${xfilemon} -a ${filemon} -b ${filexxx} -r ${runt} -s LONG -k repro 491 mak_diff_file -x ${xfilemon} -a ${filemon} -b ${filexxx} -r ${runt} -s LONG -k repro 492 fi 490 493 491 if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 492 echo " " >> endjob.txt 493 echo " ---> BIO Reproductibility mon .vs. ${runt} ? : " >> endjob.txt 494 echo " ----------------------------------------- " >> endjob.txt 495 494 if [ ${CONF} = 'GYRE_LOBSTER' -o ${CONF} = 'ORCA2_LIM_PISCES' -o ${CONF} = 'ORCA2_OFF_PISCES' ] ; then 496 495 # check that ocean.output files exist 497 496 filemon="mon/LONG/${EXPER}/ocean.output" ; filexxx="${runt}/LONG/${EXPER}/ocean.output" … … 504 503 filemon="mon/LONG/${EXPER}/tracer.stat" ; filexxx="${runt}/LONG/${EXPER}/tracer.stat" 505 504 xfilemon=0 506 507 ./BIO_${TARGET}.ksh -a ${filemon} -b ${filexxx} -c ocean.output 505 if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 506 echo " " >> endjob.txt 507 echo " ---> LOBSTER Reproductibility mon .vs. ${runt} ? : " >> endjob.txt 508 echo " --------------------------------------------- " >> endjob.txt 509 510 ./LOBSTER_stat.ksh -a ${filemon} -b ${filexxx} -c ocean.output 511 else 512 echo " " >> endjob.txt 513 echo " ---> PISCES Reproductibility mon .vs. ${runt} ? : " >> endjob.txt 514 echo " --------------------------------------------- " >> endjob.txt 515 516 ./PISCES_stat.ksh -a ${filemon} -b ${filexxx} -c ocean.output 517 fi 508 518 509 519 checkfile ${filemon} 'endjob.txt' NORM yes ; xfilemon=$? … … 527 537 528 538 for runt in ${LRTYPE} ; do 529 530 echo " " >> endjob.txt 531 echo " ---> ${runt} restartability ? : " >> endjob.txt 532 echo " -------------------------- " >> endjob.txt 533 534 file1="${runt}/1_SHORT/${EXPER}/solver.stat" ; file2="${runt}/2_SHORT/${EXPER}/solver.stat" ; file3="${runt}/LONG/${EXPER}/solver.stat" 535 xfile1=0 539 if [ ${CONF} != 'ORCA2_OFF_PISCES' ] ; then 540 echo " " >> endjob.txt 541 echo " ---> ${runt} ocean restartability ? : " >> endjob.txt 542 echo " -------------------------------- " >> endjob.txt 543 544 file1="${runt}/1_SHORT/${EXPER}/solver.stat" ; file2="${runt}/2_SHORT/${EXPER}/solver.stat" ; file3="${runt}/LONG/${EXPER}/solver.stat" 545 xfile1=0 546 #------- 547 checkfile ${file1} 'endjob.txt' NORM yes yes ; xfile1=$? 548 checkfile ${file2} 'endjob.txt' NORM no yes ; xfile1=$? 549 # 550 cat ${file1} ${file2} > short_solver_${runt}.stat 551 mak_diff_file -x ${xfile1} -a ${file3} -b short_solver_${runt}.stat -r ${runt} -k resta 552 \rm short_solver_${runt}.stat 553 fi 536 554 #------- 537 checkfile ${file1} 'endjob.txt' NORM yes yes ; xfile1=$? 538 checkfile ${file2} 'endjob.txt' NORM no yes ; xfile1=$? 539 # 540 cat ${file1} ${file2} > short_solver_${runt}.stat 541 mak_diff_file -x ${xfile1} -a ${file3} -b short_solver_${runt}.stat -r ${runt} -k resta 542 \rm short_solver_${runt}.stat 543 544 #------- 545 546 if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 547 echo " " >> endjob.txt 548 echo " ---> ${runt} BIO restartability ? : " >> endjob.txt 549 echo " ------------------------------ " >> endjob.txt 555 556 if [ ${CONF} = 'GYRE_LOBSTER' -o ${CONF} = 'ORCA2_LIM_PISCES' -o ${CONF} = 'ORCA2_OFF_PISCES' ] ; then 550 557 551 558 # check that ocean.output files exist … … 560 567 xfile1=0 561 568 562 ./BIO_${TARGET}.ksh -a ${file1} -b ${file2} -c ocean.output 569 if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 570 echo " " >> endjob.txt 571 echo " ---> ${runt} LOBSTER restartability ? : " >> endjob.txt 572 echo " ---------------------------------- " >> endjob.txt 573 574 ./LOBSTER_stat.ksh -a ${file1} -b ${file2} -c ocean.output 575 else 576 echo " " >> endjob.txt 577 echo " ---> ${runt} PISCES restartability ? : " >> endjob.txt 578 echo " --------------------------------------------- " >> endjob.txt 579 580 ./PISCES_stat.ksh -a ${file1} -b ${file2} -c ocean.output 581 fi 582 563 583 564 584 checkfile ${file1} 'endjob.txt' NORM yes ; xfile1=$? -
trunk/NVTK/INSTALL/JOBS/cron_jobs.ksh
r1301 r1356 17 17 18 18 CONF=$1 19 CONFS=$2 19 20 LJOBS=qstat 20 21 if [ ${CONF} == 'ORCA2_LIM' ] ; then22 CONFS=ORCA223 elif [ ${CONF} == 'GYRE_LOBSTER' ] ; then24 CONFS=GYRE_25 elif [ ${CONF} == 'ZAGRIF' ] ; then26 CONFS=ZAGRI27 else28 CONFS=${CONF}29 fi30 21 31 22 JOBS_LIST=` ${LJOBS} | grep -c ${CONFS}` … … 37 28 fi 38 29 sleep 300 39 ./cron_jobs.ksh ${CONF} &30 ./cron_jobs.ksh ${CONF} ${CONFS} & 40 31 exit 41 32 -
trunk/NVTK/INSTALL/JOBS/lance_batch.ksh
r1321 r1356 59 59 # PRC : total number of processors which will be used 60 60 ########################################################## 61 IODIR=/ Volumes/FENUA/ORCA2_LIM_nemo_v2_IO61 IODIR=/u/rech/eee/reee512/NEMO/ 62 62 PRC=8 63 TARGET= osxxlf63 TARGET=sx8brodie 64 64 ########################################################## 65 65 ##### End Users modifications … … 135 135 # Adapt header (batch jobs) and concatanate it with core job 136 136 # -------------------------------------------------------------- 137 if [ ${CONF} == 'ORCA2_LIM' ] ; then 138 CONFS=ORCA2 139 elif [ ${CONF} == 'GYRE' ] ; then 140 CONFS=GYREO 141 elif [ ${CONF} == 'GYRE_LOBSTER' ] ; then 142 CONFS=GYREL 143 elif [ ${CONF} == 'ORCA2_LIM_PISCES' ] ; then 144 CONFS=OR2LP 145 elif [ ${CONF} == 'ORCA2_OFF_PISCES' ] ; then 146 CONFS=OR2OP 147 elif [ ${CONF} == 'ZAGRIF' ] ; then 148 CONFS=ZAGRI 149 else 150 CONFS=${CONF} 151 fi 152 137 153 case ${TARGET} in 138 154 'osxxlf' ) … … 140 156 'ax6_mono' ) 141 157 CAR_JNAM=$( grep '\# @ job_name' jhd_${TARGET}_${RUN} ) 142 sed -e "s%$CAR_JNAM%\# @ job_name = ${RUN}${CONF }%" \158 sed -e "s%$CAR_JNAM%\# @ job_name = ${RUN}${CONFS}%" \ 143 159 jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp ;; 144 160 'aix6' ) 145 161 CAR_JNAM=$( grep '\# @ job_name' jhd_${TARGET}_${RUN} ) 146 162 CAR_JMPI=$( grep '\# @ total_tasks' jhd_${TARGET}_${RUN} ) 147 sed -e "s%$CAR_JNAM%\# @ job_name = ${RUN}${CONF }%" \163 sed -e "s%$CAR_JNAM%\# @ job_name = ${RUN}${CONFS}%" \ 148 164 -e "s%$CAR_JMPI%\# @ total_tasks = ${PRC}%" \ 149 165 jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp ;; … … 154 170 if [ ${RUN} = 'mpi' -o ${RUN} = 'omp' ] ; then 155 171 CAR_JMPI=$( grep '\#PBS -l cpunum_job' jhd_${TARGET}_${RUN} ) 156 sed -e "s%$CAR_JNAM%\#PBS -N ${RUN}${CONF }%" \157 -e "s%$CAR_JNAMO%\#PBS -o ${RUN}${CONF }_std%" \158 -e "s%$CAR_JNAME%\#PBS -e ${RUN}${CONF }_err%" \172 sed -e "s%$CAR_JNAM%\#PBS -N ${RUN}${CONFS}%" \ 173 -e "s%$CAR_JNAMO%\#PBS -o ${RUN}${CONFS}_std%" \ 174 -e "s%$CAR_JNAME%\#PBS -e ${RUN}${CONFS}_err%" \ 159 175 -e "s%$CAR_JMPI%\#PBS -l cpunum_job=${PRC}%" \ 160 176 jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp 161 177 else 162 sed -e "s%$CAR_JNAM%\#PBS -N ${RUN}${CONF }%" \163 -e "s%$CAR_JNAMO%\#PBS -o ${RUN}${CONF }_std%" \164 -e "s%$CAR_JNAME%\#PBS -e ${RUN}${CONF }_err%" \178 sed -e "s%$CAR_JNAM%\#PBS -N ${RUN}${CONFS}%" \ 179 -e "s%$CAR_JNAMO%\#PBS -o ${RUN}${CONFS}_std%" \ 180 -e "s%$CAR_JNAME%\#PBS -e ${RUN}${CONFS}_err%" \ 165 181 jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp 166 182 fi ;; … … 296 312 297 313 if [ ${TARGET} != 'osxxlf' ]; then 298 ./cron_jobs.ksh ${CONF} &314 ./cron_jobs.ksh ${CONF} ${CONFS} & 299 315 fi 300 316 fi
Note: See TracChangeset
for help on using the changeset viewer.