Changeset 2716


Ignore:
Timestamp:
2011-03-30T19:12:59+02:00 (10 years ago)
Author:
rblod
Message:

Commit SETTE modifications for dynamic memory

Location:
trunk/NEMOGCM/SETTE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/SETTE/README

    r2675 r2716  
    99USER MODIFICATIONS 
    1010 in sette.sh script : 
    11                SETTE_DIR : base directory for SETTE 
     11               CMP_NAM     : compiler among those available in NEMOGCM/ARCH, needed for makenemo (see below) 
    1212               makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) 
    1313                        -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help 
     
    2121         (      : to activate control print : namelist ln_ctl false ) 
    2222               fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME 
    23          (for example if you compile ORCA2_LIM with nproci=2 and nprocj=2  
     23         (for example if you compile ORCA2_LIM with key_mpp_mpi  
    2424         and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) 
    2525 in param.cfg : 
  • trunk/NEMOGCM/SETTE/sette.sh

    r2675 r2716  
    110110#- 
    111111# 
    112  
    113 SETTE_DIR=/PATH/OF/SETTE 
     112#- 
     113# Compiler among those in NEMOGCM/ARCH 
     114CMP_NAM=$1 
     115 
     116# Directory to run the tests 
     117SETTE_DIR=$(cd $(dirname "$0"); pwd) 
     118MAIN_DIR=${SETTE_DIR%/SETTE} 
     119CONFIG_DIR=${MAIN_DIR}/CONFIG 
     120TOOLS_DIR=${MAIN_DIR}/TOOLS 
     121COMPIL_DIR=${TOOLS_DIR}/COMPILE 
     122# Check if a compiler has already been defined 
     123. ${COMPIL_DIR}/Fcheck_archfile.sh arch_nemo.fcm ${CMP_NAM} || exit 
    114124 
    115125## NBTEST=6 
     
    123133    # Restartability tests for GYRE_LOBSTER 
    124134    cd ${SETTE_DIR} 
    125     . ../CONFIG/makenemo -m PW6MONO_VARGAS -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" 
     135    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" 
    126136    cd ${SETTE_DIR} 
    127137    . param.cfg 
     
    131141    set_namelist namelist nn_itend 120 
    132142    set_namelist namelist nn_stock 60 
     143    set_namelist namelist ln_clobber .true. 
    133144    set_namelist namelist_top ln_trcrad .false. 
    134145    cd ${SETTE_DIR} 
    135146    . ./fcm_job.sh input_GYRE.cfg 1 LONG 
    136147     
    137     cd ${SETTE_DIR} 
    138148    set_namelist namelist cn_exp \"GYRELOB_SHORT\" 
    139149    set_namelist namelist nn_it000 61 
     
    142152    set_namelist namelist ln_rstart .true. 
    143153    set_namelist namelist nn_rstctl 2 
    144     set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 
     154    set_namelist namelist ln_clobber .true. 
     155    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart.nc\" 
    145156    set_namelist namelist_top ln_trcrad .false. 
    146157    set_namelist namelist_top ln_rsttr .true. 
     
    152163 
    153164if [ ${config} -eq 2 ] ;  then 
    154     # Restartability tests for ORCA2_LIM_PISCES 
    155     cd ${SETTE_DIR} 
    156     . ../CONFIG/makenemo -m PW6MONO_VARGAS -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 
     165# Restartability tests for ORCA2_LIM_PISCES 
     166    cd ${SETTE_DIR} 
     167    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 
    157168    cd ${SETTE_DIR} 
    158169    . param.cfg 
     
    162173    set_namelist namelist nn_itend 150 
    163174    set_namelist namelist nn_stock 75 
     175    set_namelist namelist ln_clobber .true. 
    164176    set_namelist namelist_top ln_trcrad .false. 
    165177    # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
     
    174186     
    175187    cd ${SETTE_DIR} 
     188    . ../CONFIG/makenemo -n ORCA2LIMPIS_SHORT -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 
     189    cd ${SETTE_DIR} 
    176190    . param.cfg 
    177191    . all_functions.sh 
     
    182196    set_namelist namelist ln_rstart .true. 
    183197    set_namelist namelist nn_rstctl 2 
    184     set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
    185     set_namelist namelist_ice_lim2 cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
     198    set_namelist namelist ln_clobber .true. 
     199    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart.nc\" 
     200    set_namelist namelist_ice cn_ocerst_in \"O2LP_LONG_00000075_restart_ice.nc\" 
    186201    set_namelist namelist_top ln_trcrad .false. 
    187202    set_namelist namelist_top ln_rsttr .true. 
     
    200215 
    201216if [ ${config} -eq 3 ] ;  then 
    202     ## Restartability tests for POMME  
    203     cd ${SETTE_DIR} 
    204     . ../CONFIG/makenemo -m PW6MONO_VARGAS -n POMME_LONG -r POMME 
     217    ## Restartability tests for POMME 
     218    cd ${SETTE_DIR} 
     219    . ../CONFIG/makenemo -m gfortran_linux -n POMME_LONG -r POMME 
    205220    cd ${SETTE_DIR} 
    206221    . param.cfg 
     
    209224    set_namelist namelist nn_it000 1 
    210225    set_namelist namelist nn_itend 600 
    211     set_namelist namelist nn_stock 300 
    212     set_namelist namelist nn_write 300 
     226    set_namelist namelist ln_clobber .true. 
    213227    cd ${SETTE_DIR} 
    214228    . ./fcm_job.sh input_POMME.cfg 1 LONG 
    215     cd ${CONFIG_DIR} 
    216     `mv ${NEW_CONF}/EXP00/restart.obc.output ${NEW_CONF}/EXP00/restart.obc` 
    217229     
    218230    cd ${SETTE_DIR} 
     
    223235    set_namelist namelist ln_rstart .true. 
    224236    set_namelist namelist nn_rstctl 2 
    225     set_namelist namelist nn_write 300 
    226     set_namelist namelist cn_ocerst_in \"POMME_LONG_00000300_restart\" 
     237    set_namelist namelist ln_clobber .true. 
     238    set_namelist namelist cn_ocerst_in \"POMME_LONG_00000075_restart.nc\" 
     239    mv ${OUTPUT_DIR}/restart.obc.output ${OUTPUT_DIR}/restart.obc 
    227240    cd ${SETTE_DIR} 
    228241    . ./fcm_job.sh input_POMME.cfg 1 SHORT 
     
    230243 
    231244if [ ${config} -eq 4 ] ;  then 
    232     ## Repropducilibity tests for GYRE_LOBSTER 
    233     cd ${SETTE_DIR} 
    234     . ../CONFIG/makenemo -m PW6_VARGAS -n GYRELOB_1_4 -r GYRE_LOBSTER add_key "key_mpp_mpi key_mpp_rep key_nproci=1 key_nprocj=4" del_key "key_vectopt_loop key_diatrc" 
     245    ## Reproducilibity tests for GYRE_LOBSTER 
     246    cd ${SETTE_DIR} 
     247    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_1_4 -r GYRE_LOBSTER add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_diatrc" 
    235248    cd ${SETTE_DIR} 
    236249    . param.cfg 
     
    241254    set_namelist namelist nn_bench 0 
    242255    set_namelist namelist ln_ctl .false. 
     256    set_namelist namelist ln_clobber .true. 
     257    set_namelist namelist jpni 1 
     258    set_namelist namelist jpnj 4 
     259    set_namelist namelist jpnij 4 
    243260    cd ${SETTE_DIR} 
    244261    . ./fcm_job.sh input_GYRE.cfg 4 SHORT 
    245262     
    246263    cd ${SETTE_DIR} 
    247     . ../CONFIG/makenemo -m PW6_VARGAS -n GYRELOB_2_2 -r GYRE_LOBSTER add_key "key_mpp_rep key_mpp_mpi key_nproci=2 key_nprocj=2" del_key "key_vectopt_loop key_diatrc" 
     264    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_2_2 -r GYRE_LOBSTER add_key "key_mpp_rep key_mpp_mpi" del_key "key_vectopt_loop key_diatrc" 
    248265    cd ${SETTE_DIR} 
    249266    . param.cfg 
     
    252269    set_namelist namelist nn_itend 75 
    253270    set_namelist namelist nn_fwb 0 
    254     set_namelist namelist nn_bench 0 
    255     set_namelist namelist ln_ctl .false. 
     271    set_namelist namelist ln_ctl .false. 
     272    set_namelist namelist ln_clobber .true. 
     273    set_namelist namelist jpni 2 
     274    set_namelist namelist jpnj 2 
     275    set_namelist namelist jpnij 4 
    256276    cd ${SETTE_DIR} 
    257277    . ./fcm_job.sh input_GYRE.cfg 4 SHORT 
     
    261281    ## Repropducilibity tests for ORCA2_LIM_PISCES 
    262282    cd ${SETTE_DIR} 
    263     . ../CONFIG/makenemo -m PW6_VARGAS -n ORCA2LIMPIS_4_4 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep key_nproci=4 key_nprocj=4" del_key "key_vectopt_loop key_dtatrc key_diatrc"  
     283    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LO2LPO2LP_4_4 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_dtatrc key_diatrc"  
    264284    cd ${SETTE_DIR} 
    265285    . param.cfg 
     
    268288    set_namelist namelist nn_itend 75 
    269289    set_namelist namelist nn_fwb 0 
    270     set_namelist namelist nn_bench 0 
    271     set_namelist namelist ln_ctl .false. 
     290    set_namelist namelist ln_ctl .false. 
     291    set_namelist namelist ln_clobber .true. 
     292    set_namelist namelist jpni 4 
     293    set_namelist namelist jpnj 4 
     294    set_namelist namelist jpnij 16  
    272295    # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    273296    # if not you need input files, and for tests is not necessary 
     
    279302    cd ${SETTE_DIR} 
    280303    . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 SHORT 
    281  
    282     cd ${SETTE_DIR} 
    283     . ../CONFIG/makenemo -m PW6_VARGAS -n ORCA2LIMPIS_2_8 -r ORCA2_LIM_PISCES add_key "key_mpp_rep key_mpp_mpi key_nproci=2 key_nprocj=8" del_key "key_vectopt_loop key_dtatrc key_diatrc" 
     304     
     305    cd ${SETTE_DIR} 
     306    . ../CONFIG/makenemo -n ORCA2LIMPIS_2_8 -r ORCA2_LIM_PISCES add_key "key_mpp_rep key_mpp_mpi" del_key "key_vectopt_loop key_dtatrc key_diatrc" 
    284307    cd ${SETTE_DIR} 
    285308    . param.cfg 
     
    288311    set_namelist namelist nn_itend 75 
    289312    set_namelist namelist nn_fwb 0 
    290     set_namelist namelist nn_bench 0 
    291     set_namelist namelist ln_ctl .false. 
     313    set_namelist namelist ln_ctl .false. 
     314    set_namelist namelist ln_clobber .true. 
     315    set_namelist namelist jpni 2 
     316    set_namelist namelist jpnj 8 
     317    set_namelist namelist jpnij 16 
    292318    # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    293319    # if not you need input files, and for tests is not necessary 
     
    302328 
    303329if [ ${config} -eq 6 ] ;  then 
    304     ## Reproductibility tests for POMME  
    305     cd ${SETTE_DIR} 
    306     . ../CONFIG/makenemo -m PW6_VARGAS -n POMME_1_4 -r POMME add_key "key_mpp_mpi key_mpp_rep key_nproci=1 key_nprocj=4" 
     330    ## Reproductibility tests for POMME 
     331    cd ${SETTE_DIR} 
     332    . ../CONFIG/makenemo -m gfortran_linux -n POMME_1_4 -r POMME add_key "key_mpp_mpi key_mpp_rep" 
    307333    cd ${SETTE_DIR} 
    308334    . param.cfg 
     
    311337    set_namelist namelist nn_itend 300 
    312338    set_namelist namelist nn_fwb 0 
    313     set_namelist namelist nn_bench 0 
    314     set_namelist namelist ln_ctl .false. 
     339    set_namelist namelist ln_ctl .false. 
     340    set_namelist namelist ln_clobber .true. 
     341    set_namelist namelist jpni 1 
     342    set_namelist namelist jpnj 4 
     343    set_namelist namelist jpnij 4 
    315344    cd ${SETTE_DIR} 
    316345    . ./fcm_job.sh input_POMME.cfg 4 SHORT 
    317346     
    318347    cd ${SETTE_DIR} 
    319     . ../CONFIG/makenemo -m PW6_VARGAS -n POMME_2_2 -r POMME add_key "key_mpp_mpi key_mpp_rep key_nproci=2 key_nprocj=2"  
     348    . ../CONFIG/makenemo -m gfortran_linux -n POMME_2_2 -r POMME add_key "key_mpp_mpi key_mpp_rep" 
    320349    cd ${SETTE_DIR} 
    321350    . param.cfg 
     
    324353    set_namelist namelist nn_itend 300 
    325354    set_namelist namelist nn_fwb 0 
    326     set_namelist namelist nn_bench 0 
    327     set_namelist namelist ln_ctl .false. 
     355    set_namelist namelist ln_ctl .false. 
     356    set_namelist namelist ln_clobber .true. 
     357    set_namelist namelist jpni 2 
     358    set_namelist namelist jpnj 2 
     359    set_namelist namelist jpnij 4 
    328360    cd ${SETTE_DIR} 
    329361    . ./fcm_job.sh input_POMME.cfg 4 SHORT 
  • trunk/NEMOGCM/SETTE/sette_beginner.sh

    r2665 r2716  
    3737#- 
    3838# 
    39 SETTE_DIR=/PATH/OF/SETTE 
     39SETTE_DIR=$(cd $(dirname "$0"); pwd) 
    4040# Run for GYRE CONFIG 
    4141# small test to start 
    42 # compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file : key_nproci=1 key_nprocj=1 
     42# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :  
    4343cd ${SETTE_DIR} 
    4444. ../CONFIG/makenemo -m gfortran_osx -n GYRE_SHORT -r GYRE 
Note: See TracChangeset for help on using the changeset viewer.