Ignore:
Timestamp:
06/23/09 12:43:32 (15 years ago)
Author:
sdipsl
Message:
  • Some cleanup (mainly tabulation in driver)
  • Updated list of LMDZ variables to get closer to CMIP5 list
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_WORK/EXP00/COMP/oasis.driver

    r648 r653  
    33CPL_Initialize () 
    44{ 
    5  
    65    IGCM_debug_PushStack "CPL_Initialize" 
    76  
    87    echo INITIALIZE CPL !!! 
    98 
    10 #D- MPI context used to launch the coupled model 
    11 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} 
    1312 
    14 #D- MPISUSPEND=ON required for MPMD mode used by oasis 
     13    #D- MPISUSPEND=ON required for MPMD mode used by oasis 
    1514    export MPISUSPEND=ON 
    1615 
     
    1817 
    1918    IGCM_debug_PopStack "CPL_Initialize" 
    20  
    2119} 
    2220 
     
    2624    IGCM_debug_PushStack "CPL_Update" 
    2725 
    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 )) 
    3129 
    32 ############ Update Other Parameters  ############## 
    33 ## Read Output_mode option in ${compname}.card --> Put "y" to have coupling variables in ouptut files 
    34 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices Output_mode  
    35 eval Output_mode=\${${compname}_UserChoices_Output_mode} > /dev/null 2>&1 
    36 echo ${Output_mode} 
    37 Output_var='EXPORTED' 
    38 if [ ${Output_mode} = y ] ; then 
    39     Output_var='EXPOUT' 
    40 fi 
     30    ############ 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 
    4139 
    42 ############ Update Parameter Files   ############## 
    43 sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 
    44     -e "s/<total_time>/${D_JOB_SEC}/" \ 
    45     -e "s/<lib_mpi>/${LIBMPI}/" \ 
    46     -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \ 
    47     -e "s/<nproc_oce>/${NUM_PROC_OCE}/g" \ 
    48     -e "s/<output_mode>/${Output_var}/g" \ 
     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" \ 
    4947        namcouple > namcouple.tmp 
    5048 
     
    7068 
    7169    IGCM_debug_PopStack "CPL_Finalize" 
    72  
    7370} 
Note: See TracChangeset for help on using the changeset viewer.