Ignore:
Timestamp:
2012-11-09T16:22:20+01:00 (8 years ago)
Author:
flavoni
Message:

update SETTE, add CURIE machine, see ticket: #941

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/sette.sh

    r3465 r3533  
    4141# BATCH_COMMAND :  name of the command for batch submission 
    4242# 
    43 # MPI_INTERACT :   
    44 # 
    45 #         for MPP tests, "no" for batch execution, "yes" for interactive execution  
    46 # 
    47 #         NOTE: for run with 1 process tests are run always in MPI_INTERACT="yes" 
     43# INTERACT_FLAG :  flag to run in interactive mode "yes" 
     44#                       to run in batch mode "no" 
     45# MPIRUN_FLAG   :  flag to run in parallel (MPI) "yes" 
     46#                       to run in sequential mode (NB_PROC = 1) "no" 
    4847# 
    4948# Principal script is sette.sh, that calls  
     
    9089#  fcm_job.sh  
    9190# 
    92 #   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
    93 # 
    94 #   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
     91#   run in batch (INTERACT_FLAG="no") or interactive (INTERACT_FLAG="yes") see sette.sh and BATCH_TEMPLATE directory 
    9592# 
    9693#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
     
    125122# ========== 
    126123# 
    127 # $Id$ 
     124# $Id $ 
    128125# 
    129126#   * creation 
     
    160157    export TEST_NAME="LONG" 
    161158    cd ${SETTE_DIR} 
    162     . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8  
    163     cd ${SETTE_DIR} 
    164     . param.cfg 
    165     . all_functions.sh 
    166     . prepare_exe_dir.sh 
    167     JOB_FILE=${EXE_DIR}/run_job.sh 
    168     NPROC=1 
    169     \rm $JOB_FILE 
     159    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_LONG -r GYRE -j 8 add_key "key_mpp_mpi"  
     160    cd ${SETTE_DIR} 
     161    . param.cfg 
     162    . all_functions.sh 
     163    . prepare_exe_dir.sh 
     164    JOB_FILE=${EXE_DIR}/run_job.sh 
     165    NPROC=4 
     166    \rm ${JOB_FILE} 
    170167    cd ${EXE_DIR} 
    171168    set_namelist namelist cn_exp \"GYRE_LONG\" 
     
    175172    set_namelist namelist ln_clobber .true. 
    176173    set_namelist namelist nn_solv 2 
    177     cd ${SETTE_DIR} 
    178     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    179     . ./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 
     174    set_namelist namelist jpni 2 
     175    set_namelist namelist jpnj 2 
     176    set_namelist namelist jpnij 4 
     177    cd ${SETTE_DIR} 
     178    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     179    cd ${SETTE_DIR} 
     180    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    182181 
    183182    cd ${SETTE_DIR} 
     
    193192    set_namelist namelist ln_clobber .true. 
    194193    set_namelist namelist nn_solv 2 
    195     ln -s -f ..\/LONG\/GYRE_LONG_00000060_restart.nc 
    196     ln -s -f ..\/LONG\/GYRE_LONG_00000060_restart_trc.nc 
    197     set_namelist namelist cn_ocerst_in \"GYRE_LONG_00000060_restart\" 
    198     cd ${SETTE_DIR} 
    199     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    200     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    201     cd ${SETTE_DIR} 
    202     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     194    set_namelist namelist jpni 2 
     195    set_namelist namelist jpnj 2 
     196    set_namelist namelist jpnij 4 
     197    cp ..\/LONG\/GYRELOB_LONG_00000060_restart*.nc . 
     198    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 
     199    cd ${SETTE_DIR} 
     200    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     201    cd ${SETTE_DIR} 
     202    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    203203fi 
    204204 
     
    214214    JOB_FILE=${EXE_DIR}/run_job.sh 
    215215    NPROC=4 
    216     \rm $JOB_FILE 
     216    \rm ${JOB_FILE} 
    217217    cd ${EXE_DIR} 
    218218    set_namelist namelist cn_exp \"GYRE_14\" 
     
    228228    set_namelist namelist jpnij 4 
    229229    cd ${SETTE_DIR} 
    230     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    231     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    232     cd ${SETTE_DIR} 
    233     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     230    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     231    cd ${SETTE_DIR} 
     232    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    234233 
    235234    cd ${SETTE_DIR} 
     
    251250    set_namelist namelist jpnij 4 
    252251    cd ${SETTE_DIR} 
    253     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    254     . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    255     cd ${SETTE_DIR} 
    256     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     252    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     253    cd ${SETTE_DIR} 
     254    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     255 
    257256fi 
    258257 
     
    262261    export TEST_NAME="LONG" 
    263262    cd ${SETTE_DIR} 
    264     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 
    265     cd ${SETTE_DIR} 
    266     . param.cfg 
    267     . all_functions.sh 
    268     . prepare_exe_dir.sh 
    269     JOB_FILE=${EXE_DIR}/run_job.sh 
    270     NPROC=1 
    271     \rm $JOB_FILE 
     263    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_mpi" 
     264    cd ${SETTE_DIR} 
     265    . param.cfg 
     266    . all_functions.sh 
     267    . prepare_exe_dir.sh 
     268    JOB_FILE=${EXE_DIR}/run_job.sh 
     269    NPROC=4 
     270    \rm ${JOB_FILE} 
    272271    cd ${EXE_DIR} 
    273272    set_namelist namelist cn_exp \"O2LP_LONG\" 
     
    276275    set_namelist namelist nn_stock 75 
    277276    set_namelist namelist ln_clobber .true. 
     277    set_namelist namelist jpni 2 
     278    set_namelist namelist jpnj 2 
     279    set_namelist namelist jpnij 4 
    278280    set_namelist namelist nn_solv 2 
    279281    set_namelist namelist_top ln_trcdta .false. 
     
    290292    set_namelist namelist_pisces ln_hydrofe .false. 
    291293    cd ${SETTE_DIR} 
    292     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    293     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE     
    294     cd ${SETTE_DIR} 
    295     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
    296 # 
     294    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     295    cd ${SETTE_DIR} 
     296    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     297     
     298    cd ${SETTE_DIR} 
    297299    export TEST_NAME="SHORT" 
    298     cd ${SETTE_DIR} 
    299300    . prepare_exe_dir.sh 
    300301    cd ${EXE_DIR} 
     
    306307    set_namelist namelist nn_rstctl 2 
    307308    set_namelist namelist ln_clobber .true. 
     309    set_namelist namelist jpni 2 
     310    set_namelist namelist jpnj 2 
     311    set_namelist namelist jpnij 4 
    308312    set_namelist namelist nn_solv 2 
    309     ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc 
    310     ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc 
    311     ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc 
    312     set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
    313     set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
    314313    set_namelist namelist_top ln_diatrc .false. 
    315314    set_namelist namelist_top ln_rsttr .true. 
    316315    set_namelist namelist_top nn_rsttr 2 
    317     set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
     316    cp ../LONG/O2LP_LONG_00000075_restart*nc . 
     317    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
     318    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
    318319    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
    319320    # if not you need input files, and for tests is not necessary 
     
    326327    set_namelist namelist_pisces ln_ironsed .false. 
    327328    set_namelist namelist_pisces ln_hydrofe .false. 
    328     # put ln_pisdmp to false : no relaxation to global mean value 
     329    # put ln_pisdmp to false : no restoring to global mean value 
    329330    set_namelist namelist_pisces ln_pisdmp .false. 
    330331    cd ${SETTE_DIR} 
    331     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    332     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    333     cd ${SETTE_DIR} 
    334     . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG  
     332    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     333    cd ${SETTE_DIR} 
     334    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    335335fi 
    336336 
     
    351351    set_namelist namelist nn_itend 75 
    352352    set_namelist namelist nn_fwb 0 
     353    set_namelist namelist ln_ctl .false. 
    353354    set_namelist namelist ln_clobber .true. 
    354355    set_namelist namelist jpni 4 
     
    368369    set_namelist namelist_pisces ln_ironsed .false. 
    369370    set_namelist namelist_pisces ln_hydrofe .false. 
    370     # put ln_pisdmp to false : no relaxation to global mean value 
     371    # put ln_pisdmp to false : no restoring to global mean value 
    371372    set_namelist namelist_pisces ln_pisdmp .false. 
    372373    cd ${SETTE_DIR} 
    373     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    374     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    375     cd ${SETTE_DIR} 
    376     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     374    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     375    cd ${SETTE_DIR} 
     376    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    377377 
    378378    cd ${SETTE_DIR} 
     
    403403    set_namelist namelist_pisces ln_ironsed .false. 
    404404    set_namelist namelist_pisces ln_hydrofe .false. 
    405     # put ln_pisdmp to false : no relaxation to global mean value 
     405    # put ln_pisdmp to false : no restoring to global mean value 
    406406    set_namelist namelist_pisces ln_pisdmp .false. 
    407407    cd ${SETTE_DIR} 
    408     cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    409     . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    410     cd ${SETTE_DIR} 
    411     . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 
     408    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     409    cd ${SETTE_DIR} 
     410    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    412411fi 
    413412 
     
    417416    export TEST_NAME="LONG" 
    418417    cd ${SETTE_DIR} 
    419     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8  
    420     cd ${SETTE_DIR} 
    421     . param.cfg 
    422     . all_functions.sh 
    423     . prepare_exe_dir.sh 
    424     JOB_FILE=${EXE_DIR}/run_job.sh 
    425     NPROC=1 
     418    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep"  
     419    cd ${SETTE_DIR} 
     420    . param.cfg 
     421    . all_functions.sh 
     422    . prepare_exe_dir.sh 
     423    JOB_FILE=${EXE_DIR}/run_job.sh 
     424    NPROC=4 
    426425    \rm $JOB_FILE 
    427426    cd ${EXE_DIR} 
     
    431430    set_namelist namelist nn_stock 20 
    432431    set_namelist namelist ln_clobber .true. 
     432    set_namelist namelist jpni 2 
     433    set_namelist namelist jpnj 2 
     434    set_namelist namelist jpnij 4 
    433435    set_namelist namelist_top ln_trcdta .false. 
    434436    set_namelist namelist_top ln_diatrc .false. 
     
    443445    set_namelist namelist_pisces ln_ironsed .false. 
    444446    set_namelist namelist_pisces ln_hydrofe .false. 
    445     cd ${SETTE_DIR} 
    446    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    447     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     447    # put ln_pisdmp to false : no restoring to global mean value 
     448    set_namelist namelist_pisces ln_pisdmp .false. 
     449 
     450    cd ${SETTE_DIR} 
     451    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     452##    cd ${SETTE_DIR} 
     453##   . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    448454     
    449455    cd ${SETTE_DIR} 
     
    456462    set_namelist namelist nn_stock 20 
    457463    set_namelist namelist ln_clobber .true. 
    458     ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc . 
     464    set_namelist namelist jpni 2 
     465    set_namelist namelist jpnj 2 
     466    set_namelist namelist jpnij 4 
     467    cp ../LONG/OFFP_LONG_00000020_restart*nc . 
    459468    set_namelist namelist_top ln_diatrc .false. 
    460469    set_namelist namelist_top ln_rsttr .true. 
     
    471480    set_namelist namelist_pisces ln_ironsed .false. 
    472481    set_namelist namelist_pisces ln_hydrofe .false. 
    473     # put ln_pisdmp to false : no relaxation to global mean value 
     482    # put ln_pisdmp to false : no restoring to global mean value 
    474483    set_namelist namelist_pisces ln_pisdmp .false. 
    475484    cd ${SETTE_DIR} 
    476    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    477     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    478     cd ${SETTE_DIR} 
    479     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     485    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME}  ${MPIRUN_FLAG} ${JOB_FILE} 
     486    cd ${SETTE_DIR} 
     487    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    480488fi 
    481489 
     
    495503    set_namelist namelist nn_it000 1 
    496504    set_namelist namelist nn_itend 40 
     505    set_namelist namelist ln_ctl .false. 
    497506    set_namelist namelist ln_clobber .true. 
    498507    set_namelist namelist jpni 4 
     
    511520    set_namelist namelist_pisces ln_ironsed .false. 
    512521    set_namelist namelist_pisces ln_hydrofe .false. 
    513     # put ln_pisdmp to false : no relaxation to global mean value 
     522    # put ln_pisdmp to false : no restoring to global mean value 
    514523    set_namelist namelist_pisces ln_pisdmp .false. 
    515524    cd ${SETTE_DIR} 
    516    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    517     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    518     cd ${SETTE_DIR} 
    519     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     525    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     526    cd ${SETTE_DIR} 
     527    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    520528 
    521529    cd ${SETTE_DIR} 
     
    528536    set_namelist namelist nn_it000 1 
    529537    set_namelist namelist nn_itend 40 
     538    set_namelist namelist ln_ctl .false. 
    530539    set_namelist namelist ln_clobber .true. 
    531540    set_namelist namelist jpni 2 
     
    544553    set_namelist namelist_pisces ln_ironsed .false. 
    545554    set_namelist namelist_pisces ln_hydrofe .false. 
    546     # put ln_pisdmp to false : no relaxation to global mean value 
    547     set_namelist namelist_pisces ln_pisdmp .false. 
    548     cd ${SETTE_DIR} 
    549    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    550     . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    551     cd ${SETTE_DIR} 
    552     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     555    # put ln_pisdmp to false : no restoring to global mean value 
     556    set_namelist namelist_pisces ln_pisdmp .false.  
     557    cd ${SETTE_DIR} 
     558    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     559    cd ${SETTE_DIR} 
     560    . ./fcm_job.sh $NPROC  ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    553561fi 
    554562 
    555563# TESTS FOR AMM12 CONFIGURATION 
    556564if [ ${config} -eq 7 ] ;  then 
    557     ## Reproducibility tests for AMM12 
    558     export TEST_NAME="REPRO_8_4" 
    559     cd ${SETTE_DIR} 
    560     . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep" 
     565    ## Restartability tests for AMM12 
     566    export TEST_NAME="LONG" 
     567    cd ${SETTE_DIR} 
     568    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12  
    561569    cd ${SETTE_DIR} 
    562570    . param.cfg 
     
    568576    cd ${EXE_DIR} 
    569577    set_namelist namelist nn_it000 1 
    570     set_namelist namelist nn_itend 576 
     578    set_namelist namelist nn_itend 12 
     579    set_namelist namelist nn_stock 6 
    571580    set_namelist namelist nn_fwb 0 
    572581    set_namelist namelist ln_ctl .false. 
     
    578587    set_namelist namelist jpnij 32 
    579588    cd ${SETTE_DIR} 
    580    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    581     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    582     cd ${SETTE_DIR} 
    583     . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG  
    584  
    585     cd ${SETTE_DIR} 
    586     export TEST_NAME="REPRO_4_8" 
     589    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     590##   cd ${SETTE_DIR} 
     591##    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     592 
     593    cd ${SETTE_DIR} 
     594    export TEST_NAME="SHORT" 
    587595    . prepare_exe_dir.sh 
    588596    JOB_FILE=${EXE_DIR}/run_job.sh 
    589597    NPROC=32 
    590598    \rm $JOB_FILE 
    591     cd ${EXE_DIR} 
    592     set_namelist namelist nn_it000 1 
    593     set_namelist namelist nn_itend 576 
    594     set_namelist namelist nn_fwb 0 
    595     set_namelist namelist ln_ctl .false. 
    596     set_namelist namelist nn_dyn2d 2 
    597     set_namelist namelist nn_tra_dta 0 
    598     set_namelist namelist ln_clobber .true. 
    599     set_namelist namelist jpni 4 
    600     set_namelist namelist jpnj 8 
    601     set_namelist namelist jpnij 32 
    602     cd ${SETTE_DIR} 
    603    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    604     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    605     cd ${SETTE_DIR} 
    606     . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG 
    607 fi 
    608  
    609 if [ ${config} -eq 8 ] ;  then 
    610     ## Restartability tests for AMM12 
    611     export TEST_NAME="LONG" 
    612     cd ${SETTE_DIR} 
    613     . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8  add_key "key_mpp_rep" 
    614     cd ${SETTE_DIR} 
    615     . param.cfg 
    616     . all_functions.sh 
    617     . prepare_exe_dir.sh 
    618     JOB_FILE=${EXE_DIR}/run_job.sh 
    619     NPROC=32 
    620     \rm $JOB_FILE 
    621     cd ${EXE_DIR} 
    622     set_namelist namelist nn_it000 1 
    623     set_namelist namelist nn_itend 12 
    624     set_namelist namelist nn_stock 6 
    625     set_namelist namelist nn_fwb 0 
    626     set_namelist namelist ln_ctl .false. 
    627     set_namelist namelist ln_clobber .true. 
    628     set_namelist namelist nn_dyn2d 2 
    629     set_namelist namelist nn_tra_dta 0 
    630     set_namelist namelist jpni 8 
    631     set_namelist namelist jpnj 4 
    632     set_namelist namelist jpnij 32 
    633     cd ${SETTE_DIR} 
    634    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    635     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    636     cd ${SETTE_DIR} 
    637     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
    638  
    639     cd ${SETTE_DIR} 
    640     export TEST_NAME="SHORT" 
    641     . prepare_exe_dir.sh 
    642599    cd ${EXE_DIR} 
    643600    set_namelist namelist nn_it000 7 
     
    653610    set_namelist namelist ln_rstart .true. 
    654611    set_namelist namelist nn_rstctl 2 
     612    set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 
     613    cp ../LONG/AMM12_00000006_restart*.nc . 
     614    cd ${SETTE_DIR} 
     615    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     616    cd ${SETTE_DIR} 
     617    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     618fi 
     619 
     620if [ ${config} -eq 8 ] ;  then 
     621    ## Reproducibility tests for AMM12 
     622    export TEST_NAME="REPO_8_4" 
     623    cd ${SETTE_DIR} 
     624    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep" 
     625    cd ${SETTE_DIR} 
     626    . param.cfg 
     627    . all_functions.sh 
     628    . prepare_exe_dir.sh 
     629    JOB_FILE=${EXE_DIR}/run_job.sh 
     630    NPROC=32 
     631    \rm ${JOB_FILE} 
     632    cd ${EXE_DIR} 
     633    set_namelist namelist nn_it000 1 
     634    set_namelist namelist nn_itend 12 
     635    set_namelist namelist nn_stock 6 
     636    set_namelist namelist nn_fwb 0 
     637    set_namelist namelist ln_ctl .false. 
     638    set_namelist namelist ln_clobber .true. 
     639    set_namelist namelist nn_dyn2d 2 
     640    set_namelist namelist nn_tra_dta 0 
     641    set_namelist namelist jpni 8 
     642    set_namelist namelist jpnj 4 
     643    set_namelist namelist jpnij 32 
     644    cd ${SETTE_DIR} 
     645    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     646    cd ${SETTE_DIR} 
     647    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
     648 
     649    cd ${SETTE_DIR} 
     650    export TEST_NAME="REPO_4_8" 
     651    . prepare_exe_dir.sh 
     652    cd ${EXE_DIR} 
     653    set_namelist namelist nn_it000 1 
     654    set_namelist namelist nn_itend 576 
     655    set_namelist namelist nn_fwb 0 
     656    set_namelist namelist ln_ctl .false. 
     657    set_namelist namelist ln_clobber .true. 
     658    set_namelist namelist nn_dyn2d 2 
     659    set_namelist namelist nn_tra_dta 0 
     660    set_namelist namelist ln_clobber .true. 
     661    set_namelist namelist jpni 4 
     662    set_namelist namelist jpnj 8 
     663    set_namelist namelist jpnij 32 
     664    set_namelist namelist ln_rstart .true. 
     665    set_namelist namelist nn_rstctl 2 
    655666    set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\" 
    656667    cd ${SETTE_DIR} 
    657    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    658     . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    659     cd ${SETTE_DIR} 
    660     . ./fcm_job.sh $NPROC $JOB_FILE $INTERACT_FLAG $MPIRUN_FLAG  
     668    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     669    cd ${SETTE_DIR} 
     670    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    661671fi 
    662672 
     
    673683    JOB_FILE=${EXE_DIR}/run_job.sh 
    674684    NPROC=2 
    675     \rm $JOB_FILE 
     685    \rm ${JOB_FILE} 
    676686    cd ${EXE_DIR} 
    677687    set_namelist namelist nn_it000 1 
     
    687697    set_namelist 1_namelist ln_clobber .true. 
    688698    cd ${SETTE_DIR} 
    689    cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    690     . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    691     cd ${SETTE_DIR} 
    692     . ./fcm_job.sh $NPROC $JOB_FILE  $INTERACT_FLAG $MPIRUN_FLAG 
     699    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
     700    cd ${SETTE_DIR} 
     701    . ./fcm_job.sh $NPROC ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
    693702fi 
    694703 
Note: See TracChangeset for help on using the changeset viewer.