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 1184 – NEMO

Changeset 1184


Ignore:
Timestamp:
2008-09-11T19:17:27+02:00 (16 years ago)
Author:
cetlod
Message:

update job_GYRE_LOBSTER.ksh file to take into account modifications in namelist_top

File:
1 edited

Legend:

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

    r1155 r1184  
    9090 
    9191# namelist modifications 
    92 PAT_TRC=$( supergrep nwritetrc  namelist_top_f90 ) 
    93 PAT_TRD=$( supergrep nwritetrd  namelist_top_f90 ) 
    94  
    95 sed -e "s%$PAT_TRC%   nwritetrc   = ${ITERATIONS}%" \ 
    96     -e "s%$PAT_TRD%   nwritetrd  = ${ITERATIONS}%"  namelist_top_f90 > nam.tmp 
     92PAT_NWRITRC=$( supergrep nwritetrc               namelist_top_f90 ) 
     93PAT_NWRITRD=$( supergrep ntrd_trc                namelist_top_f90 ) 
     94PAT_RESTTRD=$( supergrep ln_trdmld_trc_restart   namelist_top_f90 ) 
     95 
     96sed -e "s%$PAT_NWRITRC%   nwritetrc   = ${ITERATIONS}%" \ 
     97    -e "s%$PAT_NWRITRD%   ntrd_trc    = ${ITERATIONS}%" \ 
     98    -e "s%$PAT_RESTTRD%   ln_trdmld_trc_restart =  .false.%" namelist_top_f90 > nam.tmp 
    9799 
    98100mv nam.tmp namelist_top 
     
    108110then 
    109111    if [ ${RUN} = 'mon' -o ${RUN} = 'omp' ] ; then  
    110         cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart.nc restart.nc 
    111         cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld.nc restart_mld.nc 
    112         cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_trc.nc restart_trc.nc 
     112        cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart.nc         restart.nc 
     113        cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld.nc     restart_mld.nc 
     114        cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_trc.nc     restart_trc.nc 
     115        cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld_trc.nc restart_mld_trc.nc 
    113116    fi 
    114117 
     
    117120        while [ $i -lt $NB_PROCS ] 
    118121        do 
    119            cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_${i}.nc restart_${i}.nc 
    120            cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld_${i}.nc restart_mld_${i}.nc 
    121            cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_trc_${i}.nc restart_trc_${i}.nc 
     122           cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_${i}.nc         restart_${i}.nc 
     123           cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld_${i}.nc     restart_mld_${i}.nc 
     124           cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_trc_${i}.nc     restart_trc_${i}.nc 
     125           cp ${WORK}/NEMO_VALID/W${CONF}/${RUN}/1_SHORT/*_restart_mld_trc_${i}.nc restart_mld_trc_${i}.nc 
    122126           let i=$i+1 
    123127        done 
     
    142146 
    143147    # Biogeochemistry namelist modifications 
    144     PAT_RESTAR=$( supergrep lrsttr  namelist_top ) 
    145     sed -e "s%$PAT_RESTAR%   lrsttr      = .true. %" namelist_top > nam.tmp 
     148    PAT_RESTAR=$( supergrep lrsttr                  namelist_top ) 
     149    PAT_RESTRD=$( supergrep ln_trdmld_trc_restart   namelist_top )  
     150    
     151    sed -e "s%$PAT_RESTAR%   lrsttr      = .true. %"  \ 
     152        -e "s%$PAT_RESTRD%   ln_trdmld_trc_restart =  .true.%" namelist_top > nam.tmp 
     153 
    146154    mv nam.tmp namelist_top 
    147155 
Note: See TracChangeset for help on using the changeset viewer.