Changeset 3533


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

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

Location:
branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM
Files:
1 added
2 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/ARCH/CNRS/arch-X64_CURIE.fcm

    r3303 r3533  
    1616%NCDF_INC            -I$(NETCDF_INC_DIR) 
    1717%NCDF_LIB            -L$(NETCDF_LIB_DIR) -lnetcdff -lnetcdf 
    18 %FC                  mpif90 -c -cpp 
     18%FC                  mpif90 -c  
    1919# for Curie Fat Node 
    20 %FCFLAGS             -i4 -r8 -fast -xSSE4.2 -automatic 
     20#%FCFLAGS             -i4 -r8 -fast -xSSE4.2 -automatic 
    2121# for Curie Thin Node 
    2222#%FCFLAGS             -i4 -r8 -fast -xAVX   -automatic 
     23## 
     24## for both FAST and THIN nodes 
     25%FCFLAGS             -i4 -r8 -O3 
     26## 
    2327%FFLAGS              %FCFLAGS 
    2428%LD                  mpif90 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-PW6_VARGAS

    r3336 r3533  
    1111# @ total_tasks = NPROCS 
    1212# time 
    13 # @ wall_clock_limit = 0:30:00 
     13# @ wall_clock_limit = 1:30:00 
    1414# @ queue 
    1515 
     
    6060  echo Directory is `pwd` 
    6161#  
    62 #  Run the executable  
     62#  Run the parallel MPI executable  
     63# 
     64  echo "Running time ${MPIRUN} ./opa" 
    6365# 
    6466  if [ MPI_FLAG == "yes" ]; then 
    65   echo "Running time ${MPIRUN} ./opa" 
    6667     time ${MPIRUN} ./opa 
    6768  else 
    68   echo "Running time ./opa" 
    6969     time ./opa 
    7070  fi 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/README

    r3336 r3533  
    1111               COMPILER    : compiler among those available in NEMOGCM/ARCH, needed for makenemo (see below) 
    1212                             can also be pass as an argument, e.g. ./sette.sh ifort_osx 
    13           BATCH_COMMAND : command for job submission in batch mode 
    14           MPI_INTERACT : "yes" if you want to run in interactive mode for MPI run 
    15                      "no" if you want to run in batch mode for MPI run 
    16                NOTE : every job using only 1 proc is run in interactive mode 
     13          BATCH_COMMAND_PAR : command for job submission in batch mode parallel (MMIÂ) 
     14          BATCH_COMMAND_SEQ : command for job submission in batch mode sequential (NB_PROC = 1) 
     15          INTERACT_FLAG : "yes" if you want to run in interactive mode  
     16                      "no" if you want to run in batch mode 
     17          MPIRUN_FLAG   : "yes" if you want to run in parallel (MPI) 
     18                "no" if you want to run in sequential mode (NB_PROC = 1) 
    1719 
    1820               makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) 
     
    3335 
    3436               prepare_job.sh generates the script to be executed  
    35          input: INPUT_FILE_CONFIG_NAME NB_PROCS TEST_NAME MPI_FLAG JOB_FILE_NAME 
     37         input: INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPIRUN_FLAG JOB_FILE 
    3638 
    37                fcm_job.sh needs input: TOTAL_NUMBER_OF_PROCS_used JOB_FILE_NAME INTERACT_FLAG MPI_FLAG  
    38          (for example if you compile ORCA2_LIM with key_mpp_mpi  
    39          and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) 
     39               fcm_job.sh needs input: TOTAL_NUMBER_OF_PROCS_used JOB_FILE_NAME INTERACT_FLAG MPIRUN_FLAG  
     40         (for example if you run with 4 procs JOB_FILE batch parallel  
     41         and only run short test ===> ./fcm_job 4 SHORT no    yes   ) 
    4042 
    4143 in param.cfg : 
     
    4951               is the same of that in input_REF_CONFIG.cfg, if not change one. 
    5052 
    51                change in "RUN OPA" if [ ${MPI_INTERACT} == "yes" ] mpirun command line (some examples are already written) 
    52           NOTE: if MPI_INTERACT="no" it is neede a batch_file (see below to create a new one) 
     53               change in "RUN OPA" if [ ${INTERACT_FLAG} == "yes" ] mpirun command line (some examples are already written) 
     54          NOTE: if INTERACT_FLAG="no" it is needed a batch_file (see below to create a new one) 
    5355 
    5456NOTE: 
     
    77791. see in SETTE/BATCH_TEMPLATE directory existing examples 
    78802. create you own batch file like: batch-${COMPILER} 
    79 (note: sette.sh will copy it in job_batch_template if you run tests in MPI_INTERACT="no") 
     81(note: sette.sh will copy it in job_batch_template if you run tests in INTERACT_FLAG="no") 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/fcm_job.sh

    r3336 r3533  
    2525# :: lauches the script $JOB_FILE interactive or batch, one task or MPI 
    2626# 
    27 #  $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG 
     27#  $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT_FLAG MPIRUN_FLAG 
    2828# 
    2929# 
     
    4040# :: 
    4141# 
    42 #  $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG 
     42#  $ ./fcm_job.sh NUMBER_OF_PROCS JOB_FILE INTERACT_FLAG MPIRUN_FLAG 
    4343# 
    44 #  run a  
     44#  run a job with 1 processor SHORT test ( 5 days )  
     45#  using an interactive run without mpirun  
     46# 
     47#  ./fcm_job.sh        1           SHORT        yes          no  
    4548# 
    4649# 
     
    6366# 
    6467 
    65 usage=" Usage : ./fcm_job.sh  NUMBER_OF_PROCS JOB_FILE INTERACT MPI_FLAG" 
    66 usage=" example : ./fcm_job.sh 8 SHORT no/yes no/yes" 
     68usage=" Usage : ./fcm_job.sh  NUMBER_OF_PROCS JOB_FILE INTERACT_FLAG MPIRUN_FLAG" 
     69usage=" example : ./fcm_job.sh       8          SHORT      no/yes      no/yes" 
    6770 
    6871 
     
    8386export NB_PROCS=$1 
    8487export JOB_FILE=$2 
    85 export INTERACT=$3 
    86 export MPI_FLAG=$4 
     88export INTERACT_FLAG=$3 
     89export MPIRUN_FLAG=$4 
    8790################################################################ 
    8891# RUN OPA 
    8992cd ${EXE_DIR} 
    90 if [ "$INTERACT" == "yes" ]; then 
    91         eval $JOB_FILE 
    92 else if [ "$INTERACT" == "no" ]; then 
    93 # submit job to batch system  
    94         if [ "$NB_PROC" == "1" ]; then 
    95       eval ${BATCH_COMMAND_SEQ} $JOB_FILE ; echo  ${BATCH_COMMAND_SEQ} $JOB_FILE 
     93if [ "${INTERACT_FLAG}" == "yes" ]; then 
     94   eval ${JOB_FILE} 
     95else if [ "${INTERACT_FLAG}" == "no" ]; then 
     96   # submit job to batch system  
     97        if [ "${NB_PROC}" == "1" ]; then 
     98      eval ${BATCH_COMMAND_SEQ} ${JOB_FILE} ; echo  ${BATCH_COMMAND_SEQ} ${JOB_FILE} 
    9699        else 
    97       eval ${BATCH_COMMAND_PAR} $JOB_FILE ; echo ${BATCH_COMMAND_PAR} $JOB_FILE 
     100      eval ${BATCH_COMMAND_PAR} ${JOB_FILE} ; echo ${BATCH_COMMAND_PAR} ${JOB_FILE} 
    98101        fi 
    99102fi 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/input_ORCA2_LIM.cfg

    r2732 r3533  
    1 ORCA2_LIM_nemo_v3.3.tar 
     1ORCA2_LIM_nemo_v3.4.tar 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/input_ORCA2_LIM_PISCES.cfg

    r2732 r3533  
    1 ORCA2_LIM_nemo_v3.3.tar 
     1ORCA2_LIM_nemo_v3.4.tar 
  • 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 
  • branches/2012/dev_r3438_LOCEAN15_PISLOB/NEMOGCM/SETTE/sette_beginner.sh

    r3336 r3533  
    4141export BATCH_COMMAND_PAR="llsubmit" 
    4242export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 
    43 # export MPI_INTERACT="no" 
     43export INTERACT_FLAG="no" 
     44export MPIRUN_FLAG="yes" 
    4445 
    4546# Directory to run the tests 
     
    5859# small test to start 
    5960# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :  
    60 export TEST_NAME="TEST02" 
     61export TEST_NAME="prova_beginner" 
    6162cd ${SETTE_DIR} 
    62 . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE 
     63. ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE -j 10 add_key "key_mpp_mpi" 
    6364cd ${SETTE_DIR} 
    6465. param.cfg  
     
    6768. prepare_exe_dir.sh 
    6869JOB_FILE=${EXE_DIR}/run_job.sh 
     70NPROC=4 
     71\rm $JOB_FILE 
    6972cd ${EXE_DIR} 
    7073# setting namelist parameters 
     
    7982 
    8083cd ${SETTE_DIR} 
    81 # . ./prepare_job.sh input_file_config_name NB_PROCS TEST_NAME MPI_FLAG JOB_FILE 
    82 . ./prepare_job.sh input_GYRE.cfg 1 SHORT no $JOB_FILE 
     84. ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} ${MPIRUN_FLAG} ${JOB_FILE} 
    8385# run job, with 1 processor, test named SHORT (= 60 time steps) 
    84 #. ./fcm_job.sh NB_PROCS JOB_FILE INTERACT_FLAG MPI_FLAG 
    85     cd ${SETTE_DIR}    
    86 . ./fcm_job.sh 1 $JOB_FILE no no 
    87  
     86cd ${SETTE_DIR}    
     87. ./fcm_job.sh 4 ${JOB_FILE} ${INTERACT_FLAG} ${MPIRUN_FLAG} 
Note: See TracChangeset for help on using the changeset viewer.