Ignore:
Timestamp:
2012-11-13T10:41:27+01:00 (8 years ago)
Author:
flavoni
Message:

update sette.sh,ok for trunk tests, see ticket: #941

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/SETTE/sette.sh

    r3532 r3537  
    121121# ========== 
    122122# 
    123 # $Id: sette.sh 2890 2011-10-06 11:03:48Z flavoni $ 
     123# $Id:$ 
    124124# 
    125125#   * creation 
     
    176176    cd ${SETTE_DIR} 
    177177    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    178     cd ${SETTE_DIR} 
    179     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    180178 
    181179    cd ${SETTE_DIR} 
     
    194192    set_namelist namelist jpnj 2 
    195193    set_namelist namelist jpnij 4 
    196     cp ..\/LONG\/GYRELOB_LONG_00000060_restart*.nc . 
    197194    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 
     195    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 
    198196    set_namelist namelist_top ln_diatrc .false. 
    199197    set_namelist namelist_top ln_rsttr .true. 
    200198    set_namelist namelist_top nn_rsttr 2 
    201     set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 
     199    for (( i=1; i<=$NPROC; i++)) ; do 
     200        L_NPROC=$(( $i - 1 )) 
     201        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     202        ln -sf ../LONG/GYRELOB_LONG_00000060_restart_${L_NPROC}.nc . 
     203        ln -sf ../LONG/GYRELOB_LONG_00000060_restart_trc_${L_NPROC}.nc . 
     204    done 
    202205    cd ${SETTE_DIR} 
    203206    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     
    294297    cd ${SETTE_DIR} 
    295298    . ./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} 
    298299     
    299300    cd ${SETTE_DIR} 
     
    315316    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
    316317    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
     318    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
    317319    set_namelist namelist_top ln_diatrc .false. 
    318320    set_namelist namelist_top ln_rsttr .true. 
    319321    set_namelist namelist_top nn_rsttr 2 
    320     set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
    321322    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
    322323    # if not you need input files, and for tests is not necessary 
     
    326327    set_namelist namelist_pisces ln_dust .false. 
    327328    set_namelist namelist_pisces ln_presatm .false. 
     329    for (( i=1; i<=$NPROC; i++)) ; do 
     330        L_NPROC=$(( $i - 1 )) 
     331        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     332        ln -sf ../LONG/O2LP_LONG_00000075_restart_${L_NPROC-1}.nc . 
     333        ln -sf ../LONG/O2LP_LONG_00000075_restart_trc_${L_NPROC-1}.nc . 
     334        ln -sf ../LONG/O2LP_LONG_00000075_restart_ice_${L_NPROC-1}.nc . 
     335    done 
    328336    cd ${SETTE_DIR} 
    329337    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     
    429437    cd ${SETTE_DIR} 
    430438    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    431     cd ${SETTE_DIR} 
    432     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    433439     
    434440    cd ${SETTE_DIR} 
     
    452458    set_namelist namelist_top nn_rsttr 2 
    453459    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 
     460    for (( i=1; i<=$NPROC; i++)) ; do 
     461        L_NPROC=$(( $i - 1 )) 
     462        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     463        ln -sf ../LONG/OFFP_LONG_00000020_restart_${L_NPROC-1}.nc . 
     464        ln -sf ../LONG/OFFP_LONG_00000020_restart_${L_NPROC-1}_trc.nc . 
     465    done 
    454466    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
    455467    # if not you need input files, and for tests is not necessary 
     
    551563    cd ${SETTE_DIR} 
    552564    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    553     cd ${SETTE_DIR} 
    554     . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    555565 
    556566    cd ${SETTE_DIR} 
     
    571581    set_namelist namelist nn_rstctl 2 
    572582    set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 
    573     cp ../LONG/AMM12_00000006_restart*.nc . 
     583    for (( i=1; i<=$NPROC; i++)) ; do 
     584        L_NPROC=$(( $i - 1 )) 
     585        L_NPROC=`printf "%04d\n" ${L_NPROC}` 
     586        ln -sf ../LONG/AMM12_00000006_restart_${L_NPROC-1}.nc . 
     587    done 
    574588    cd ${SETTE_DIR} 
    575589    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
Note: See TracChangeset for help on using the changeset viewer.