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 3336 for trunk/NEMOGCM/SETTE/prepare_job.sh – NEMO

Ignore:
Timestamp:
2012-03-30T11:29:20+02:00 (12 years ago)
Author:
clevy
Message:

SETTE bugfixes see ticket #941

File:
1 edited

Legend:

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

    r3294 r3336  
    66# prepare_job.sh   : create the job script for running job  
    77###################################################### 
    8 #set -x 
     8#set -vx 
    99set -o posix 
    1010#set -u 
    1111#set -e 
    12 # 
     12#+ 
    1313# 
    1414# ================ 
     
    2525# :: 
    2626# 
    27 #  $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 
     27#  $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE 
    2828# 
    2929# 
     
    3131# =========== 
    3232# 
    33 # Simple job for SET TESTS for NEMO (SETTE) 
     33# Part of the SETTE package to run tests for NEMO 
    3434#  
    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) 
    37 # 
    38 #   runs job in interactive or batch mode : all jobs using 1 process are run interactive, and all MPP jobs are 
    39 # 
    40 #   run in batch (MPI_INTERACT="no") or interactive (MPI_INTERACT="yes") see sette.sh and BATCH_TEMPLATE directory 
    41 # 
    42 #   and call post_test_tidyup function (that moves in NEMO_VALIDATION_DIR solver.stat, tracer.stat (for LOBSTER & PISCES) & ocean.output) 
     35# prepare the script $JOB_FILE to run the tests  
    4336# 
    4437# EXAMPLES 
     
    4740# :: 
    4841# 
    49 #  $ ./fcm_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_INTERACT MPI_FLAG 
    50 # 
    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 
    53 # 
    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 
     42#  $ ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG $JOB_FILE 
     43# 
     44# prepare the $JOB_FILE for execution  
    5645# 
    5746# 
     
    6554# ========== 
    6655# 
    67 # $Id: fcm_job.sh 3050 2011-11-07 14:11:34Z acc $ 
     56# $Id: prepare_job.sh 3050 2011-11-07 14:11:34Z acc $ 
    6857# 
    6958# 
     
    7463# 
    7564 
    76 usage=" Usage : ./fcm_job.sh input_CONFIG_NAME.cfg  NUMBER_OF_PROCS TEST_NAME INTERACT MPI_FLAG" 
    77 usage=" example : ./fcm_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes no/yes" 
     65usage=" Usage : ./prepare_job.sh INPUT_FILE_CONFIG_NAME NUMBER_PROC TEST_NAME MPI_FLAG JOB_FILE" 
     66usage=" example : ./prepare_job.sh input_ORCA2_LIM_PISCES.cfg 8 SHORT no/yes $JOB_FILE" 
    7867 
    7968 
     
    8170        if [ ${#} -lt ${minargcount} ] 
    8271        then 
    83                 echo "not enought arguments for fcm_job.sh script" 
    84                 echo "control number of argument of fcm_job.sh in sette.sh" 
     72                echo "not enough arguments for prepare_job.sh script" 
     73                echo "control number of argument of prepare_job.sh in sette.sh" 
    8574                echo "${usage}" 
    8675        exit 1 
     
    165154    exit 1 
    166155fi 
    167 #if [ ${NB_PROC} == 1 ] ; then 
    168 #    echo "running opa" >> ${SETTE_DIR}/output.sette 
    169 #    echo "            " >> ${SETTE_DIR}/output.sette 
    170 #    ./opa 
    171 # 
    172 # Tidy out output from this test and populate the NEMO_VALIDATION_DIR tree 
    173 # 
    174 #    post_test_tidyup 
    175 #else 
    176 #    echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 
    177 #    echo "            " >> ${SETTE_DIR}/output.sette 
    178  
    179 #    if [ ${MPI_INTERACT} == "yes" ] ; then 
    180 #  # 
    181 #  # example for brodie (NEC SX8) machine 
    182 #  #  mpirun -np ${NB_PROC} opa 
    183 #  # example for dedale machine 
    184 #  #  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
    185 #  # example for vargas (IBM Power6) machine 
    186 #  mpiexec -n ${NB_PROC} opa 
    187 #  # 
    188 #  post_test_tidyup 
    189 #    fi 
    190 # 
     156 
    191157# example for NOCS Altix system using PBS batch submission (requires ${SETTE_DIR}/sette_batch_template file) 
    192158# 
    193   #  if [ ${MPI_INTERACT} == "no" ] ; then 
     159  #  if [ ${MPI_FLAG} == "no" ] ; then 
    194160      case ${COMPILER} in  
    195161         ALTIX_NAUTILUS_MPT) 
     
    239205   fi 
    240206    
    241    chmod a+x $JOB_FILE 
     207   chmod a+x $JOB_FILE ; echo "$JOB_FILE is ready" 
    242208 
    243209#fi 
Note: See TracChangeset for help on using the changeset viewer.