Changeset 2549 for trunk/NEMOGCM
- Timestamp:
- 2011-01-12T10:27:30+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/SETTE/fcm_job.sh
r2546 r2549 2 2 # Author : Simona Flavoni for NEMO 3 3 # 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 # ----------------------------------------------------------------------9 4 # 10 5 # Some scripts called by sette.sh … … 127 122 cd ${INPUT_DIR} 128 123 NB_PROC=$2 129 if [ ! -r ${INPUT_DIR}/opa ]130 131 132 124 if [ ! -r ${INPUT_DIR}/opa ] 125 then 126 echo "executable opa does not exist" 127 exit 1 133 128 fi 134 129 if [ ${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 146 133 else 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 155 136 # 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 159 138 # example for dedale machine 160 139 # mpirun --mca btl self,tcp -np ${NB_PROC} opa 161 140 # example for vargas (IBM Power6) machine 162 #mpiexec -n ${NB_PROC} opa141 mpiexec -n ${NB_PROC} opa 163 142 fi 164 143 ################################################################
Note: See TracChangeset
for help on using the changeset viewer.