- Timestamp:
- 06/23/09 12:43:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_WORK/EXP00/COMP/oasis.driver
r648 r653 3 3 CPL_Initialize () 4 4 { 5 6 5 IGCM_debug_PushStack "CPL_Initialize" 7 6 8 7 echo INITIALIZE CPL !!! 9 8 10 #D- MPI context used to launch the coupled model11 LIBMPI=$(cat ${SUBMIT_DIR}/../.libmpi)12 echo LIBMPI=${LIBMPI}9 #D- MPI context used to launch the coupled model 10 LIBMPI=$(cat ${SUBMIT_DIR}/../.libmpi) 11 echo LIBMPI=${LIBMPI} 13 12 14 #D- MPISUSPEND=ON required for MPMD mode used by oasis13 #D- MPISUSPEND=ON required for MPMD mode used by oasis 15 14 export MPISUSPEND=ON 16 15 … … 18 17 19 18 IGCM_debug_PopStack "CPL_Initialize" 20 21 19 } 22 20 … … 26 24 IGCM_debug_PushStack "CPL_Update" 27 25 28 ############ Update Time and Counters ##############29 ##-- Calcul de la duree du job (en secondes)30 (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays ))26 ############ Update Time and Counters ############## 27 ##-- Calcul de la duree du job (en secondes) 28 (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) 31 29 32 ############ Update Other Parameters ##############33 ## Read Output_mode option in ${compname}.card --> Put "y" to have coupling variables in ouptut files34 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices Output_mode35 eval Output_mode=\${${compname}_UserChoices_Output_mode} > /dev/null 2>&136 echo ${Output_mode}37 Output_var='EXPORTED'38 if [ ${Output_mode} = y ] ; then39 40 fi30 ############ Update Other Parameters ############## 31 ## Read Output_mode option in ${compname}.card --> Put "y" to have coupling variables in ouptut files 32 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices Output_mode 33 eval Output_mode=\${${compname}_UserChoices_Output_mode} > /dev/null 2>&1 34 echo ${Output_mode} 35 Output_var='EXPORTED' 36 if [ ${Output_mode} = y ] ; then 37 Output_var='EXPOUT' 38 fi 41 39 42 ############ Update Parameter Files ##############43 sed -e "s/<initial_date>/${PeriodDateBegin}/" \44 45 46 47 48 40 ############ Update Parameter Files ############## 41 sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 42 -e "s/<total_time>/${D_JOB_SEC}/" \ 43 -e "s/<lib_mpi>/${LIBMPI}/" \ 44 -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \ 45 -e "s/<nproc_oce>/${NUM_PROC_OCE}/g" \ 46 -e "s/<output_mode>/${Output_var}/g" \ 49 47 namcouple > namcouple.tmp 50 48 … … 70 68 71 69 IGCM_debug_PopStack "CPL_Finalize" 72 73 70 }
Note: See TracChangeset
for help on using the changeset viewer.