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 3294 for trunk/NEMOGCM/SETTE – NEMO

Changeset 3294 for trunk/NEMOGCM/SETTE


Ignore:
Timestamp:
2012-01-28T17:44:18+01:00 (12 years ago)
Author:
rblod
Message:

Merge of 3.4beta into the trunk

Location:
trunk/NEMOGCM/SETTE
Files:
11 edited
11 copied

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-ALTIX_NAUTILUS_MPT

    r3050 r3294  
    88#PBS -W group_list=nemo 
    99#PBS -j oe 
    10  
     10# 
     11  OCEANCORES=NPROCS 
     12  export SETTE_DIR=DEF_SETTE_DIR 
     13# 
     14# load sette functions (only post_test_tidyup needed) 
     15# 
     16  . ${SETTE_DIR}/all_functions.sh 
    1117############################################################### 
    1218# 
     
    2733  export SVN_HOME=/fibre/acc/UTILS/svn/v1.5/svn 
    2834# 
    29 # 
    30 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
    31 # (via sed operating on this template job file). Note that the number of compute nodes required 
    32 # (half-populated on the NOCS ALTIX system) is also set by the fcm_job.sh on the PBS select 
    33 # header line above. 
    34 # 
    35   OCEANCORES=NPROCS 
    36   export SETTE_DIR=DEF_SETTE_DIR 
    37 # 
    38 # These variables are needed by post_test_tidyup function in all_functions.sh 
    39 # 
    40   export INPUT_DIR=DEF_INPUT_DIR 
    41   export OUTPUT_DIR=DEF_OUTPUT_DIR 
    42   export CONFIG_DIR=DEF_CONFIG_DIR 
    43   export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION 
    44   export NEW_CONF=DEF_NEW_CONF 
    45   export CMP_NAM=DEF_CMP_NAM 
    46   export TEST_NAME=DEF_TEST_NAME 
    47   export EXE_DIR=DEF_EXE_DIR 
    48 # 
    49 # end of set up 
    50 ############################################################### 
    51 # 
    52 # change to the working directory  
    53 # 
    54   cd $PBS_O_WORKDIR 
    55 # 
    56 # load sette functions (only post_test_tidyup needed) 
    57 # 
    58   . ${SETTE_DIR}/all_functions.sh 
    59 # 
    6035  echo Running on host `hostname` 
    6136  echo Time is `date` 
    62   echo Directory is `pwd` 
    6337  echo PBS job ID is $PBS_JOBID 
    6438  echo This jobs runs on the following machines: 
     
    7953  echo export OMP_NUM_THREADS=1  
    8054# 
     55# Don't remove neither change the following line 
     56# BODY 
     57# 
     58# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
     59# (via sed operating on this template job file). Note that the number of compute nodes required 
     60# (half-populated on the NOCS ALTIX system) is also set by the fcm_job.sh on the PBS select 
     61# header line above. 
     62# 
     63# These variables are needed by post_test_tidyup function in all_functions.sh 
     64# 
     65  export INPUT_DIR=DEF_INPUT_DIR 
     66  export CONFIG_DIR=DEF_CONFIG_DIR 
     67  export NEMO_VALIDATION_DIR=DEF_NEMO_VALIDATION 
     68  export NEW_CONF=DEF_NEW_CONF 
     69  export CMP_NAM=DEF_CMP_NAM 
     70  export TEST_NAME=DEF_TEST_NAME 
     71  export EXE_DIR=DEF_EXE_DIR 
     72# 
     73# end of set up 
     74############################################################### 
     75# 
     76# change to the working directory  
     77# 
     78# cd $PBS_O_WORKDIR 
     79  cd $EXE_DIR 
     80  echo Directory is `pwd` 
     81# 
     82# 
    8183#  Run the parallel MPI executable  
    8284# 
     
    8688# 
    8789  post_test_tidyup 
     90# END_BODY 
     91# Don't remove neither change the previous line 
    8892  exit 
  • trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-PW6_VARGAS

    r2890 r3294  
    1414# @ queue 
    1515 
     16# 
     17# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
     18# (via sed operating on this template job file).  
     19# 
     20  OCEANCORES=NPROCS 
     21  export SETTE_DIR=DEF_SETTE_DIR 
     22 
    1623############################################################### 
    1724# 
     
    2027# Local settings for machine IBM Power6 (VARGAS at IDRIS France) 
    2128# 
    22 export MPIRUN="mpiexec -n" 
     29export MPIRUN="mpiexec -n $OCEANCORES" 
     30 
    2331# 
    24 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
    25 # (via sed operating on this template job file).  
     32# load sette functions (only post_test_tidyup needed) 
    2633# 
    27   OCEANCORES=NPROCS 
    28   export SETTE_DIR=DEF_SETTE_DIR 
     34  . ${SETTE_DIR}/all_functions.sh 
     35# 
     36 
     37# Don't remove neither change the following line 
     38# BODY 
     39 
    2940# 
    3041# These variables are needed by post_test_tidyup function in all_functions.sh 
     
    4556cd ${EXE_DIR} 
    4657 
    47 # 
    48 # load sette functions (only post_test_tidyup needed) 
    49 # 
    50   . ${SETTE_DIR}/all_functions.sh 
    51 # 
    5258  echo Running on host `hostname` 
    5359  echo Time is `date` 
     
    5662#  Run the parallel MPI executable  
    5763# 
    58   echo "Running time ${MPIRUN} " $OCEANCORES " ./opa" 
     64  echo "Running time ${MPIRUN} ./opa" 
    5965# 
    60   time ${MPIRUN} " $OCEANCORES" ./opa 
     66  if [ MPI_FLAG == "yes" ]; then 
     67     time ${MPIRUN} ./opa 
     68  else 
     69     time ./opa 
     70  fi 
     71 
    6172# 
    6273  post_test_tidyup 
     74 
     75# END_BODY 
     76# Don't remove neither change the previous line 
     77 
     78 
    6379  exit 
  • trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/batch-X64_TITANE

    r3029 r3294  
    66########################################################################## 
    77# 
    8 # set up mpp computing environment 
    9 # 
    10 # Local settings for machine BULL (TITANE at CCRT France) 
    11 # 
    12 export MPIRUN="mpirun -np" 
    13 # 
    148# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
    159# (via sed operating on this template job file).  
     
    1711  OCEANCORES=NPROCS 
    1812  export SETTE_DIR=DEF_SETTE_DIR 
     13# 
     14# set up mpp computing environment 
     15# 
     16# Local settings for machine BULL (TITANE at CCRT France) 
     17# 
     18export MPIRUN="mpirun -np $OCEANCORES" 
     19 
     20# 
     21# load sette functions (only post_test_tidyup needed) 
     22# 
     23  . ${SETTE_DIR}/all_functions.sh 
     24# 
     25 
     26# modules to load 
     27module load netcdf 
     28 
     29# Don't remove neither change the following line 
     30# BODY 
     31 
    1932# 
    2033# These variables are needed by post_test_tidyup function in all_functions.sh 
     
    2740  export CMP_NAM=DEF_CMP_NAM 
    2841  export TEST_NAME=DEF_TEST_NAME 
    29 # modules to load 
    30 module load netcdf 
    3142# 
    3243# end of set up 
     
    3748cd ${EXE_DIR} 
    3849 
    39 # 
    40 # load sette functions (only post_test_tidyup needed) 
    41 # 
    42   . ${SETTE_DIR}/all_functions.sh 
    43 # 
    4450  echo Running on host `hostname` 
    4551  echo Time is `date` 
     
    4854#  Run the parallel MPI executable  
    4955# 
    50   echo "Running time ${MPIRUN} " $OCEANCORES " ./opa" 
     56  echo "Running time ${MPIRUN} ./opa" 
    5157# 
    52   time ${MPIRUN} " $OCEANCORES" ./opa 
     58  if [ MPI_FLAG == "yes" ]; then 
     59     time ${MPIRUN} ./opa 
     60  else 
     61     time ./opa 
     62  fi 
     63 
    5364# 
    5465  post_test_tidyup 
     66 
     67# END_BODY 
     68# Don't remove neither change the previous line 
     69 
     70 
    5571  exit 
    5672 
  • trunk/NEMOGCM/SETTE/BATCH_TEMPLATE/sette_batch_template

    r2890 r3294  
    1414# @ queue 
    1515 
     16# 
     17# Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
     18# (via sed operating on this template job file).  
     19# 
     20  OCEANCORES=NPROCS 
     21  export SETTE_DIR=DEF_SETTE_DIR 
     22 
    1623############################################################### 
    1724# 
     
    2027# Local settings for machine IBM Power6 (VARGAS at IDRIS France) 
    2128# 
    22 export MPIRUN="mpiexec -n" 
     29export MPIRUN="mpiexec -n $OCEANCORES" 
     30 
    2331# 
    24 # Test specific settings. Do not hand edit these lines; the fcm_job.sh script will set these 
    25 # (via sed operating on this template job file).  
     32# load sette functions (only post_test_tidyup needed) 
    2633# 
    27   OCEANCORES=NPROCS 
    28   export SETTE_DIR=DEF_SETTE_DIR 
     34  . ${SETTE_DIR}/all_functions.sh 
     35 
     36# Don't remove neither change the following comment line 
     37# BODY 
     38 
     39 
    2940# 
    3041# These variables are needed by post_test_tidyup function in all_functions.sh 
     
    3950# 
    4051# end of set up 
     52 
     53 
    4154############################################################### 
    4255# 
     
    4558cd ${EXE_DIR} 
    4659 
    47 # 
    48 # load sette functions (only post_test_tidyup needed) 
    49 # 
    50   . ${SETTE_DIR}/all_functions.sh 
    51 # 
    5260  echo Running on host `hostname` 
    5361  echo Time is `date` 
     
    5664#  Run the parallel MPI executable  
    5765# 
    58   echo "Running time ${MPIRUN} " $OCEANCORES " ./opa" 
     66  echo "Running time ${MPIRUN} ./opa" 
    5967# 
    60   time ${MPIRUN} " $OCEANCORES" ./opa 
     68 
     69  if [ MPI_FLAG == "yes" ]; then 
     70     time ${MPIRUN} ./opa 
     71  else 
     72     time ./opa 
     73  fi 
     74 
     75 
    6176# 
    6277  post_test_tidyup 
     78 
     79# END_BODY 
     80# Don't remove neither change the previous comment line 
     81 
    6382  exit 
  • trunk/NEMOGCM/SETTE/README

    r2757 r3294  
    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 
     17 
    1318               makenemo -m : machine (compilator); see ./makenemo -m help (in NEMOGCM/CONFIG directory) 
    1419                        -n : config name (in examples config_name_nproci_nprocj), see ./makenemo -n help 
     
    1722                        del_key : to del list of keys 
    1823               and for more details and options of makenemo see ./makenemo -h 
     24 
    1925          set_namelist : to set namelist values  
    2026         (example : to set 75 time steps for one test : namelist nn_itend 75) 
    2127         (        : to change cn_icerst_in name : namelist_ice cn_icerst_in  \"test_00101231_restart_icemod\") 
    2228         (      : to activate control print : namelist ln_ctl false ) 
    23           copy_original : to namelist of reference configuration in configuration directory in which tests are done 
     29          prepare_exe_dir.sh creates execution directory for each test 
     30                    : NOTE for EACH JOB EXECUTION it is needed to set TEST_NAME variable 
     31                TEST_NAME variable gives name to execution directory (created in prepare_exe_dir.sh) 
     32                IT is mandatory to have different TEST_NAME for each job run if not existing files are re-written (for example namelist) 
     33 
    2434               fcm_job.sh needs input: input_CONFIG_NAME TOTAL_NUMBER_OF_PROCS_used TEST_NAME 
    2535         (for example if you compile ORCA2_LIM with key_mpp_mpi  
    2636         and only run short test ===> ./fcm_job input_ORCA2_LIM.cfg 4 SHORT) 
     37 
    2738 in param.cfg : 
    28                EXE_DIR           : directory in which job s executed (by default CONFIG_DIR) 
    2939               FORCING_DIR       : directory in which will be found input.tar file (same name in input_CONFIG_NAME.cfg) 
    30                INPUT_DIR         : directory in which store input files 
     40               INPUT_DIR         : directory in which store input files (tar file) 
    3141               TMPDIR            : temporary directory NEEDED ONLY FOR IBM machines (put EXP00 directory) 
    32                OUTPUT_DIR        : directory in which store output files 
    33           NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat and ocean.output files in 
     42          NEMO_VALIDATION_DIR : directory in which create NEMO_VALIDATION tree, and store restart, solver.stat, tracer.stat and ocean.output files in 
    3443                            tree NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
    3544 in fcm_job.sh : 
    3645               IMPORTANT : control that name of tar file in FORCING directory 
    3746               is the same of that in input_REF_CONFIG.cfg, if not change one. 
    38                change in "RUN OPA" part the command line (some examples are already written) 
    39           TEST_NAME by convention is LONG: 10 days run or SHORT: 5 days run 
    40           so NEMO_VALIDATION tree is coherent, 
    41           but user can choise a TEST_NAME that represent his own test. 
     47 
     48               change in "RUN OPA" if [ ${MPI_INTERACT} == "yes" ] mpirun command line (some examples are already written) 
     49          NOTE: if MPI_INTERACT="no" it is neede a batch_file (see below to create a new one) 
    4250 
    4351NOTE: 
     
    62701. add arch-compiler.fcm in NEMOGCM/ARCH directory 
    63712. makenemo -m new_compiler  (see makenemo -h for help) 
     72 
     73TO ADD NEW BATCH-FILE: 
     741. see in SETTE/BATCH_TEMPLATE directory existing examples 
     752. create you own batch file like: batch-${COMPILER} 
     76(note: sette.sh will copy it in job_batch_template if you run tests in MPI_INTERACT="no") 
  • trunk/NEMOGCM/SETTE/all_functions.sh

    r2756 r3294  
    3131# 
    3232#  $ ./set_namelist INPUT_NAMELIST VARIABLE VALUE  
    33 #  $ ./copy_original INPUT_NAMELIST  
     33#  $ post_test_tidyup  
    3434# 
    3535# 
     
    3939# function superegrep 
    4040#   input variable value 
    41 # 
    42 # function copy_original 
    43 #   input namelist_name 
    44 #   output namelist  
    4541# 
    4642# function set_namelist 
     
    4844#   output namelist 
    4945# 
     46# function post_test_tidyup 
     47#   creates nemo_validation tree, and save output & debug files 
     48#   this function creates tree of validation in NEMO_VALIDATION_DIR as follows :  
     49# 
     50# NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/REVISION_NUMBER(or DATE)/TEST_NAME 
     51#  
     52# NEMO_VALIDATION_DIR           : is choosen in param.cfg 
     53# 
     54# WCONFIG_NAME                  : set by makenemo at the moment of compilation 
     55# 
     56# WCOMPILER_NAME                : set by makenemo at the moment of compilation 
     57# 
     58# REVISION_NUMBER(or DATE)      : revision number by svn info, if problems with svn date is taken 
     59# 
     60# TEST_NAME                     : set in sette.sh for each configuration to be tested (directory TEST_NAME is created under ${NEW_CONF} directory ) 
     61# 
    5062# EXAMPLES 
    5163# ======== 
     
    5365# :: 
    5466# 
    55 #  $ ./copy_original namelist_pisces          
    5667#  $ ./set_namelist namelist          nn_itend        75 
    5768#  $ ./set_namelist namelist_ice_lim2 cn_icerst_in  \"00101231_restart_ice\" 
     69#  $ post_test_tidyup  
    5870# 
    5971# 
     
    7183#   * creation 
    7284#- 
    73 # 
    74  
    75  
    76 # function to copy original namelists in ORIGINAL_namelist directory in ${INPUT_DIR} directory 
    77 # to allow re-run same tests in same directory and start with all correct values of namelist 
    78 copy_original () { 
    79         `mkdir -p ${INPUT_DIR}/ORIGINAL_namelist` 
    80    if [ -d ${INPUT_DIR}/ORIGINAL_namelist ] ; then 
    81            echo "created ${INPUT_DIR}/ORIGINAL_namelist directory in ${INPUT_DIR}"   >> ${SETTE_DIR}/output.sette 
    82    else 
    83            echo "problems in creating ${INPUT_DIR}/ORIGINAL_namelist directory"   >> ${SETTE_DIR}/output.sette 
    84            echo "EXIT," 
    85            exit 1 
    86    fi 
    87         `cp ${CONFIG_DIR}/${REF_CONF}/EXP00/$1 ${INPUT_DIR}/ORIGINAL_namelist/$1.ori` 
    88    if [ -n "$(ls ${INPUT_DIR}/ORIGINAL_namelist/$1.ori)" ] ; then 
    89       echo "copied namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette 
    90    else 
    91       echo "problem in copying namelist of reference configuration in ${INPUT_DIR}/ORIGINAL_namelist/$1.ori " >> ${SETTE_DIR}/output.sette 
    92            echo "EXIT," 
    93            exit 1 
    94    fi 
    95         `cp ${INPUT_DIR}/ORIGINAL_namelist/$1.ori ${INPUT_DIR}/$1` 
    96    if [ -n "$(ls ${INPUT_DIR}/$1)" ] ; then 
    97       echo "copied original namelist in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette 
    98    else 
    99            echo "problem in copying  original namelist in ${INPUT_DIR} directory"  >> ${SETTE_DIR}/output.sette 
    100            echo "EXIT," 
    101            exit 1 
    102    fi 
    103 } 
    104  
    10585# function to find namelists parameters 
    10686supergrep () { 
     
    128108        echo "################" >> ${SETTE_DIR}/output.sette 
    129109       
    130    VAR_NAME=$( supergrep $2 ${INPUT_DIR}/$1 ) 
     110   VAR_NAME=$( supergrep $2 ${EXE_DIR}/$1 ) 
    131111   if [ ${#VAR_NAME} -eq 0 ]  
    132112   then 
    133113      echo "doing \"set_namelist $@\". " 
    134114      echo "variable: \"$2\" is empty" 
    135       echo "control that variable $2 is in \"${INPUT_DIR}/$1\" " 
     115      echo "control that variable $2 is in \"${EXE_DIR}/$1\" " 
    136116      echo "exit" 
    137117      echo "error in executing script : set_namelist $@" >> ${SETTE_DIR}/output.sette 
     
    139119      exit 1 
    140120   fi 
    141         sed -e "s/${VAR_NAME}.*/${VAR_NAME}/" ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
    142         mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
    143         sed -e "s/${VAR_NAME}/$2=$3/"  ${INPUT_DIR}/$1 > ${INPUT_DIR}/$1.tmp 
    144         mv ${INPUT_DIR}/$1.tmp ${INPUT_DIR}/$1 
     121        sed -e "s:${VAR_NAME}.*:${VAR_NAME}:" ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     122        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
     123        sed -e "s:${VAR_NAME}:$2=$3:"  ${EXE_DIR}/$1 > ${EXE_DIR}/$1.tmp 
     124        mv ${EXE_DIR}/$1.tmp ${EXE_DIR}/$1 
    145125 
    146126        echo "finished script : set_namelist $@" >> ${SETTE_DIR}/output.sette 
     
    148128        echo "                " >> ${SETTE_DIR}/output.sette 
    149129} 
     130 
     131# function to tidy up after each test and populate the NEMO_VALIDATION store 
     132post_test_tidyup () { 
     133# 
     134# requires the following variables defined and exported from the calling script: 
     135#  SETTE_DIR 
     136#  INPUT_DIR 
     137#  EXE_DIR 
     138#  CONFIG_DIR 
     139#  NEMO_VALIDATION_DIR 
     140#  NEW_CONF 
     141#  CMP_NAM 
     142#  TEST_NAME 
     143echo "SETTE directory is : ${SETTE_DIR}" 
     144echo "INPUT directory is : ${INPUT_DIR}" 
     145echo "EXECUTION directory is : ${EXE_DIR}" 
     146echo "CONFIG directory is : ${CONFIG_DIR}" 
     147echo "VALIDATION directory is : ${NEMO_VALIDATION_DIR}" 
     148echo "NEW CONFIGURATION is : ${NEW_CONF}" 
     149echo "COMPILER is : ${CMP_NAM}" 
     150echo "TEST is : ${TEST_NAME}" 
     151################################################################ 
     152# SMALL DEBUG 
     153    if [ ! -r ${EXE_DIR}/time.step ] 
     154        then 
     155        echo "file time.step does not exist"   >> ${SETTE_DIR}/output.sette 
     156        echo "some problems during execution of model"  >> ${SETTE_DIR}/output.sette  
     157        exit 1 
     158    else 
     159        echo "file time.step exists"  >> ${SETTE_DIR}/output.sette 
     160        echo "ok model run"   >> ${SETTE_DIR}/output.sette 
     161    fi 
     162################################################################ 
     163 
     164################################################################ 
     165# Creation of NEMO_VALIDATION tree 
     166    export LANG=en_US  
     167    cd ${CONFIG_DIR} 
     168    cd ../ 
     169    REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 
     170    if [ ${#REVISION_NB} -eq 0 ] 
     171    then 
     172      echo "some problems with svn info command" 
     173      echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 
     174      REVISION_NB=`date +%Y%m%d` 
     175      echo "put in ${REVISION_NB} date" 
     176      echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 
     177    else 
     178    echo "value of revision number of NEMOGCM: ${REVISION_NB}" 
     179    fi 
     180    cd ${NEMO_VALIDATION_DIR} 
     181    `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 
     182    NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 
     183    if [ -d ${NEMO_VALID} ] ; then 
     184   echo "created ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
     185    else  
     186   echo "problems in creating ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
     187   echo "EXIT," 
     188   exit 1 
     189    fi 
     190    # Save output & debug files in NEMO_VALIDATION tree 
     191    echo "saving ocean & ice output, solver.stat, tracer.stat files ...." >> ${SETTE_DIR}/output.sette 
     192    echo "            " >> ${SETTE_DIR}/output.sette 
     193    [ -f ${EXE_DIR}/*ocean.output ] && cp ${EXE_DIR}/*ocean.output ${NEMO_VALID}/. 
     194    [ -f ${EXE_DIR}/*solver.stat ] && cp ${EXE_DIR}/*solver.stat ${NEMO_VALID}/. 
     195    [ -f ${EXE_DIR}/*tracer.stat ] && cp ${EXE_DIR}/*tracer.stat ${NEMO_VALID}/. 
     196    if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 
     197   echo "moved solver.stat in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     198   echo "moved solver.stat in ${NEMO_VALID} directory"   
     199    else 
     200   echo "problem in looking for solver.stat file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     201   echo "solver.stat IS NOT in ${NEMO_VALID} directory"  
     202    fi 
     203    if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 
     204   echo "moved ocean.output in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     205   echo "moved ocean.output in ${NEMO_VALID} directory"  
     206    else 
     207   echo "problem in looking for ocean.output file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     208   echo "ocean.output IS NOT in ${NEMO_VALID} directory"  
     209    fi 
     210    if [ -n "$(ls ${NEMO_VALID}/*tracer.stat*)" ] ; then 
     211        echo "moved tracer.stat in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     212        echo "moved tracer.stat in ${NEMO_VALID} directory" 
     213    else 
     214        echo "problem in looking for tracer.stat file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
     215        echo "tracer.stat IS NOT in ${NEMO_VALID} directory" 
     216    fi 
     217} 
  • trunk/NEMOGCM/SETTE/fcm_job.sh

    r2687 r3294  
    2525# :: 
    2626# 
    27 #  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 
     27#  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 
    2828# 
    2929# 
     
    3131# =========== 
    3232# 
     33# Simple job for SET TESTS for NEMO (SETTE) 
     34#  
     35#   get input files (if needed) : tar file   
     36#  (note this job needs to have an input_CONFIG.cfg in which can be found input tar file name) 
    3337# 
    34 # Simple job for SET TESTS for NEMO (SETTE) 
     38#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
    3539# 
    36 # this job creates tree of validation in NEMO_VALIDATION_DIR as follows :  
     40#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
    3741# 
    38 # NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
    39 #  
    40 # NEMO_VALIDATION_DIR      : is choosen in param.cfg 
    41 # 
    42 # WCONFIG_NAME       : set by makenemo at the moment of compilation 
    43 # 
    44 # WCOMPILER_NAME     : set by makenemo at the moment of compilation 
    45 # 
    46 # TEST_NAME       : convention is LONG=10 days run, SHORT=5 days run 
    47 # 
    48 # REVISION_NUMBER(or DATE) : revision number by svn info, if problems with svn date is taken 
     42#   and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 
    4943# 
    5044# EXAMPLES 
     
    5347# :: 
    5448# 
    55 #  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME 
     49#  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 
    5650# 
    57 #  run a job of config GYRE with 1 processor test REPRODUCTINILITY 
    58 #  $ ./fcm_job.sh input_GYRE.cfg 1 SHORT 
     51#  run a job of config GYRE with 1 processor SHORT test ( 5 days ) using an interactive run without mpirun 
     52#  $ ./fcm_job.sh input_GYRE.cfg 1 SHORT yes no 
    5953# 
    60 #  run a job of config ORCA2_LIM_PISCES   with 8 processors test RESTARTABILITY 
    61 #  $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG 
     54#  run a job of config ORCA2_LIM_PISCES   with 8 processors test RESTARTABILITY submitting the job to the batch queue system and using mpirun 
     55#  $ ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 LONG no yes 
    6256# 
    6357# 
     
    8074# 
    8175 
    82 usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg  NUMBER_OF_PROCS TEST_NAME" 
    83 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 RUN" 
     76usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg  NUMBER_OF_PROCS TEST_NAME INTERACT MPI_FLAG" 
     77usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes no/yes" 
    8478 
    8579 
    86 minargcount=3 
     80minargcount=2 
    8781        if [ ${#} -lt ${minargcount} ] 
    8882        then 
     
    9791   fi 
    9892        
    99 echo "date: `date`" >> ${SETTE_DIR}/output.sette 
    100 echo "" >> ${SETTE_DIR}/output.sette 
    101 echo "running config: ${NEW_CONF}" >> ${SETTE_DIR}/output.sette 
    102 echo "" >> ${SETTE_DIR}/output.sette 
    103 echo "list of cpp_keys: " >> ${SETTE_DIR}/output.sette 
    104 echo "`more ../CONFIG/${NEW_CONF}/cpp_${NEW_CONF}.fcm`" >> ${SETTE_DIR}/output.sette 
    105 echo "" >> ${SETTE_DIR}/output.sette 
    106 echo "compiling with: ${CMP_NAM}" >> ${SETTE_DIR}/output.sette 
    107 echo "" >> ${SETTE_DIR}/output.sette 
    108 echo "executing script : \"fcm_job $@\" " >> ${SETTE_DIR}/output.sette 
    109 echo "            " >> ${SETTE_DIR}/output.sette 
    11093 
    111 ################################################################ 
    112 # SET INPUT 
    113 # get the input tarfile if needed 
    114 tar_file=$(sed -ne "1,1p" $1) 
    115 if [ "$(cat $1 | grep -c ".tar" )" -ne 0 ] ; then 
    116    echo "looking for tar file" >> ${SETTE_DIR}/output.sette 
    117    echo "            " >> ${SETTE_DIR}/output.sette 
    118    cp ${FORCING_DIR}/${tar_file} ${INPUT_DIR}/. 
    119    if [ ! -f ${INPUT_DIR}/${tar_file} ] ; then  
    120       echo "PROBLEM during copy of tar file" >> ${SETTE_DIR}/output.sette 
    121       echo "tar file IS NOT present in ${INPUT_DIR} directory " >> ${SETTE_DIR}/output.sette 
    122       echo "            " >> ${SETTE_DIR}/output.sette 
    123       echo "PROBLEM during copy of tar file"  
    124       exit 1 
    125    else   
    126       cd ${INPUT_DIR} ; tar xvof ${INPUT_DIR}/*.tar ; gunzip -f *gz 
    127    fi 
    128 fi  
    129  
    130 if [ -f ${INPUT_DIR}/namelist_ice_lim2 ] ; then  
    131    echo "choosing for namelist ice " >> ${SETTE_DIR}/output.sette 
    132    echo "            " >> ${SETTE_DIR}/output.sette 
    133    cp ${INPUT_DIR}/namelist_ice_lim2 ${INPUT_DIR}/namelist_ice 
    134 elif  [ -f ${INPUT_DIR}/namelist_ice_lim3 ] ; then  
    135    cp ${INPUT_DIR}/namelist_ice_lim3 ${INPUT_DIR}/namelist_ice 
    136 fi 
    137  
    138  
    139 if [ "$(cat ${CONFIG_DIR}/${NEW_CONF}/cpp_${NEW_CONF}.fcm | grep -c "agrif" )" -ne 0 ] ; then 
    140    #- Namelist for ocean and ice (agrif fine grid) 
    141       echo "choosing for namelist for AGRIF" >> ${SETTE_DIR}/output.sette 
    142       echo "            " >> ${SETTE_DIR}/output.sette 
    143    cp ${INPUT_DIR}/1_namelist_ice_lim2 ${INPUT_DIR}/1_namelist_ice  
    144 fi 
    145 ################################################################ 
    146  
     94export NB_PROCS=$1 
     95export JOB_FILE=$2 
    14796################################################################ 
    14897# RUN OPA 
    149 cd ${INPUT_DIR} 
    150 NB_PROC=$2 
    151 if [ ! -r ${INPUT_DIR}/opa ] 
    152     then 
    153     echo "executable opa does not exist" 
    154     echo "executable opa does not exist, exit"  >> ${SETTE_DIR}/output.sette 
    155     exit 1 
    156 fi 
    157 if [ ${NB_PROC} == 1 ] ; then 
    158     echo "running opa" >> ${SETTE_DIR}/output.sette 
    159     echo "            " >> ${SETTE_DIR}/output.sette 
    160     ./opa 
    161 else 
    162     echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 
    163     echo "            " >> ${SETTE_DIR}/output.sette 
    164 # example for brodie (NEC SX8) machine 
    165 #  mpirun -np ${NB_PROC} opa 
    166 # example for dedale machine 
    167 #  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
    168 # example for vargas (IBM Power6) machine 
    169     mpiexec -n ${NB_PROC} opa 
    170 fi 
    171 ################################################################ 
    172 # SMALL DEBUG 
    173 # echo "control that time.step exists 
    174 if [ ! -r ${INPUT_DIR}/time.step ] 
    175     then 
    176     echo "file time.step does not exist"   >> ${SETTE_DIR}/output.sette 
    177     echo "some problems during execution of model"  >> ${SETTE_DIR}/output.sette  
    178     exit 1 
    179 else 
    180     echo "file time.step exists"  >> ${SETTE_DIR}/output.sette 
    181     echo "ok model run"   >> ${SETTE_DIR}/output.sette 
    182 fi 
    183 ################################################################ 
     98cd ${EXE_DIR} 
    18499 
    185 ################################################################ 
    186 # SAVE OUTPUT, DEBUG & RESTART FILES 
    187 echo "saving ocean & ice output, debug & restart files" >> ${SETTE_DIR}/output.sette 
    188 echo "            " >> ${SETTE_DIR}/output.sette 
    189 [ ! -d ${OUTPUT_DIR} ] && mkdir ${OUTPUT_DIR} 
    190 [ -f *ocean.output ] && mv *ocean.output ${OUTPUT_DIR}/. 
    191 [ -f *solver.stat ] && mv *solver.stat ${OUTPUT_DIR}/. 
    192 [ -n "$(ls *_grid_*)" ] && mv *_grid_*.nc ${OUTPUT_DIR}/. 
    193 [ -n "$(ls *_ptrc_*)" ] && mv *_ptrc_*.nc ${OUTPUT_DIR}/. 
    194 [ -n "$(ls *_diad_*)" ] && mv *_diad_*.nc ${OUTPUT_DIR}/. 
    195 [ -n "`ls *restart*`" ] && cp *restart*.nc ${OUTPUT_DIR}/. 
    196 [ -f ice_evolu ] && mv ice_evolu ${OUTPUT_DIR}/. 
    197 [ -n "`ls *icemod*`" ] && mv *icemod* ${OUTPUT_DIR}/. 
    198 #- Save ftrace file 
    199 [ -f ftrace.out* ] && cp ftrace.out* ${OUTPUT_DIR}/. 
    200 ################################################################ 
     100# submit job to batch system  
     101        if [ ${NB_PROC} -eq 1 ]; then 
     102      eval ${BATCH_COMMAND_SEQ} $JOB_FILE  
     103        else 
     104      eval ${BATCH_COMMAND_PAR} $JOB_FILE 
     105        fi 
    201106 
    202 ################################################################ 
    203 # SAVE IN NEMO_VALIDATION tree 
    204 export LANG=en_US  
    205 cd ${CONFIG_DIR} 
    206 cd ../ 
    207 REVISION_NB=`svn info | grep -i "Revision:" | sed -e "s/ //" | cut -d ":" -f 2` 
    208 if [ ${#REVISION_NB} -eq 0 ] 
    209 then 
    210    echo "some problems with svn info command" 
    211    echo "some problems with svn info command" >> ${SETTE_DIR}/output.sette 
    212    REVISION_NB=`date +%Y%m%d` 
    213    echo "put in ${REVISION_NB} date" 
    214    echo "put in ${REVISION_NB} date" >> ${SETTE_DIR}/output.sette 
    215 else 
    216 echo "value of revision number of NEMOGCM: ${REVISION_NB}" 
    217 fi 
    218 cd ${NEMO_VALIDATION_DIR} 
    219 export TEST_NAME=$3 
    220 `mkdir -p ${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME}` 
    221 NEMO_VALID=${NEMO_VALIDATION_DIR}/W${NEW_CONF}/${CMP_NAM}/${REVISION_NB}/${TEST_NAME} 
    222 if [ -d ${NEMO_VALID} ] ; then 
    223    echo "created ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
    224 else  
    225    echo "problems in creating ${NEMO_VALID} directory"   >> ${SETTE_DIR}/output.sette 
    226    echo "EXIT," 
    227    exit 1 
    228 fi 
    229 [ -f ${OUTPUT_DIR}/*ocean.output ] && mv ${OUTPUT_DIR}/*ocean.output ${NEMO_VALID}/. 
    230 [ -f ${OUTPUT_DIR}/*solver.stat ] && mv ${OUTPUT_DIR}/*solver.stat ${NEMO_VALID}/. 
    231 [ -n "`ls ${OUTPUT_DIR}/*restart*`" ] && mv ${OUTPUT_DIR}/*restart* ${NEMO_VALID}/. 
    232 [ -f ${OUTPUT_DIR}/ice_evolu ] && mv ${OUTPUT_DIR}/ice_evolu ${NEMO_VALID}/. 
    233 if [ -n "$(ls ${NEMO_VALID}/*solver*)" ] ; then 
    234    echo "moved solver.stat in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    235    echo "moved solver.stat in ${NEMO_VALID} directory"   
    236 else 
    237    echo "problem in looking for solver.stat file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    238    echo "solver.stat IS NOT in ${NEMO_VALID} directory"  
    239 fi 
    240 if [ -n "$(ls ${NEMO_VALID}/*ocean.output*)" ] ; then 
    241    echo "moved ocean.output in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    242    echo "moved ocean.output in ${NEMO_VALID} directory"  
    243 else 
    244    echo "problem in looking for ocean.output file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    245    echo "ocean.output IS NOT in ${NEMO_VALID} directory"  
    246 fi 
    247 if [ -n "`ls ${NEMO_VALID}/*restart*`" ] ; then 
    248    echo "moved restart files in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    249    echo "moved restart files in ${NEMO_VALID} directory"  
    250 else 
    251    echo "problem in looking for restart files in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    252    echo "restart files ARE NOT in ${NEMO_VALID} directory"  
    253 fi 
    254 if [ -n "$(ls ${NEMO_VALID}/ice_evolu)" ] ; then 
    255         echo "moved ice_evolu in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    256         echo "moved ice_evolu in ${NEMO_VALID} directory" 
    257 else 
    258         echo "problem looking for ice_evolu file in ${NEMO_VALID} directory"  >> ${SETTE_DIR}/output.sette 
    259         echo "ice_evolu IS NOT in ${NEMO_VALID} directory" 
    260 fi 
    261 ################################################################ 
  • trunk/NEMOGCM/SETTE/param.cfg

    r2675 r3294  
    1 #- execution directory  
    2 EXE_DIR=${CONFIG_DIR}      
    31#- forcing files storing  
    42FORCING_DIR=~/FORCING 
     
    64INPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    75#- only for IBM 
    8 # TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    9 #- output files storing  
    10 OUTPUT_DIR=${CONFIG_DIR}/${NEW_CONF}/EXP00/OUTPUT 
     6#TMPDIR=${CONFIG_DIR}/${NEW_CONF}/EXP00 
    117#- VALIDATION files storing  
    128NEMO_VALIDATION_DIR=~/NEMO_VALIDATION 
  • trunk/NEMOGCM/SETTE/sette.sh

    r2756 r3294  
    3535# =========== 
    3636# 
    37 # principal script is sette.sh, that calls  
     37# Variables to be checked by user: 
     38# 
     39# COMPILER : name of compiler as defined in NEMOGCM/ARCH directory  
     40# 
     41# BATCH_COMMAND :  name of the command for batch submission 
     42# 
     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" 
     48# 
     49# Principal script is sette.sh, that calls  
    3850# 
    3951#  makenemo  
    4052# 
    41 #   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  
    42 # 
    43 #   (and its link opa in ${CONFIG_NAME}/EXP00) 
    44 # 
    45 #   param.cfg : sets and loads following directories 
    46 # 
    47 #   Executing directory (EXE_DIR) 
    48 # 
    49  
    50 # 
    51 #   Input files storing (INPUT_DIR) 
    52 # 
    53 #   Temporary directory (if needed) (TMPDIR) 
     53#   creates the exectuable in ${CONFIG_NAME}/BLD/bin/nemo.exe  (and its link opa in ${CONFIG_NAME}/EXP00) 
     54# 
     55#  param.cfg : sets and loads following directories: 
     56# 
     57#   FORCING_DIR : is the directory for forcing files (tarfile) 
     58# 
     59#   INPUT_DIR : is the directory for input files storing  
     60# 
     61#   TMPDIR : is the temporary directory (if needed) 
    5462#  
    55 #   Validation directory (NEMO_VALIDATION_DIR) 
    56 # 
    57 #   (note: this file is the same for all configrations to be tested with sette) 
     63#   NEMO_VALIDATION_DIR : is the validation directory 
     64# 
     65#   (NOTE: this file is the same for all configrations to be tested with sette) 
     66# 
    5867# 
    5968#  all_functions.sh : loads functions used by sette (note: new functions can be added here) 
    6069# 
    61 #  set_namelist : function declared in all_functions that set namelist parameters for tests 
     70#   set_namelist : function declared in all_functions that set namelist parameters for tests 
     71# 
     72#   post_test_tidyup : creates validation storage directory and copy needed output files (solver.stat and ocean.output) in it after execution of test. 
     73# 
     74#   Tree of VALIDATION is: 
     75# 
     76#   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     77# 
     78# 
     79#  prepare_exe_dir.sh : defines and creates directory where the test is executed 
     80# 
     81#       execution directory takes name of TEST_NAME defined in every test in sette.sh 
     82# 
     83#       ( each test in executed in its own directory ) 
     84# 
    6285# 
    6386#  fcm_job.sh  
    6487# 
    65 #   runs job and saves output files (grid_files, restarts, ice_evolu, ftrace.out) 
    66 # 
    67 #   and it creates tree of VALIDATION, in which there are restart files, solver.stat and ocean.output 
    68 # 
    69 #   Tree of VALIDATION is: 
    70 # 
    71 #   NEMO_VALIDATION_DIR/WCONFIG_NAME/WCOMPILER_NAME/TEST_NAME/REVISION_NUMBER(or DATE) 
     88#   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
     89# 
     90#   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
     91# 
     92#   (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
    7293#  
    73  (note this job needs to have an input_CONFIG.cfg in which can be found input tar file) 
    74 # 
    75  (note other files can be saved adding at the end of fcm_job list of saved files) 
     94NOTE: if job is not launched for some problems you have executable ready in ${EXE_DIR} directory 
     95# 
     96NOTE: the changed namelists are leaved in ${EXE_DIR} directory whereas original namelist remains in ${NEW_CONF}/EXP00 
    7697#  
    77 #  NOTE: if job is not launched for some problems you have executable ready in ${CONFIG_NAME}/EXP00 directory 
    78 # 
    79 #  NOTE: the changed namelists are leaved in ${CONFIG_NAME}/EXP00 directory 
    80 #  
    81 #  in ${SETTE_DIR} is created output.sette with the echo of commands run 
     98#  in ${SETTE_DIR} is created output.sette with the echo of executed commands 
    8299# 
    83100#  if sette.sh is stopped in output.sette there is written the last command executed by sette.sh 
     
    112129#- 
    113130# Compiler among those in NEMOGCM/ARCH 
    114 COMPILER=PW6_VARGAS 
     131COMPILER=PW6_CALYPSO 
     132export BATCH_COMMAND_PAR="bsub < " 
     133export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 
     134 
    115135 
    116136# Directory to run the tests 
     
    122142 
    123143CMP_NAM=${1:-$COMPILER} 
    124 ## NBTEST=8 
    125 ## echo "TOTAL NUMBER OF TEST" ${NBTEST} 
    126 ## for (( config=2; config<=${NBTEST}; config++ )) 
    127  
    128 for config in 1 2 3 4 5 6 7 8 
     144# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
     145cd ${SETTE_DIR} 
     146cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
     147 
     148for config in 1 2 3 4 5 6 7 8 9 
    129149do 
    130150 
     151# TESTS FOR GYRE_LOBSTER CONFIGURATION 
    131152if [ ${config} -eq 1 ] ;  then 
    132     # Restartability tests for GYRE_LOBSTER 
    133     cd ${SETTE_DIR} 
    134     . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER del_key "key_diatrc" 
    135     cd ${SETTE_DIR} 
    136     . param.cfg 
    137     . all_functions.sh 
    138     copy_original namelist  
    139     copy_original namelist_top 
     153    ## Restartability tests for GYRE_LOBSTER 
     154    export TEST_NAME="LONG" 
     155    cd ${SETTE_DIR} 
     156    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_LONG -r GYRE_LOBSTER -j 8   
     157    cd ${SETTE_DIR} 
     158    . param.cfg 
     159    . all_functions.sh 
     160    . prepare_exe_dir.sh 
     161    JOB_FILE=${EXE_DIR}/run_job.sh 
     162    MPIRUN_FLAG="yes" 
     163    NPROC=1 
     164    rm $JOB_FILE 
     165    cd ${EXE_DIR} 
    140166    set_namelist namelist cn_exp \"GYRELOB_LONG\" 
    141167    set_namelist namelist nn_it000 1 
     
    143169    set_namelist namelist nn_stock 60 
    144170    set_namelist namelist ln_clobber .true. 
    145     set_namelist namelist_top ln_trcrad .false. 
    146     cd ${SETTE_DIR} 
    147     . ./fcm_job.sh input_GYRE.cfg 1 LONG 
    148      
    149     cd ${SETTE_DIR} 
    150     copy_original namelist 
    151     copy_original namelist_top 
     171    set_namelist namelist nn_solv 2 
     172    set_namelist namelist_top ln_diatrc .false. 
     173    cd ${SETTE_DIR} 
     174    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     175 
     176    cd ${SETTE_DIR} 
     177    export TEST_NAME="SHORT" 
     178    . prepare_exe_dir.sh 
     179    cd ${EXE_DIR} 
    152180    set_namelist namelist cn_exp \"GYRELOB_SHORT\" 
    153181    set_namelist namelist nn_it000 61 
     
    157185    set_namelist namelist nn_rstctl 2 
    158186    set_namelist namelist ln_clobber .true. 
    159     set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart.nc\" 
    160     set_namelist namelist_top ln_trcrad .false. 
     187    set_namelist namelist nn_solv 2 
     188    ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart.nc 
     189    ln -s -f ..\/LONG\/GYRELOB_LONG_00000060_restart_trc.nc 
     190    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 
     191    set_namelist namelist_top ln_diatrc .false. 
    161192    set_namelist namelist_top ln_rsttr .true. 
    162193    set_namelist namelist_top nn_rsttr 2 
    163194    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 
    164195    cd ${SETTE_DIR} 
    165     . ./fcm_job.sh input_GYRE.cfg 1 SHORT 
     196    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     197    cd ${SETTE_DIR} 
     198    . ./fcm_job.sh $NPROC $JOB_FILE 
    166199fi 
    167200 
    168201if [ ${config} -eq 2 ] ;  then 
    169 # Restartability tests for ORCA2_LIM_PISCES 
    170     cd ${SETTE_DIR} 
    171     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_LONG -r ORCA2_LIM_PISCES del_key "key_dtatrc key_diatrc" 
    172     cd ${SETTE_DIR} 
    173     copy_original namelist 
    174     copy_original namelist_top 
    175     copy_original namelist_pisces 
    176     . param.cfg 
    177     . all_functions.sh 
     202    ## Reproducibility tests for GYRE_LOBSTER 
     203    export TEST_NAME="REPRO_1_4" 
     204    cd ${SETTE_DIR} 
     205    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi" 
     206    cd ${SETTE_DIR} 
     207    . param.cfg 
     208    . all_functions.sh 
     209    . prepare_exe_dir.sh 
     210    JOB_FILE=${EXE_DIR}/run_job.sh 
     211    MPIRUN_FLAG="yes" 
     212    NPROC=4 
     213    rm $JOB_FILE 
     214    cd ${EXE_DIR} 
     215    set_namelist namelist cn_exp \"GYRELOB_14\" 
     216    set_namelist namelist nn_it000 1 
     217    set_namelist namelist nn_itend 60 
     218    set_namelist namelist nn_fwb 0 
     219    set_namelist namelist nn_bench 0 
     220    set_namelist namelist ln_ctl .false. 
     221    set_namelist namelist ln_clobber .true. 
     222    set_namelist namelist nn_solv 2 
     223    set_namelist namelist_top ln_diatrc .false. 
     224    set_namelist namelist_top ln_trcdta .false. 
     225    set_namelist namelist jpni 1 
     226    set_namelist namelist jpnj 4 
     227    set_namelist namelist jpnij 4 
     228    cd ${SETTE_DIR} 
     229    . ./prepare_job.sh input_GYRE.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     230    cd ${SETTE_DIR} 
     231    . ./fcm_job.sh $NPROC $JOB_FILE 
     232 
     233    cd ${SETTE_DIR} 
     234    export TEST_NAME="REPRO_2_2" 
     235    . prepare_exe_dir.sh 
     236    JOB_FILE=${EXE_DIR}/run_job.sh 
     237    MPIRUN_FLAG="yes" 
     238    NPROC=4 
     239    rm $JOB_FILE 
     240    cd ${EXE_DIR} 
     241    set_namelist namelist cn_exp \"GYRELOB_22\" 
     242    set_namelist namelist nn_it000 1 
     243    set_namelist namelist nn_itend 60 
     244    set_namelist namelist nn_fwb 0 
     245    set_namelist namelist ln_ctl .false. 
     246    set_namelist namelist ln_clobber .true. 
     247    set_namelist namelist nn_solv 2 
     248    set_namelist namelist_top ln_diatrc .false. 
     249    set_namelist namelist_top ln_trcdta .false. 
     250    set_namelist namelist jpni 2 
     251    set_namelist namelist jpnj 2 
     252    set_namelist namelist jpnij 4 
     253    cd ${SETTE_DIR} 
     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 
     257fi 
     258 
     259# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION 
     260if [ ${config} -eq 3 ] ;  then 
     261    ## Restartability tests for ORCA2_LIM_PISCES 
     262    export TEST_NAME="LONG" 
     263    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    MPIRUN_FLAG="yes" 
     271    NPROC=1 
     272    rm $JOB_FILE 
     273    cd ${EXE_DIR} 
    178274    set_namelist namelist cn_exp \"O2LP_LONG\" 
    179275    set_namelist namelist nn_it000 1 
     
    181277    set_namelist namelist nn_stock 75 
    182278    set_namelist namelist ln_clobber .true. 
    183     set_namelist namelist_top ln_trcrad .false. 
    184     # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    185     # if not you need input files, and for tests is not necessary 
    186     set_namelist namelist_pisces ln_pisdmp .false. 
    187     set_namelist namelist_pisces ln_dustfer .false. 
    188     set_namelist namelist_pisces ln_river .false. 
    189     set_namelist namelist_pisces ln_ndepo .false. 
    190     set_namelist namelist_pisces ln_sedinput .false. 
    191     cd ${SETTE_DIR} 
    192     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 LONG 
     279    set_namelist namelist nn_solv 2 
     280    set_namelist namelist_top ln_trcdta .false. 
     281    set_namelist namelist_top ln_diatrc .false. 
     282    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     283    # if not you need input files, and for tests is not necessary 
     284    set_namelist namelist_pisces ln_ironsed .false. 
     285    set_namelist namelist_pisces ln_river .false. 
     286    set_namelist namelist_pisces ln_ndepo .false. 
     287    set_namelist namelist_pisces ln_dust .false. 
     288    set_namelist namelist_pisces ln_presatm .false. 
     289    cd ${SETTE_DIR} 
     290    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
    193291     
    194292    cd ${SETTE_DIR} 
    195     copy_original namelist 
    196     copy_original namelist_ice 
    197     copy_original namelist_top 
    198     copy_original namelist_pisces 
     293    export TEST_NAME="SHORT" 
     294    . prepare_exe_dir.sh 
     295    cd ${EXE_DIR} 
    199296    set_namelist namelist cn_exp \"O2LP_SHORT\" 
    200297    set_namelist namelist nn_it000 76 
     
    204301    set_namelist namelist nn_rstctl 2 
    205302    set_namelist namelist ln_clobber .true. 
    206     set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart.nc\" 
    207     set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice.nc\" 
    208     set_namelist namelist_top ln_trcrad .false. 
     303    set_namelist namelist nn_solv 2 
     304    ln -s -f ../LONG/O2LP_LONG_00000075_restart.nc 
     305    ln -s -f ../LONG/O2LP_LONG_00000075_restart_ice.nc 
     306    ln -s -f ../LONG/O2LP_LONG_00000075_restart_trc.nc 
     307    set_namelist namelist cn_ocerst_in \"O2LP_LONG_00000075_restart\" 
     308    set_namelist namelist_ice cn_icerst_in \"O2LP_LONG_00000075_restart_ice\" 
     309    set_namelist namelist_top ln_diatrc .false. 
    209310    set_namelist namelist_top ln_rsttr .true. 
    210311    set_namelist namelist_top nn_rsttr 2 
    211312    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
    212     # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput 
    213     # if not you need input files, and for tests is not necessary 
    214     set_namelist namelist_pisces ln_pisdmp .false. 
    215     set_namelist namelist_pisces ln_dustfer .false. 
    216     set_namelist namelist_pisces ln_river .false. 
    217     set_namelist namelist_pisces ln_ndepo .false. 
    218     set_namelist namelist_pisces ln_sedinput .false. 
    219     cd ${SETTE_DIR} 
    220     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 1 SHORT 
    221 fi 
    222  
    223 if [ ${config} -eq 3 ] ;  then 
    224     ## Restartability tests for POMME 
    225     cd ${SETTE_DIR} 
    226     . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME 
    227     cd ${SETTE_DIR} 
    228     . param.cfg 
    229     . all_functions.sh 
    230     copy_original namelist 
    231     set_namelist namelist cn_exp \"POMME_LONG\" 
    232     set_namelist namelist nn_it000 1 
    233     set_namelist namelist nn_itend 600 
    234     set_namelist namelist ln_clobber .true. 
    235     cd ${SETTE_DIR} 
    236     . ./fcm_job.sh input_POMME.cfg 1 LONG 
    237      
    238     cd ${SETTE_DIR} 
    239     copy_original namelist 
    240     set_namelist namelist cn_exp \"POMME_SHORT\" 
    241     set_namelist namelist nn_it000 301 
    242     set_namelist namelist nn_itend 600 
    243     set_namelist namelist nn_stock 300 
    244     set_namelist namelist ln_rstart .true. 
    245     set_namelist namelist nn_rstctl 2 
    246     set_namelist namelist ln_clobber .true. 
    247     set_namelist namelist cn_ocerst_in \"POMME_LONG_00000075_restart.nc\" 
    248     mv ${OUTPUT_DIR}/restart.obc.output ${OUTPUT_DIR}/restart.obc 
    249     cd ${SETTE_DIR} 
    250     . ./fcm_job.sh input_POMME.cfg 1 SHORT 
     313    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
     314    # if not you need input files, and for tests is not necessary 
     315    set_namelist namelist_pisces ln_ironsed .false. 
     316    set_namelist namelist_pisces ln_river .false. 
     317    set_namelist namelist_pisces ln_ndepo .false. 
     318    set_namelist namelist_pisces ln_dust .false. 
     319    set_namelist namelist_pisces ln_presatm .false. 
     320    cd ${SETTE_DIR} 
     321    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     322    cd ${SETTE_DIR} 
     323    . ./fcm_job.sh $NPROC $JOB_FILE 
    251324fi 
    252325 
    253326if [ ${config} -eq 4 ] ;  then 
    254     ## Reproducilibity tests for GYRE_LOBSTER 
    255     cd ${SETTE_DIR} 
    256     . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_diatrc" 
    257     cd ${SETTE_DIR} 
    258     . param.cfg 
    259     . all_functions.sh 
    260     copy_original namelist 
    261     set_namelist namelist cn_exp \"GYRELOB_14\" 
     327    ## Reproducibility tests for ORCA2_LIM_PISCES 
     328    export TEST_NAME="REPRO_4_4" 
     329    cd ${SETTE_DIR} 
     330    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 
     331    cd ${SETTE_DIR} 
     332    . param.cfg 
     333    . all_functions.sh 
     334    . prepare_exe_dir.sh 
     335    JOB_FILE=${EXE_DIR}/run_job.sh 
     336    MPIRUN_FLAG="yes" 
     337    NPROC=16 
     338    rm $JOB_FILE 
     339    cd ${EXE_DIR} 
    262340    set_namelist namelist nn_it000 1 
    263341    set_namelist namelist nn_itend 75 
    264342    set_namelist namelist nn_fwb 0 
    265     set_namelist namelist nn_bench 0 
    266     set_namelist namelist ln_ctl .false. 
    267     set_namelist namelist ln_clobber .true. 
    268     set_namelist namelist jpni 1 
    269     set_namelist namelist jpnj 4 
    270     set_namelist namelist jpnij 4 
    271     cd ${SETTE_DIR} 
    272     . ./fcm_job.sh input_GYRE.cfg 4 REPRO_1_4 
    273      
    274     cd ${SETTE_DIR} 
    275     copy_original namelist 
    276     set_namelist namelist cn_exp \"GYRELOB_22\" 
    277     set_namelist namelist nn_it000 1 
    278     set_namelist namelist nn_itend 75 
    279     set_namelist namelist nn_fwb 0 
    280     set_namelist namelist ln_ctl .false. 
    281     set_namelist namelist ln_clobber .true. 
    282     set_namelist namelist jpni 2 
    283     set_namelist namelist jpnj 2 
    284     set_namelist namelist jpnij 4 
    285     cd ${SETTE_DIR} 
    286     . ./fcm_job.sh input_GYRE.cfg 4 REPRO_2_2 
    287 fi 
    288  
    289 if [ ${config} -eq 5 ] ;  then 
    290     ## Repropducilibity tests for ORCA2_LIM_PISCES 
    291     cd ${SETTE_DIR} 
    292     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2LIMPIS_16 -r ORCA2_LIM_PISCES add_key "key_mpp_mpi key_mpp_rep" del_key "key_vectopt_loop key_dtatrc key_diatrc"  
    293     cd ${SETTE_DIR} 
    294     . param.cfg 
    295     . all_functions.sh 
    296     copy_original namelist 
    297     copy_original namelist_pisces 
    298     set_namelist namelist nn_it000 1 
    299     set_namelist namelist nn_itend 75 
    300     set_namelist namelist nn_fwb 0 
    301     set_namelist namelist ln_ctl .false. 
    302343    set_namelist namelist ln_clobber .true. 
    303344    set_namelist namelist jpni 4 
    304345    set_namelist namelist jpnj 4 
    305     set_namelist namelist jpnij 16  
    306     # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    307     # if not you need input files, and for tests is not necessary 
    308     set_namelist namelist_pisces ln_pisdmp .false. 
    309     set_namelist namelist_pisces ln_dustfer .false. 
    310     set_namelist namelist_pisces ln_river .false. 
    311     set_namelist namelist_pisces ln_ndepo .false. 
    312     set_namelist namelist_pisces ln_sedinput .false. 
    313     cd ${SETTE_DIR} 
    314     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_4_4 
    315      
    316     cd ${SETTE_DIR} 
    317     copy_original namelist 
    318     copy_original namelist_pisces 
     346    set_namelist namelist jpnij 16 
     347    set_namelist namelist nn_solv 2 
     348    set_namelist namelist_top ln_trcdta .false. 
     349    set_namelist namelist_top ln_diatrc .false. 
     350    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     351    # if not you need input files, and for tests is not necessary 
     352    set_namelist namelist_pisces ln_ironsed .false. 
     353    set_namelist namelist_pisces ln_river .false. 
     354    set_namelist namelist_pisces ln_ndepo .false. 
     355    set_namelist namelist_pisces ln_dust .false. 
     356    set_namelist namelist_pisces ln_presatm .false. 
     357    cd ${SETTE_DIR} 
     358    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     359    cd ${SETTE_DIR} 
     360    . ./fcm_job.sh $NPROC $JOB_FILE 
     361 
     362    cd ${SETTE_DIR} 
     363    export TEST_NAME="REPRO_2_8" 
     364    . prepare_exe_dir.sh 
     365    JOB_FILE=${EXE_DIR}/run_job.sh 
     366    MPIRUN_FLAG="yes" 
     367    NPROC=16 
     368    rm $JOB_FILE 
     369    cd ${EXE_DIR} 
    319370    set_namelist namelist nn_it000 1 
    320371    set_namelist namelist nn_itend 75 
    321372    set_namelist namelist nn_fwb 0 
    322     set_namelist namelist ln_ctl .false. 
    323373    set_namelist namelist ln_clobber .true. 
    324374    set_namelist namelist jpni 2 
    325375    set_namelist namelist jpnj 8 
    326376    set_namelist namelist jpnij 16 
    327     # put ln_pisdmp, ln_dustfer, ln_river, ln_ndepo, ln_sedinput to false 
    328     # if not you need input files, and for tests is not necessary 
    329     set_namelist namelist_pisces ln_pisdmp .false. 
    330     set_namelist namelist_pisces ln_dustfer .false. 
    331     set_namelist namelist_pisces ln_river .false. 
    332     set_namelist namelist_pisces ln_ndepo .false. 
    333     set_namelist namelist_pisces ln_sedinput .false. 
    334     cd ${SETTE_DIR} 
    335     . ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 16 REPRO_2_8 
     377    set_namelist namelist nn_solv 2 
     378    set_namelist namelist_top ln_trcdta .false. 
     379    set_namelist namelist_top ln_diatrc .false. 
     380    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     381    # if not you need input files, and for tests is not necessary 
     382    set_namelist namelist_pisces ln_ironsed .false. 
     383    set_namelist namelist_pisces ln_river .false. 
     384    set_namelist namelist_pisces ln_ndepo .false. 
     385    set_namelist namelist_pisces ln_dust .false. 
     386    set_namelist namelist_pisces ln_presatm .false. 
     387    cd ${SETTE_DIR} 
     388    . ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     389    cd ${SETTE_DIR} 
     390    . ./fcm_job.sh $NPROC $JOB_FILE 
     391fi 
     392 
     393# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 
     394if [ ${config} -eq 5 ] ;  then 
     395    ## Restartability tests for ORCA2_OFF_PISCES 
     396    export TEST_NAME="LONG" 
     397    cd ${SETTE_DIR} 
     398    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8  
     399    cd ${SETTE_DIR} 
     400    . param.cfg 
     401    . all_functions.sh 
     402    . prepare_exe_dir.sh 
     403    JOB_FILE=${EXE_DIR}/run_job.sh 
     404    MPIRUN_FLAG="yes" 
     405    NPROC=1 
     406    rm $JOB_FILE 
     407    cd ${EXE_DIR} 
     408    set_namelist namelist cn_exp \"OFFP_LONG\" 
     409    set_namelist namelist nn_it000 1 
     410    set_namelist namelist nn_itend 40 
     411    set_namelist namelist nn_stock 20 
     412    set_namelist namelist ln_clobber .true. 
     413    set_namelist namelist_top ln_trcdta .false. 
     414    set_namelist namelist_top ln_diatrc .false. 
     415    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     416    # if not you need input files, and for tests is not necessary 
     417    set_namelist namelist_pisces ln_ironsed .false. 
     418    set_namelist namelist_pisces ln_river .false. 
     419    set_namelist namelist_pisces ln_ndepo .false. 
     420    set_namelist namelist_pisces ln_dust .false. 
     421    set_namelist namelist_pisces ln_presatm .false. 
     422    cd ${SETTE_DIR} 
     423    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     424     
     425    cd ${SETTE_DIR} 
     426    export TEST_NAME="SHORT" 
     427    . prepare_exe_dir.sh 
     428    cd ${EXE_DIR} 
     429    set_namelist namelist cn_exp \"OFFP_SHORT\" 
     430    set_namelist namelist nn_it000 21 
     431    set_namelist namelist nn_itend 40 
     432    set_namelist namelist nn_stock 20 
     433    set_namelist namelist ln_clobber .true. 
     434    ln -s ../LONG/OFFP_LONG_00000020_restart_trc.nc . 
     435    set_namelist namelist_top ln_diatrc .false. 
     436    set_namelist namelist_top ln_rsttr .true. 
     437    set_namelist namelist_top nn_rsttr 2 
     438    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 
     439    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
     440    # if not you need input files, and for tests is not necessary 
     441    set_namelist namelist_pisces ln_ironsed .false. 
     442    set_namelist namelist_pisces ln_river .false. 
     443    set_namelist namelist_pisces ln_ndepo .false. 
     444    set_namelist namelist_pisces ln_dust .false. 
     445    set_namelist namelist_pisces ln_presatm .false. 
     446    cd ${SETTE_DIR} 
     447    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     448    cd ${SETTE_DIR} 
     449    . ./fcm_job.sh $NPROC $JOB_FILE 
    336450fi 
    337451 
    338452if [ ${config} -eq 6 ] ;  then 
    339     ## Reproductibility tests for POMME 
    340     cd ${SETTE_DIR} 
    341     . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME add_key "key_mpp_mpi key_mpp_rep" 
    342     cd ${SETTE_DIR} 
    343     . param.cfg 
    344     . all_functions.sh 
    345     copy_original namelist 
    346     set_namelist namelist nn_it000 1 
    347     set_namelist namelist nn_itend 300 
     453    ## Reproducibility tests for ORCA2_OFF_PISCES 
     454    export TEST_NAME="REPRO_4_4" 
     455    cd ${SETTE_DIR} 
     456    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_16 -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_rep key_mpp_mpi" 
     457    cd ${SETTE_DIR} 
     458    . param.cfg 
     459    . all_functions.sh 
     460    . prepare_exe_dir.sh 
     461    JOB_FILE=${EXE_DIR}/run_job.sh 
     462    MPIRUN_FLAG="yes" 
     463    NPROC=16 
     464    rm $JOB_FILE 
     465    cd ${EXE_DIR} 
     466    set_namelist namelist nn_it000 1 
     467    set_namelist namelist nn_itend 40 
     468    set_namelist namelist ln_clobber .true. 
     469    set_namelist namelist jpni 4 
     470    set_namelist namelist jpnj 4 
     471    set_namelist namelist jpnij 16 
     472    set_namelist namelist_top ln_trcdta .false. 
     473    set_namelist namelist_top ln_diatrc .false. 
     474    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     475    # if not you need input files, and for tests is not necessary 
     476    set_namelist namelist_pisces ln_ironsed .false. 
     477    set_namelist namelist_pisces ln_river .false. 
     478    set_namelist namelist_pisces ln_ndepo .false. 
     479    set_namelist namelist_pisces ln_dust .false. 
     480    set_namelist namelist_pisces ln_presatm .false. 
     481    cd ${SETTE_DIR} 
     482    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     483    cd ${SETTE_DIR} 
     484    . ./fcm_job.sh $NPROC $JOB_FILE 
     485 
     486    cd ${SETTE_DIR} 
     487    export TEST_NAME="REPRO_2_8" 
     488    . prepare_exe_dir.sh 
     489    JOB_FILE=${EXE_DIR}/run_job.sh 
     490    MPIRUN_FLAG="yes" 
     491    NPROC=16 
     492    rm $JOB_FILE 
     493    cd ${EXE_DIR} 
     494    set_namelist namelist nn_it000 1 
     495    set_namelist namelist nn_itend 40 
     496    set_namelist namelist ln_clobber .true. 
     497    set_namelist namelist jpni 2 
     498    set_namelist namelist jpnj 8 
     499    set_namelist namelist jpnij 16 
     500    set_namelist namelist_top ln_trcdta .false. 
     501    set_namelist namelist_top ln_diatrc .false. 
     502    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     503    # if not you need input files, and for tests is not necessary 
     504    set_namelist namelist_pisces ln_ironsed .false. 
     505    set_namelist namelist_pisces ln_river .false. 
     506    set_namelist namelist_pisces ln_ndepo .false. 
     507    set_namelist namelist_pisces ln_dust .false. 
     508    set_namelist namelist_pisces ln_presatm .false. 
     509    cd ${SETTE_DIR} 
     510    . ./prepare_job.sh input_ORCA2_OFF_PISCES.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     511    cd ${SETTE_DIR} 
     512    . ./fcm_job.sh $NPROC $JOB_FILE 
     513fi 
     514 
     515# TESTS FOR AMM12 CONFIGURATION 
     516if [ ${config} -eq 7 ] ;  then 
     517    ## Reproducibility tests for AMM12 
     518    export TEST_NAME="REPRO_8_4" 
     519    cd ${SETTE_DIR} 
     520    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 -j 8 add_key "key_mpp_rep" 
     521    cd ${SETTE_DIR} 
     522    . param.cfg 
     523    . all_functions.sh 
     524    . prepare_exe_dir.sh 
     525    JOB_FILE=${EXE_DIR}/run_job.sh 
     526    MPIRUN_FLAG="yes" 
     527    NPROC=32 
     528    rm $JOB_FILE 
     529    cd ${EXE_DIR} 
     530    set_namelist namelist nn_it000 1 
     531    set_namelist namelist nn_itend 576 
    348532    set_namelist namelist nn_fwb 0 
    349533    set_namelist namelist ln_ctl .false. 
    350534    set_namelist namelist ln_clobber .true. 
    351     set_namelist namelist jpni 1 
     535    set_namelist namelist nn_dyn2d 2 
     536    set_namelist namelist nn_tra_dta 0 
     537    set_namelist namelist jpni 8 
    352538    set_namelist namelist jpnj 4 
    353     set_namelist namelist jpnij 4 
    354     cd ${SETTE_DIR} 
    355     . ./fcm_job.sh input_POMME.cfg 4 REPRO_1_4 
    356      
    357     cd ${SETTE_DIR} 
    358     copy_original namelist 
    359     set_namelist namelist nn_it000 1 
    360     set_namelist namelist nn_itend 300 
     539    set_namelist namelist jpnij 32 
     540    cd ${SETTE_DIR} 
     541    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     542    cd ${SETTE_DIR} 
     543    . ./fcm_job.sh $NPROC $JOB_FILE 
     544 
     545    cd ${SETTE_DIR} 
     546    export TEST_NAME="REPRO_4_8" 
     547    . prepare_exe_dir.sh 
     548    JOB_FILE=${EXE_DIR}/run_job.sh 
     549    MPIRUN_FLAG="yes" 
     550    NPROC=32 
     551    rm $JOB_FILE 
     552    cd ${EXE_DIR} 
     553    set_namelist namelist nn_it000 1 
     554    set_namelist namelist nn_itend 576 
    361555    set_namelist namelist nn_fwb 0 
    362556    set_namelist namelist ln_ctl .false. 
    363     set_namelist namelist ln_clobber .true. 
    364     set_namelist namelist jpni 2 
    365     set_namelist namelist jpnj 2 
    366     set_namelist namelist jpnij 4 
    367     cd ${SETTE_DIR} 
    368     . ./fcm_job.sh input_POMME.cfg 4 REPRO_2_2 
    369 fi 
    370  
    371 if [ ${config} -eq 7 ] ;  then 
    372     ## ORCA2_LIM with Agulhas AGRIF zoom 
    373     cd ${SETTE_DIR} 
    374     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM add_key "key_agrif" del_key "key_vectopt_loop key_zdftmx"  
    375     cd ${SETTE_DIR} 
    376     . param.cfg 
    377     . all_functions.sh 
    378     copy_original namelist 
    379     copy_original 1_namelist 
     557    set_namelist namelist nn_dyn2d 2 
     558    set_namelist namelist nn_tra_dta 0 
     559    set_namelist namelist ln_clobber .true. 
     560    set_namelist namelist jpni 4 
     561    set_namelist namelist jpnj 8 
     562    set_namelist namelist jpnij 32 
     563    cd ${SETTE_DIR} 
     564    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     565    cd ${SETTE_DIR} 
     566    . ./fcm_job.sh $NPROC $JOB_FILE 
     567fi 
     568 
     569if [ ${config} -eq 8 ] ;  then 
     570    ## Restartability tests for AMM12 
     571    export TEST_NAME="LONG" 
     572    cd ${SETTE_DIR} 
     573    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 -j 8 add_key "key_mpp_rep" 
     574    cd ${SETTE_DIR} 
     575    . param.cfg 
     576    . all_functions.sh 
     577    . prepare_exe_dir.sh 
     578    JOB_FILE=${EXE_DIR}/run_job.sh 
     579    MPIRUN_FLAG="yes" 
     580    NPROC=32 
     581    rm $JOB_FILE 
     582    cd ${EXE_DIR} 
     583    set_namelist namelist nn_it000 1 
     584    set_namelist namelist nn_itend 12 
     585    set_namelist namelist nn_stock 6 
     586    set_namelist namelist nn_fwb 0 
     587    set_namelist namelist ln_ctl .false. 
     588    set_namelist namelist ln_clobber .true. 
     589    set_namelist namelist nn_dyn2d 2 
     590    set_namelist namelist nn_tra_dta 0 
     591    set_namelist namelist jpni 8 
     592    set_namelist namelist jpnj 4 
     593    set_namelist namelist jpnij 32 
     594    cd ${SETTE_DIR} 
     595    . ./prepare_job.sh input_AMM12.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     596 
     597    cd ${SETTE_DIR} 
     598    export TEST_NAME="SHORT" 
     599    . prepare_exe_dir.sh 
     600    cd ${EXE_DIR} 
     601    set_namelist namelist nn_it000 7 
     602    set_namelist namelist nn_itend 12 
     603    set_namelist namelist nn_fwb 0 
     604    set_namelist namelist ln_ctl .false. 
     605    set_namelist namelist ln_clobber .true. 
     606    set_namelist namelist nn_dyn2d 2 
     607    set_namelist namelist nn_tra_dta 0 
     608    set_namelist namelist jpni 8 
     609    set_namelist namelist jpnj 4 
     610    set_namelist namelist jpnij 32 
     611    set_namelist namelist ln_rstart .true. 
     612    set_namelist namelist nn_rstctl 2 
     613    set_namelist namelist cn_ocerst_in \"../LONG/AMM12_00000006_restart\" 
     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 
     618fi 
     619 
     620# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
     621if [ ${config} -eq 9 ] ;  then 
     622    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
     623    export TEST_NAME="SHORT" 
     624    cd ${SETTE_DIR} 
     625    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx" 
     626    cd ${SETTE_DIR} 
     627    . param.cfg 
     628    . all_functions.sh 
     629    . prepare_exe_dir.sh 
     630    JOB_FILE=${EXE_DIR}/run_job.sh 
     631    MPIRUN_FLAG="yes" 
     632    NPROC=2 
     633    rm $JOB_FILE 
     634    cd ${EXE_DIR} 
    380635    set_namelist namelist nn_it000 1 
    381636    set_namelist namelist nn_itend 75 
    382637    set_namelist namelist ln_ctl .false. 
    383638    set_namelist namelist ln_clobber .true. 
     639    set_namelist namelist jpni 1 
     640    set_namelist namelist jpnj 2 
     641    set_namelist namelist jpnij 2 
    384642    set_namelist 1_namelist nn_it000 1 
    385643    set_namelist 1_namelist nn_itend 150 
     
    387645    set_namelist 1_namelist ln_clobber .true. 
    388646    cd ${SETTE_DIR} 
    389     . ./fcm_job.sh input_ORCA2_LIM.cfg 1 SHORT 
    390 fi 
    391  
    392 if [ ${config} -eq 8 ] ;  then 
    393     ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    394     cd ${SETTE_DIR} 
    395     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL_1_2 -r ORCA2_LIM add_key "key_mpp_mpi key_agrif" del_key "key_vectopt_loop key_zdftmx"  
    396     cd ${SETTE_DIR} 
    397     . param.cfg 
    398     . all_functions.sh 
    399     copy_original namelist 
    400     copy_original 1_namelist 
    401     set_namelist namelist nn_it000 1 
    402     set_namelist namelist nn_itend 75 
    403     set_namelist namelist ln_ctl .false. 
    404     set_namelist namelist ln_clobber .true. 
    405     set_namelist namelist jpni 1 
    406     set_namelist namelist jpnj 2 
    407     set_namelist namelist jpnij 2  
    408     set_namelist 1_namelist nn_it000 1 
    409     set_namelist 1_namelist nn_itend 150 
    410     set_namelist 1_namelist ln_ctl .false. 
    411     set_namelist 1_namelist ln_clobber .true. 
    412     cd ${SETTE_DIR} 
    413     . ./fcm_job.sh input_ORCA2_LIM.cfg 2 SHORT 
     647    . ./prepare_job.sh input_ORCA2_LIM_AGRIF.cfg $NPROC ${TEST_NAME} $MPIRUN_FLAG $JOB_FILE 
     648    cd ${SETTE_DIR} 
     649    . ./fcm_job.sh $NPROC $JOB_FILE 
    414650fi 
    415651 
  • trunk/NEMOGCM/SETTE/sette.sh.vargas

    r3091 r3294  
    148148do 
    149149 
     150# TESTS FOR GYRE_LOBSTER CONFIGURATION 
    150151if [ ${config} -eq 1 ] ;  then 
    151     # Restartability tests for GYRE_LOBSTER 
     152    ## Restartability tests for GYRE_LOBSTER 
    152153    export TEST_NAME="LONG" 
    153154    cd ${SETTE_DIR} 
     
    168169    set_namelist namelist jpnj 2 
    169170    set_namelist namelist jpnij 4 
    170  
    171171    cd ${SETTE_DIR} 
    172172    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
     
    184184    set_namelist namelist ln_clobber .true. 
    185185    set_namelist namelist nn_solv 2 
     186    set_namelist namelist jpni 2 
     187    set_namelist namelist jpnj 2 
     188    set_namelist namelist jpnij 4 
    186189    cp ..\/LONG\/GYRELOB_LONG_00000060_restart*.nc . 
    187190    set_namelist namelist cn_ocerst_in \"GYRELOB_LONG_00000060_restart\" 
     
    190193    set_namelist namelist_top nn_rsttr 2 
    191194    set_namelist namelist_top cn_trcrst_in \"GYRELOB_LONG_00000060_restart_trc\" 
    192     set_namelist namelist jpni 2 
    193     set_namelist namelist jpnj 2 
    194     set_namelist namelist jpnij 4 
    195195    cd ${SETTE_DIR} 
    196196    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
     
    198198 
    199199if [ ${config} -eq 2 ] ;  then 
    200 # Restartability tests for ORCA2_LIM_PISCES 
     200    ## Repropducibility tests for GYRE_LOBSTER 
     201    export TEST_NAME="REPRO_1_4" 
     202    cd ${SETTE_DIR} 
     203    . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER add_key "key_mpp_rep key_mpp_mpi" 
     204    cd ${SETTE_DIR} 
     205    . param.cfg 
     206    . all_functions.sh 
     207    . prepare_exe_dir.sh 
     208    cd ${EXE_DIR} 
     209    set_namelist namelist cn_exp \"GYRELOB_14\" 
     210    set_namelist namelist nn_it000 1 
     211    set_namelist namelist nn_itend 60 
     212    set_namelist namelist nn_fwb 0 
     213    set_namelist namelist nn_bench 0 
     214    set_namelist namelist ln_ctl .false. 
     215    set_namelist namelist ln_clobber .true. 
     216    set_namelist namelist nn_solv 2 
     217    set_namelist namelist_top ln_diatrc .false. 
     218    set_namelist namelist_top ln_trcdta .false. 
     219    set_namelist namelist jpni 1 
     220    set_namelist namelist jpnj 4 
     221    set_namelist namelist jpnij 4 
     222    cd ${SETTE_DIR} 
     223    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
     224 
     225    cd ${SETTE_DIR} 
     226    export TEST_NAME="REPRO_2_2" 
     227    . prepare_exe_dir.sh 
     228    cd ${EXE_DIR} 
     229    set_namelist namelist cn_exp \"GYRELOB_22\" 
     230    set_namelist namelist nn_it000 1 
     231    set_namelist namelist nn_itend 60 
     232    set_namelist namelist nn_fwb 0 
     233    set_namelist namelist ln_ctl .false. 
     234    set_namelist namelist ln_clobber .true. 
     235    set_namelist namelist nn_solv 2 
     236    set_namelist namelist_top ln_diatrc .false. 
     237    set_namelist namelist_top ln_trcdta .false. 
     238    set_namelist namelist jpni 2 
     239    set_namelist namelist jpnj 2 
     240    set_namelist namelist jpnij 4 
     241    cd ${SETTE_DIR} 
     242    . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
     243fi 
     244 
     245# TESTS FOR ORCA2_LIM_PISCES CONFIGURATION 
     246if [ ${config} -eq 3 ] ;  then 
     247    ## Restartability tests for ORCA2_LIM_PISCES 
    201248    export TEST_NAME="LONG" 
    202249    cd ${SETTE_DIR} 
     
    218265    set_namelist namelist_top ln_trcdta .false. 
    219266    set_namelist namelist_top ln_diatrc .false. 
    220     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    221     # if not you need input files, and for tests is not necessary 
    222     set_namelist namelist_pisces ln_pisdmp .false. 
     267    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     268    # if not you need input files, and for tests is not necessary 
    223269    set_namelist namelist_pisces ln_ironsed .false. 
    224270    set_namelist namelist_pisces ln_river .false. 
     
    251297    set_namelist namelist_top nn_rsttr 2 
    252298    set_namelist namelist_top cn_trcrst_in \"O2LP_LONG_00000075_restart_trc\" 
    253     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust 
    254     # if not you need input files, and for tests is not necessary 
    255     set_namelist namelist_pisces ln_pisdmp .false. 
     299    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
     300    # if not you need input files, and for tests is not necessary 
    256301    set_namelist namelist_pisces ln_ironsed .false. 
    257302    set_namelist namelist_pisces ln_river .false. 
     
    263308fi 
    264309 
    265 if [ ${config} -eq 3 ] ;  then 
    266     ## Restartability tests for POMME 
    267     export TEST_NAME="LONG" 
    268     cd ${SETTE_DIR} 
    269     . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_LONG -r POMME add_key "key_mpp_mpi key_mpp_rep" 
    270     cd ${SETTE_DIR} 
    271     . param.cfg 
    272     . all_functions.sh 
    273     . prepare_exe_dir.sh 
    274     cd ${EXE_DIR} 
    275     set_namelist namelist cn_exp \"POMME_LONG\" 
    276     set_namelist namelist nn_it000 1 
    277     set_namelist namelist nn_stock 600 
    278     set_namelist namelist nn_itend 600 
    279     set_namelist namelist ln_clobber .true. 
    280     set_namelist namelist nn_solv 2 
    281     set_namelist namelist jpni 2 
    282     set_namelist namelist jpnj 2 
    283     set_namelist namelist jpnij 4 
    284     cd ${SETTE_DIR} 
    285     . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
    286      
    287     cd ${SETTE_DIR} 
    288     export TEST_NAME="SHORT_1" 
    289     . prepare_exe_dir.sh 
    290     cd ${EXE_DIR} 
    291     set_namelist namelist cn_exp \"POMME_SHORT_1\" 
    292     set_namelist namelist nn_it000 1 
    293     set_namelist namelist nn_itend 300 
    294     set_namelist namelist ln_clobber .true. 
    295     set_namelist namelist nn_solv 2 
    296     set_namelist namelist jpni 2 
    297     set_namelist namelist jpnj 2 
    298     set_namelist namelist jpnij 4 
    299     cd ${SETTE_DIR} 
    300     . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
    301   
    302     cd ${SETTE_DIR} 
    303     export TEST_NAME="SHORT_2" 
    304     . prepare_exe_dir.sh 
    305     cd ${EXE_DIR} 
    306     set_namelist namelist cn_exp \"POMME_SHORT_2\" 
    307     set_namelist namelist nn_it000 301 
    308     set_namelist namelist nn_itend 600 
    309     set_namelist namelist ln_rstart .true. 
    310     set_namelist namelist nn_rstctl 2 
    311     set_namelist namelist ln_clobber .true. 
    312     set_namelist namelist nn_solv 2 
    313     cp ../SHORT_1/POMME_SHORT_1_00000300_restart*.nc . 
    314     set_namelist namelist cn_ocerst_in \"POMME_SHORT_1_00000300_restart\" 
    315     cp ../SHORT_1/restart.obc.output restart.obc 
    316     cd ${SETTE_DIR} 
    317     . ./fcm_job.sh input_POMME.cfg 1 ${TEST_NAME} 
    318 fi 
    319  
    320310if [ ${config} -eq 4 ] ;  then 
    321     ## Repropducilibity tests for GYRE_LOBSTER 
    322     export TEST_NAME="REPRO_1_4" 
    323     cd ${SETTE_DIR} 
    324     . ../CONFIG/makenemo -m ${CMP_NAM} -n GYRELOB_4 -r GYRE_LOBSTER -j 8 add_key "key_mpp_rep key_mpp_mpi"  
    325     cd ${SETTE_DIR} 
    326     . param.cfg 
    327     . all_functions.sh 
    328     . prepare_exe_dir.sh 
    329     cd ${EXE_DIR} 
    330     set_namelist namelist cn_exp \"GYRELOB_14\" 
    331     set_namelist namelist nn_it000 1 
    332     set_namelist namelist nn_itend 60 
    333     set_namelist namelist nn_fwb 0 
    334     set_namelist namelist nn_bench 0 
    335     set_namelist namelist ln_ctl .false. 
    336     set_namelist namelist ln_clobber .true. 
    337     set_namelist namelist nn_solv 2 
    338     set_namelist namelist_top ln_diatrc .false. 
    339     set_namelist namelist_top ln_trcdta .false. 
    340     set_namelist namelist jpni 1 
    341     set_namelist namelist jpnj 4 
    342     set_namelist namelist jpnij 4 
    343     cd ${SETTE_DIR} 
    344     . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
    345      
    346     cd ${SETTE_DIR} 
    347     export TEST_NAME="REPRO_2_2" 
    348     . prepare_exe_dir.sh 
    349     cd ${EXE_DIR} 
    350     set_namelist namelist cn_exp \"GYRELOB_22\" 
    351     set_namelist namelist nn_it000 1 
    352     set_namelist namelist nn_itend 60 
    353     set_namelist namelist nn_fwb 0 
    354     set_namelist namelist ln_ctl .false. 
    355     set_namelist namelist ln_clobber .true. 
    356     set_namelist namelist nn_solv 2 
    357     set_namelist namelist_top ln_diatrc .false. 
    358     set_namelist namelist_top ln_trcdta .false. 
    359     set_namelist namelist jpni 2 
    360     set_namelist namelist jpnj 2 
    361     set_namelist namelist jpnij 4 
    362     cd ${SETTE_DIR} 
    363     . ./fcm_job.sh input_GYRE.cfg 4 ${TEST_NAME} 
    364 fi 
    365  
    366 if [ ${config} -eq 5 ] ;  then 
    367     ## Repropducilibity tests for ORCA2_LIM_PISCES 
     311    ## Repropducibility tests for ORCA2_LIM_PISCES 
    368312    export TEST_NAME="REPRO_4_4" 
    369313    cd ${SETTE_DIR} 
     
    383327    set_namelist namelist jpnij 16 
    384328    set_namelist namelist nn_solv 2 
    385   set_namelist namelist_top ln_trcdta .false. 
    386     set_namelist namelist_top ln_diatrc .false. 
    387     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    388     # if not you need input files, and for tests is not necessary 
    389     set_namelist namelist_pisces ln_pisdmp .false. 
     329    set_namelist namelist_top ln_trcdta .false. 
     330    set_namelist namelist_top ln_diatrc .false. 
     331    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     332    # if not you need input files, and for tests is not necessary 
    390333    set_namelist namelist_pisces ln_ironsed .false. 
    391334    set_namelist namelist_pisces ln_river .false. 
     
    409352    set_namelist namelist jpnij 16 
    410353    set_namelist namelist nn_solv 2 
    411   set_namelist namelist_top ln_trcdta .false. 
    412     set_namelist namelist_top ln_diatrc .false. 
    413     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    414     # if not you need input files, and for tests is not necessary 
    415     set_namelist namelist_pisces ln_pisdmp .false. 
     354    set_namelist namelist_top ln_trcdta .false. 
     355    set_namelist namelist_top ln_diatrc .false. 
     356    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     357    # if not you need input files, and for tests is not necessary 
    416358    set_namelist namelist_pisces ln_ironsed .false. 
    417359    set_namelist namelist_pisces ln_river .false. 
     
    423365fi 
    424366 
    425 if [ ${config} -eq 6 ] ;  then 
    426     ## Reproductibility tests for POMME 
    427     export TEST_NAME="REPRO_1_4" 
    428     cd ${SETTE_DIR} 
    429     . ../CONFIG/makenemo -m ${CMP_NAM} -n POMME_4 -r POMME -j 8 add_key "key_mpp_rep key_mpp_mpi" 
    430     cd ${SETTE_DIR} 
    431     . param.cfg 
    432     . all_functions.sh 
    433     . prepare_exe_dir.sh 
    434     cd ${EXE_DIR} 
    435     set_namelist namelist nn_it000 1 
    436     set_namelist namelist nn_itend 300 
    437     set_namelist namelist nn_fwb 0 
    438     set_namelist namelist ln_ctl .false. 
    439     set_namelist namelist ln_clobber .true. 
    440     set_namelist namelist nn_solv 2 
    441     set_namelist namelist jpni 1 
    442     set_namelist namelist jpnj 4 
    443     set_namelist namelist jpnij 4 
    444     cd ${SETTE_DIR} 
    445     . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
    446  
    447     cd ${SETTE_DIR} 
    448     export TEST_NAME="REPRO_2_2" 
    449     . prepare_exe_dir.sh 
    450     cd ${EXE_DIR} 
    451     set_namelist namelist nn_it000 1 
    452     set_namelist namelist nn_itend 300 
    453     set_namelist namelist nn_fwb 0 
    454     set_namelist namelist ln_ctl .false. 
    455     set_namelist namelist ln_clobber .true. 
    456     set_namelist namelist nn_solv 2 
    457     set_namelist namelist jpni 2 
    458     set_namelist namelist jpnj 2 
    459     set_namelist namelist jpnij 4 
    460     cd ${SETTE_DIR} 
    461     . ./fcm_job.sh input_POMME.cfg 4 ${TEST_NAME} 
    462 fi 
    463  
    464  
    465 if [ ${config} -eq 7 ] ;  then 
    466 # Restartability tests for ORCA2_OFF_PISCES 
     367# TESTS FOR ORCA2_OFF_PISCES CONFIGURATION 
     368if [ ${config} -eq 5 ] ;  then 
     369    ## Restartability tests for ORCA2_OFF_PISCES 
    467370    export TEST_NAME="LONG" 
    468371    cd ${SETTE_DIR} 
    469     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8  
     372    . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2OFFPIS_LONG -r ORCA2_OFF_PISCES -j 8 add_key "key_mpp_mpi key_mpp_rep" 
    470373    cd ${SETTE_DIR} 
    471374    . param.cfg 
     
    478381    set_namelist namelist nn_stock 20 
    479382    set_namelist namelist ln_clobber .true. 
    480     set_namelist namelist_top ln_trcdta .false. 
    481     set_namelist namelist_top ln_diatrc .false. 
    482     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    483     # if not you need input files, and for tests is not necessary 
    484     set_namelist namelist_pisces ln_pisdmp .false. 
    485     set_namelist namelist_pisces ln_ironsed .false. 
    486     set_namelist namelist_pisces ln_river .false. 
    487     set_namelist namelist_pisces ln_ndepo .false. 
    488     set_namelist namelist_pisces ln_dust .false. 
    489     set_namelist namelist_pisces ln_presatm .false. 
    490     cd ${SETTE_DIR} 
    491     . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME} 
     383    set_namelist namelist jpni 2 
     384    set_namelist namelist jpnj 2 
     385    set_namelist namelist jpnij 4 
     386    set_namelist namelist_top ln_trcdta .false. 
     387    set_namelist namelist_top ln_diatrc .false. 
     388    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     389    # if not you need input files, and for tests is not necessary 
     390    set_namelist namelist_pisces ln_ironsed .false. 
     391    set_namelist namelist_pisces ln_river .false. 
     392    set_namelist namelist_pisces ln_ndepo .false. 
     393    set_namelist namelist_pisces ln_dust .false. 
     394    set_namelist namelist_pisces ln_presatm .false. 
     395    cd ${SETTE_DIR} 
     396    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME} 
    492397     
    493398    cd ${SETTE_DIR} 
     
    500405    set_namelist namelist nn_stock 20 
    501406    set_namelist namelist ln_clobber .true. 
     407    set_namelist namelist jpni 2 
     408    set_namelist namelist jpnj 2 
     409    set_namelist namelist jpnij 4 
    502410    cp ../LONG/OFFP_LONG_00000020_restart*nc . 
    503411    set_namelist namelist_top ln_diatrc .false. 
     
    505413    set_namelist namelist_top nn_rsttr 2 
    506414    set_namelist namelist_top cn_trcrst_in \"OFFP_LONG_00000020_restart_trc\" 
    507     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust 
    508     # if not you need input files, and for tests is not necessary 
    509     set_namelist namelist_pisces ln_pisdmp .false. 
    510     set_namelist namelist_pisces ln_ironsed .false. 
    511     set_namelist namelist_pisces ln_river .false. 
    512     set_namelist namelist_pisces ln_ndepo .false. 
    513     set_namelist namelist_pisces ln_dust .false. 
    514     set_namelist namelist_pisces ln_presatm .false. 
    515     cd ${SETTE_DIR} 
    516     . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 1 ${TEST_NAME} 
    517 fi 
    518  
    519 if [ ${config} -eq 8 ] ;  then 
    520     ## Repropducilibity tests for ORCA2_OFF_PISCES 
     415    # put ln_ironsed, ln_river, ln_ndepo, ln_dust 
     416    # if not you need input files, and for tests is not necessary 
     417    set_namelist namelist_pisces ln_ironsed .false. 
     418    set_namelist namelist_pisces ln_river .false. 
     419    set_namelist namelist_pisces ln_ndepo .false. 
     420    set_namelist namelist_pisces ln_dust .false. 
     421    set_namelist namelist_pisces ln_presatm .false. 
     422    cd ${SETTE_DIR} 
     423    . ./fcm_job.sh input_ORCA2_OFF_PISCES.cfg 4 ${TEST_NAME} 
     424fi 
     425 
     426if [ ${config} -eq 6 ] ;  then 
     427    ## Repropducibility tests for ORCA2_OFF_PISCES 
    521428    export TEST_NAME="REPRO_4_4" 
    522429    cd ${SETTE_DIR} 
     
    536443    set_namelist namelist_top ln_trcdta .false. 
    537444    set_namelist namelist_top ln_diatrc .false. 
    538     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    539     # if not you need input files, and for tests is not necessary 
    540     set_namelist namelist_pisces ln_pisdmp .false. 
     445    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     446    # if not you need input files, and for tests is not necessary 
    541447    set_namelist namelist_pisces ln_ironsed .false. 
    542448    set_namelist namelist_pisces ln_river .false. 
     
    560466    set_namelist namelist_top ln_trcdta .false. 
    561467    set_namelist namelist_top ln_diatrc .false. 
    562     # put ln_pisdmp, ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
    563     # if not you need input files, and for tests is not necessary 
    564     set_namelist namelist_pisces ln_pisdmp .false. 
     468    # put ln_ironsed, ln_river, ln_ndepo, ln_dust to false 
     469    # if not you need input files, and for tests is not necessary 
    565470    set_namelist namelist_pisces ln_ironsed .false. 
    566471    set_namelist namelist_pisces ln_river .false. 
     
    572477fi 
    573478 
    574 ###### agrif tests are not run on vargas because we need to change compiler version and this is not possible because compiler is chosen once for all tests 
    575 ###### tests for agrif need to be done by hand on vargas 
     479# TESTS FOR AMM12 CONFIGURATION 
     480if [ ${config} -eq 7 ] ;  then 
     481    ## Reproducibility tests for AMM12 
     482    export TEST_NAME="REPO_8_4" 
     483    cd ${SETTE_DIR} 
     484    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_32 -r AMM12 add_key "key_mpp_rep" 
     485    cd ${SETTE_DIR} 
     486    . param.cfg 
     487    . all_functions.sh 
     488    . prepare_exe_dir.sh 
     489    cd ${EXE_DIR} 
     490    set_namelist namelist nn_it000 1 
     491    set_namelist namelist nn_itend 576 
     492    set_namelist namelist nn_fwb 0 
     493    set_namelist namelist ln_ctl .false. 
     494    set_namelist namelist ln_clobber .true. 
     495    set_namelist namelist nn_dyn2d 2 
     496    set_namelist namelist nn_tra_dta 0 
     497    set_namelist namelist jpni 8 
     498    set_namelist namelist jpnj 4 
     499    set_namelist namelist jpnij 32 
     500    cd ${SETTE_DIR} 
     501    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 
     502 
     503    cd ${SETTE_DIR} 
     504    export TEST_NAME="REPO_4_8" 
     505    . prepare_exe_dir.sh 
     506    cd ${EXE_DIR} 
     507    set_namelist namelist nn_it000 1 
     508    set_namelist namelist nn_itend 576 
     509    set_namelist namelist nn_fwb 0 
     510    set_namelist namelist ln_ctl .false. 
     511    set_namelist namelist nn_dyn2d 2 
     512    set_namelist namelist nn_tra_dta 0 
     513    set_namelist namelist ln_clobber .true. 
     514    set_namelist namelist jpni 4 
     515    set_namelist namelist jpnj 8 
     516    set_namelist namelist jpnij 32 
     517    cd ${SETTE_DIR} 
     518    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 
     519fi 
     520 
     521if [ ${config} -eq 8 ] ;  then 
     522    ## Restartability tests for AMM12 
     523    export TEST_NAME="LONG" 
     524    cd ${SETTE_DIR} 
     525    . ../CONFIG/makenemo -m ${CMP_NAM} -n AMM12_LONG -r AMM12 add_key "key_mpp_rep" 
     526    cd ${SETTE_DIR} 
     527    . param.cfg 
     528    . all_functions.sh 
     529    . prepare_exe_dir.sh 
     530    cd ${EXE_DIR} 
     531    set_namelist namelist nn_it000 1 
     532    set_namelist namelist nn_itend 12 
     533    set_namelist namelist nn_stock 6 
     534    set_namelist namelist nn_fwb 0 
     535    set_namelist namelist ln_ctl .false. 
     536    set_namelist namelist ln_clobber .true. 
     537    set_namelist namelist nn_dyn2d 2 
     538    set_namelist namelist nn_tra_dta 0 
     539    set_namelist namelist jpni 8 
     540    set_namelist namelist jpnj 4 
     541    set_namelist namelist jpnij 32 
     542    cd ${SETTE_DIR} 
     543    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 
     544 
     545    cd ${SETTE_DIR} 
     546    export TEST_NAME="SHORT" 
     547    . prepare_exe_dir.sh 
     548    cd ${EXE_DIR} 
     549    set_namelist namelist nn_it000 7 
     550    set_namelist namelist nn_itend 12 
     551    set_namelist namelist nn_fwb 0 
     552    set_namelist namelist ln_ctl .false. 
     553    set_namelist namelist ln_clobber .true. 
     554    set_namelist namelist nn_dyn2d 2 
     555    set_namelist namelist nn_tra_dta 0 
     556    set_namelist namelist jpni 8 
     557    set_namelist namelist jpnj 4 
     558    set_namelist namelist jpnij 32 
     559    set_namelist namelist ln_rstart .true. 
     560    set_namelist namelist nn_rstctl 2 
     561    cp ../LONG/AMM12_00000006_restart*.nc . 
     562    set_namelist namelist cn_ocerst_in \"AMM12_00000006_restart\" 
     563    cd ${SETTE_DIR} 
     564    . ./fcm_job.sh input_AMM12.cfg 32 ${TEST_NAME} 
     565fi 
     566 
     567# TEST FOR ORCA2_LIM_AGRIF : simple test of running AGRIF (no restartability neither reproducibility tests) 
    576568if [ ${config} -eq 9 ] ;  then 
    577     ## ORCA2_LIM with Agulhas AGRIF zoom 
    578     export TEST_NAME="SHORT" 
    579     cd ${SETTE_DIR} 
    580     . ../CONFIG/makenemo -m ${CMP_NAM} -n ORCA2AGUL -r ORCA2_LIM  -j 8 add_key "key_mpp_rep key_mpp_mpi key_agrif" del_key "key_zdftmx" 
    581     cd ${SETTE_DIR} 
    582     . param.cfg 
    583     . all_functions.sh 
    584     . prepare_exe_dir.sh 
    585     cd ${EXE_DIR} 
    586     set_namelist namelist nn_it000 1 
    587     set_namelist namelist nn_itend 75 
    588     set_namelist namelist ln_ctl .false. 
    589     set_namelist namelist ln_clobber .true. 
    590     set_namelist 1_namelist nn_it000 1 
    591     set_namelist 1_namelist nn_itend 150 
    592     set_namelist 1_namelist ln_ctl .false. 
    593     set_namelist 1_namelist ln_clobber .true. 
    594     cd ${SETTE_DIR} 
    595     . ./fcm_job.sh input_ORCA2_LIM_AGRIF.cfg 2 ${TEST_NAME} 
    596 fi 
    597  
    598 if [ ${config} -eq 10 ] ;  then 
    599569    ## ORCA2_LIM with Agulhas AGRIF zoom in MPI 
    600570    export TEST_NAME="SHORT" 
  • trunk/NEMOGCM/SETTE/sette_beginner.sh

    r2754 r3294  
    3838# 
    3939# Compiler among those in NEMOGCM/ARCH 
    40 COMPILER=gfortran_linux 
     40COMPILER=PW6_VARGAS 
     41export BATCH_COMMAND=llsubmit 
     42export MPI_INTERACT="no" 
    4143 
    4244# Directory to run the tests 
     
    4850 
    4951CMP_NAM=${1:-$COMPILER} 
     52# Copy job_batch_COMPILER file for specific compiler into job_batch_template 
     53cd ${SETTE_DIR} 
     54cp BATCH_TEMPLATE/batch-${COMPILER} job_batch_template || exit 
    5055 
    5156# Run for GYRE CONFIG 
    5257# small test to start 
    5358# compile GYRE configuration with gfortran_osx compiler run with 1 proc, by default in cpp_GYRE.fcm file :  
     59export TEST_NAME="TEST01" 
    5460cd ${SETTE_DIR} 
    5561. ../CONFIG/makenemo -m ${CMP_NAM} -n GYRE_SHORT -r GYRE 
     
    5763. param.cfg  
    5864. all_functions.sh 
     65# creation of execution directory 
     66. prepare_exe_dir.sh 
     67cd ${EXE_DIR} 
    5968# setting namelist parameters 
    6069# experience name 
     
    6877cd ${SETTE_DIR} 
    6978# run job, with 1 processor, test named SHORT (= 60 time steps) 
    70 . ./fcm_job.sh input_GYRE.cfg 1 SHORT 
     79. ./fcm_job.sh input_GYRE.cfg 1 ${TEST_NAME} 
Note: See TracChangeset for help on using the changeset viewer.