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 1356 for trunk/NVTK/INSTALL/JOBS/lance_batch.ksh – NEMO

Ignore:
Timestamp:
2009-03-31T11:09:13+02:00 (15 years ago)
Author:
cetlod
Message:

Modifying scripts to take into account TOP/PISCES ref config in NVTK, see ticket:386

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NVTK/INSTALL/JOBS/lance_batch.ksh

    r1321 r1356  
    5959# PRC       : total number of processors which will be used 
    6060########################################################## 
    61 IODIR=/Volumes/FENUA/ORCA2_LIM_nemo_v2_IO 
     61IODIR=/u/rech/eee/reee512/NEMO/ 
    6262PRC=8 
    63 TARGET=osxxlf 
     63TARGET=sx8brodie 
    6464########################################################## 
    6565##### End   Users modifications 
     
    135135#     Adapt header (batch jobs) and concatanate it with core job 
    136136# -------------------------------------------------------------- 
     137if [ ${CONF} == 'ORCA2_LIM' ] ; then 
     138CONFS=ORCA2 
     139elif [ ${CONF} == 'GYRE' ] ; then 
     140CONFS=GYREO 
     141elif [ ${CONF} == 'GYRE_LOBSTER' ] ; then 
     142CONFS=GYREL 
     143elif [ ${CONF} == 'ORCA2_LIM_PISCES' ] ; then 
     144CONFS=OR2LP 
     145elif [ ${CONF} == 'ORCA2_OFF_PISCES' ] ; then 
     146CONFS=OR2OP 
     147elif [ ${CONF} == 'ZAGRIF' ] ; then 
     148CONFS=ZAGRI 
     149else 
     150CONFS=${CONF} 
     151fi 
     152 
    137153case ${TARGET} in 
    138154     'osxxlf' ) 
     
    140156     'ax6_mono' ) 
    141157          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}%" \ 
    143159          jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp  ;; 
    144160     'aix6' ) 
    145161          CAR_JNAM=$( grep '\# @ job_name' jhd_${TARGET}_${RUN} ) 
    146162          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}%" \ 
    148164          -e "s%$CAR_JMPI%\# @ total_tasks = ${PRC}%" \ 
    149165          jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp  ;; 
     
    154170          if [ ${RUN} = 'mpi' -o ${RUN} = 'omp' ] ; then 
    155171              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%" \ 
    159175              -e "s%$CAR_JMPI%\#PBS -l cpunum_job=${PRC}%" \ 
    160176              jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp 
    161177          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%" \ 
    165181              jhd_${TARGET}_${RUN} > jhd_${TARGET}_${RUN}_tmp 
    166182          fi ;; 
     
    296312 
    297313    if [ ${TARGET} != 'osxxlf' ]; then 
    298         ./cron_jobs.ksh ${CONF} & 
     314        ./cron_jobs.ksh ${CONF} ${CONFS} & 
    299315    fi 
    300316fi 
Note: See TracChangeset for help on using the changeset viewer.