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

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

File:
1 edited

Legend:

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

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