New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 815 for branches/dev_001_SBC/VALID/2INSTALL/JOBS – NEMO

Ignore:
Timestamp:
2008-02-08T16:33:44+01:00 (16 years ago)
Author:
ctlod
Message:

dev_001_SBC: Merge of VALID/HEAD directories with the trunk -r 731:HEAD

Location:
branches/dev_001_SBC/VALID/2INSTALL/JOBS
Files:
6 edited
4 copied

Legend:

Unmodified
Added
Removed
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/assessment.ksh

    r695 r815  
    435435         
    436436        mak_diff_file -x ${xfilemon} -a ${filemon} -b ${filexxx} -r ${runt} -s LONG -k repro 
     437         
     438        if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 
     439            echo "                                                    " >> endjob.txt 
     440            echo "   ---> BIO Reproductibility mon .vs. ${runt} ? :   " >> endjob.txt 
     441            echo "        -----------------------------------------   " >> endjob.txt 
     442 
     443            # check that ocean.output files exist 
     444            filemon="mon/LONG/ocean.output" ;  filexxx="${runt}/LONG/ocean.output" 
     445            xfilemon=0 
     446 
     447            checkfile ${filemon} 'endjob.txt' NORM yes ; xfilemon=$? 
     448            checkfile ${filexxx} 'endjob.txt' NORM ; xfilemon=$? 
     449             
     450            # check that tracer.stat files have been built based on ocean.output ones 
     451            filemon="mon/LONG/tracer.stat" ;  filexxx="${runt}/LONG/tracer.stat" 
     452            xfilemon=0 
     453             
     454            ./BIO_${TARGET}.ksh -a ${filemon} -b ${filexxx} -c ocean.output 
     455 
     456            checkfile ${filemon} 'endjob.txt' NORM yes ; xfilemon=$? 
     457            checkfile ${filexxx} 'endjob.txt' NORM ; xfilemon=$? 
     458             
     459            mak_diff_file -x ${xfilemon} -a ${filemon} -b ${filexxx} -r ${runt} -s LONG -k repro 
     460        fi 
    437461    fi 
    438462done 
     
    466490     
    467491    #------- 
     492 
     493    if [ ${CONF} = 'GYRE_LOBSTER' ] ; then 
     494        echo "                                                    " >> endjob.txt 
     495        echo "   ---> ${runt} BIO restartability ? :              " >> endjob.txt 
     496        echo "        ------------------------------              " >> endjob.txt 
     497 
     498       # check that ocean.output files exist 
     499        file1="${runt}/2_SHORT/ocean.output" ;  file2="${runt}/LONG/ocean.output" 
     500        xfile1=0 
     501 
     502        checkfile ${file1} 'endjob.txt' NORM yes ; xfile1=$? 
     503        checkfile ${file2} 'endjob.txt' NORM     ; xfile1=$? 
     504             
     505        # check that tracer.stat files have been built based on ocean.output ones 
     506        file1="${runt}/2_SHORT/tracer.stat" ;  file2="${runt}/LONG/tracer.stat" 
     507        xfile1=0 
     508 
     509        ./BIO_${TARGET}.ksh -a ${file1} -b ${file2} -c ocean.output 
     510 
     511        checkfile ${file1} 'endjob.txt' NORM yes ; xfile1=$? 
     512        checkfile ${file2} 'endjob.txt' NORM     ; xfile1=$? 
     513        # 
     514        mak_diff_file -x ${xfile1} -a ${file2} -b ${file1} -r ${runt} -k resta 
     515 
     516    fi 
     517     
    468518done 
    469519 
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/cron_jobs.ksh

    r695 r815  
    2020if [ ${CONF} == 'ORCA2_LIM' ] ; then 
    2121CONFS=ORCA2 
     22elif [ ${CONF} == 'GYRE_LOBSTER' ] ; then 
     23CONFS=GYRE_ 
    2224elif [ ${CONF} == 'ZAGRIF' ] ; then 
    2325CONFS=ZAGRI 
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/job_GYRE.ksh

    r695 r815  
    234234if [ $type = '1_short' ] ; then 
    235235    cd ${WORK}/NEMO_VALID/W${CONF}/${RUN}/2_SHORT 
    236     ${LAUNCH} job_${RUN}_2_short.ksh 
     236    ${LAUNCH}job_${RUN}_2_short.ksh 
    237237fi 
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/job_ORCA2_LIM.ksh

    r695 r815  
    251251if [ $type = '1_short' ] ; then 
    252252    cd ${WORK}/NEMO_VALID/W${CONF}/${RUN}/2_SHORT 
    253     ${LAUNCH} job_${RUN}_2_short.ksh 
     253    ${LAUNCH}job_${RUN}_2_short.ksh 
    254254fi 
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/job_ZAGRIF.ksh

    r695 r815  
    280280if [ $type = '1_short' ] ; then 
    281281    cd ${WORK}/NEMO_VALID/W${CONF}/${RUN}/2_SHORT 
    282     ${LAUNCH} job_${RUN}_2_short.ksh 
     282    ${LAUNCH}job_${RUN}_2_short.ksh 
    283283fi 
  • branches/dev_001_SBC/VALID/2INSTALL/JOBS/lance_batch.ksh

    r695 r815  
    44# Contact  : opatlod@locean-ipsl.upmc.fr 
    55# 
    6 # INPUT ARGS: 2 + 1 optional 
     6# INPUT ARGS: 3 + 1 optional 
    77#     - CONF  : configuration name (ORCA2_LIM, GYRE ..) 
    88#     - MTIME : timing/no timing (timing or notiming) 
    9 #     - REFTAG (optional): reference tag name to which current  
    10 #              version will be compare to 
     9#     - JOBTOL: jobs to launch: all, long, 1_short or gtime 
     10#     - REFTAG: (optional): reference tag name to which current  
     11#               version will be compare to 
    1112# 
    1213# WORK: This script aims to (for each standard configuration) : 
     
    6566CONF=$1 
    6667MTIME=$2 
    67 REFTAG=$3 
     68JOBTOL=$3 
     69REFTAG=$4 
    6870RUN=$(basename `pwd`) 
    6971 
     
    7779if   [ ${TARGET} = 'sx8brodie' ]; then 
    7880    W_XX='#-T- sx8brodie' 
    79     LAUN=qsub 
     81    LAUN='qsub ' 
    8082    LLJOBS=qstat 
    8183    LSUB="mpirun -np ${PRC}" 
     
    8789elif [ ${TARGET} = 'aix' ]; then 
    8890    W_XX='#-T- aix' 
    89     LAUN=llsubmit 
     91    LAUN='llsubmit ' 
    9092    LLJOBS=Qstat 
    9193    LSUB= 
     
    9799elif [ ${TARGET} = 'ax_mono' ]; then 
    98100    W_XX='#-T- ax_mono' 
    99     LAUN=llsubmit 
     101    LAUN='llsubmit ' 
    100102    LLJOBS=Qstat 
    101103    LSUB= 
     
    107109elif [ ${TARGET} = 'osxxlf' ]; then 
    108110    W_XX='#-T- osxxlf' 
    109     LAUN= 
     111    LAUN='./' 
    110112    LLJOBS= 
    111113    LSUB="mpirun -np ${PRC}" 
     
    178180dirjob[0]=LONG ; dirjob[1]=1_SHORT ; dirjob[2]=2_SHORT ; dirjob[3]=GTIME  
    179181 
    180 iloop=3 
    181 if [ ${MTIME} = 'timing' ] ; then iloop=4 ; fi 
    182  
    183 ind=0 
     182case ${JOBTOL} in 
     183     'all' ) 
     184              if [ ${MTIME} = 'timing' ] ; then  
     185             ind=0 ; iloop=4 ; 
     186         else 
     187             ind=0 ; iloop=3 ; 
     188              fi ;; 
     189     'long' ) 
     190              ind=0 ; iloop=1 ;; 
     191     'short' ) 
     192              ind=1 ; iloop=3 ;; 
     193     'gtime' ) 
     194              ind=3 ; iloop=4 ;; 
     195esac 
     196 
    184197while [ $ind -lt ${iloop} ] 
    185198do 
     
    210223       -e "s/$CAR_RUN/RUN=$RUN/" \ 
    211224       -e "s/$CAR_MPP/NB_PROCS=$PRC/" \ 
    212        -e "s/$CAR_SUB/LAUNCH=$LAUN/" \ 
     225       -e "s@$CAR_SUB@LAUNCH='$LAUN'@" \ 
    213226       -e "s/$CAR_EXE/LEXE='$LSUB'/" \ 
    214227       -e "s/$CAR_PER/CPERF='$LPERF'/" \ 
     
    238251 
    239252       chmod 750 job_${RUN}_${jobnam[$ind]}.ksh 
     253       mv job_${RUN}_${jobnam[$ind]}.ksh ${dirjob[$ind]}/. 
    240254 
    241255       if [ ${jobnam[$ind]} != '2_short' ] ; then 
    242            mv job_${RUN}_${jobnam[$ind]}.ksh ${dirjob[$ind]}/. 
    243256           cd ${dirjob[$ind]} 
    244            ${LAUN} job_${RUN}_${jobnam[$ind]}.ksh & 
     257           ${LAUN}job_${RUN}_${jobnam[$ind]}.ksh & 
    245258           cd ../ 
    246        else 
    247            mv job_${RUN}_${jobnam[$ind]}.ksh ${dirjob[$ind]}/. 
    248259       fi 
    249260 
Note: See TracChangeset for help on using the changeset viewer.