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 3535 for branches/2012/dev_r3438_LOCEAN15_PISLOB – NEMO

Ignore:
Timestamp:
2012-11-13T09:20:20+01:00 (11 years ago)
Author:
flavoni
Message:

update sette.sh, see ticket: #941

Location:
branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/input_ORCA2_LIM_AGRIF.cfg

    r3294 r3535  
    1 ORCA2_LIM_AGRIF_nemo_v3.3.tar 
     1ORCA2_LIM_nemo_v3.4.tar 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/prepare_job.sh

    r3336 r3535  
    11##################################################### 
    2 # Author : Italo Epicoco for NEMO 
    3 # Contact : italo.epicoco@unisalento.it 
     2# Author : Simona Flavoni for NEMO 
     3# Contact : sflod@locean-ipsl.upmc.fr 
    44# 
    55# Some scripts called by sette.sh  
     
    145145################################################################ 
    146146 
     147########################################################################## 
     148# COPY RESTART FILES (if needed; i.e. only for SHORT job in RESTART TESTS) 
     149# get the input tarfile if needed 
     150# SF : not ok for the moment because at this point is needed cn_exp variable, 
     151# SF : here it it not known. 
     152#\cd ${EXE_DIR} 
     153#if [ "$(echo ${TEST_NAME} | grep -c "SHORT" )" -ne 0 ] ; then 
     154#    for (( i=1; i<=${NB_PROC}; ${NB_PROC}++)) ; do 
     155#        L_NPROC=`printf "%04d\n" $i` 
     156#        ln -sf ../LONG/${NEW_CONF}_00000060_restart_${L_NPROC-1}.nc . 
     157#    done 
     158#fi 
     159## SF : other way 
     160##      for file in ../LONG/${NEW_CONF}_*restart_0*.nc ; do 
     161##              ncpu=`echo $file | awk -F '_' '{print $NF}' | cut -f 1 -d '.'` 
     162##              ln -sf ${file}  . 
     163##      done 
     164##fi 
     165########################################################################## 
     166 
    147167################################################################ 
    148168# RUN OPA 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/sette.sh

    r3534 r3535  
    178178    cd ${SETTE_DIR} 
    179179    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    180     cd ${SETTE_DIR} 
    181     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    182180 
    183181    cd ${SETTE_DIR} 
     
    196194    set_namelist namelist jpnj 2 
    197195    set_namelist namelist jpnij 4 
    198     cp ..\/LONG\/GYRE_LONG_00000060_restart*.nc . 
    199196    set_namelist namelist cn_ocerst_in \"GYRE_LONG_00000060_restart\" 
     197    for (( i=1; i<=$NPROC; i++)) ; do 
     198        L_NPROC=$(( $i - 1 )) 
     199        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     200        ln -sf ../LONG/${NEW_CONF}_00000060_restart_${L_NPROC}.nc . 
     201    done 
    200202    cd ${SETTE_DIR} 
    201203    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     
    294296    cd ${SETTE_DIR} 
    295297    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    296     cd ${SETTE_DIR} 
    297     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    298298     
    299299    cd ${SETTE_DIR} 
     
    315315    set_namelist namelist_top ln_rsttr .true. 
    316316    set_namelist namelist_top nn_rsttr 2 
    317     cp ../LONG/O2LP_LONG_00000075_restart*nc . 
    318317    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
    319318    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
     
    331330    # put ln_pisdmp to false : no restoring to global mean value 
    332331    set_namelist namelist_pisces ln_pisdmp .false. 
     332    for (( i=1; i<=$NPROC; i++)) ; do 
     333        L_NPROC=$(( $i - 1 )) 
     334        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     335        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC-1}.nc . 
     336        ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC-1}.nc . 
     337        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC-1}.nc . 
     338    done 
    333339    cd ${SETTE_DIR} 
    334340    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     
    449455    # put ln_pisdmp to false : no restoring to global mean value 
    450456    set_namelist namelist_pisces ln_pisdmp .false. 
    451  
    452457    cd ${SETTE_DIR} 
    453458    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    454 ##    cd ${SETTE_DIR} 
    455 ##   . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    456459     
    457460    cd ${SETTE_DIR} 
     
    472475    set_namelist namelist_top nn_rsttr 2 
    473476    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 
     477    for (( i=1; i<=$NPROC; i++)) ; do 
     478        L_NPROC=$(( $i - 1 )) 
     479        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     480        ln -sf ../LONG/OFFP_LONG_00000020_restart_${L_NPROC-1}.nc . 
     481        ln -sf ../LONG/OFFP_LONG_00000020_restart_${L_NPROC-1}_trc.nc . 
     482    done 
    474483    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
    475484    # if not you need input files, and for tests is not necessary 
     
    590599    cd ${SETTE_DIR} 
    591600    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    592 ##   cd ${SETTE_DIR} 
    593 ##    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    594601 
    595602    cd ${SETTE_DIR} 
     
    613620    set_namelist namelist nn_rstctl 2 
    614621    set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 
    615     cp ../LONG/AMM12_00000006_restart*.nc . 
     622    for (( i=1; i<=$NPROC; i++)) ; do 
     623        L_NPROC=$(( $i - 1 )) 
     624        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     625        ln -sf ../LONG/AMM12_00000006_restart_${L_NPROC-1}.nc . 
     626    done 
    616627    cd ${SETTE_DIR} 
    617628    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
Note: See TracChangeset for help on using the changeset viewer.