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 2549 for trunk – NEMO

Changeset 2549 for trunk


Ignore:
Timestamp:
2011-01-12T10:27:30+01:00 (13 years ago)
Author:
flavoni
Message:

small bug: forget to remove bad test in fcm_job.sh, see ticket #752

File:
1 edited

Legend:

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

    r2546 r2549  
    22# Author : Simona Flavoni for NEMO 
    33# Contact : sflod@locean-ipsl.upmc.fr 
    4 # 
    5 # ---------------------------------------------------------------------- 
    6 # NEMO/SETTE , NEMO Consortium (2010) 
    7 # Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
    8 # ---------------------------------------------------------------------- 
    94# 
    105# Some scripts called by sette.sh  
     
    127122cd ${INPUT_DIR} 
    128123NB_PROC=$2 
    129 if [! -r ${INPUT_DIR}/opa ] 
    130    then 
    131    echo "executable opa does not exist" 
    132    exit 1 
     124if [ ! -r ${INPUT_DIR}/opa ] 
     125    then 
     126    echo "executable opa does not exist" 
     127    exit 1 
    133128fi 
    134129if [ ${NB_PROC} == 1 ] ; then 
    135  opa_command='./opa'  # !! to test if executable is created 
    136           type ${opa_command} 
    137           status_type=${?} 
    138           if [ ${status_type} -ne 0 ] 
    139           then 
    140               echo "opa not found" 
    141               exit 1 
    142           fi 
    143    echo "running opa" >> ${SETTE_DIR}/output.sette 
    144    echo "            " >> ${SETTE_DIR}/output.sette 
    145    ./opa 
     130    echo "running opa" >> ${SETTE_DIR}/output.sette 
     131    echo "            " >> ${SETTE_DIR}/output.sette 
     132    ./opa 
    146133else 
    147 opa_command='mpirun'  # !! to test if executable is created 
    148           type ${opa_command} 
    149           status_type=${?} 
    150           if [ ${status_type} -ne 0 ] 
    151           then 
    152               echo "mpi opa not found" 
    153               exit 1 
    154           fi 
     134    echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 
     135    echo "            " >> ${SETTE_DIR}/output.sette 
    155136# example for brodie (NEC SX8) machine 
    156    echo "running opa in MPI" >> ${SETTE_DIR}/output.sette 
    157    echo "            " >> ${SETTE_DIR}/output.sette 
    158    mpirun -np ${NB_PROC} opa 
     137#  mpirun -np ${NB_PROC} opa 
    159138# example for dedale machine 
    160139#  mpirun --mca btl self,tcp -np ${NB_PROC} opa 
    161140# example for vargas (IBM Power6) machine 
    162 mpiexec -n ${NB_PROC} opa 
     141    mpiexec -n ${NB_PROC} opa 
    163142fi 
    164143################################################################ 
Note: See TracChangeset for help on using the changeset viewer.