Ignore:
Timestamp:
02/11/14 10:26:21 (10 years ago)
Author:
aclsce
Message:

Modifications to use Oasis-MCT coupler.
Modifications to use namelist*cfg for NEMO components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/oasis.driver

    r2126 r2198  
    1515    RESOL_CPL=${RESOL_OCE}x${RESOL_ATM} 
    1616    IGCM_debug_Print 1 "RESOL_CPL      : ${RESOL_CPL}" 
    17  
    18     #D- MPI context used to launch the coupled model 
    19     LIBMPI=$(cat ${SUBMIT_DIR}/../.libmpi) 
    20     echo LIBMPI=${LIBMPI} 
    21  
    22     #D- MPISUSPEND=ON required for MPMD mode used by oasis 
    23     export MPISUSPEND=ON 
    24  
    25     IGCM_sys_build_run_file ${LIBMPI} 
    2617 
    2718    CPL_OkDay="n" 
     
    4738    ##-- Calcul de la duree du job (en secondes) 
    4839    (( D_JOB_SEC = 3600 * 24 * PeriodLengthInDays )) 
    49  
    50     # nleapy configuration 
    51     case ${config_UserChoices_CalendarType} in 
    52         leap|gregorian) 
    53             CPL_calendar=1;; 
    54         noleap) 
    55             CPL_calendar=0;; 
    56         360d) 
    57             CPL_calendar=30;; 
    58         *) 
    59             CPL_calendar=30 
    60     esac 
    6140 
    6241    ############ Update Other Parameters  ############## 
     
    8564 
    8665    ############ Update Parameter Files   ############## 
    87     sed -e "s/<initial_date>/${PeriodDateBegin}/" \ 
    88         -e "s/<calendar_type>/${CPL_calendar}/" \ 
    89         -e "s/<total_time>/${D_JOB_SEC}/" \ 
    90         -e "s/<lib_mpi>/${LIBMPI}/" \ 
    91         -e "s/<nproc_atm>/${NUM_PROC_ATM}/g" \ 
    92         -e "s/<nproc_oce>/${NUM_PROC_OCE}/g" \ 
     66    sed -e "s/<total_time>/${D_JOB_SEC}/" \ 
    9367        -e "s/<output_mode>/${CPL_OutputVar}/g" \ 
    9468        -e "s/<freq_coupling>/${FreqCoupling}/g" \ 
     
    9771        namcouple > namcouple.tmp 
    9872    IGCM_sys_Mv namcouple.tmp namcouple 
    99  
    100     # Unused files we want to remove 
    101     eval FileToBeDeleted[${#FileToBeDeleted[@]}]=trace 
    102     eval FileToBeDeleted[${#FileToBeDeleted[@]}]=gweights 
    103     eval FileToBeDeleted[${#FileToBeDeleted[@]}]=mweights 
    104     eval FileToBeDeleted[${#FileToBeDeleted[@]}]=anaisout 
    10573 
    10674    IGCM_debug_PopStack "CPL_Update" 
     
    11179{ 
    11280    IGCM_debug_PushStack "CPL_Finalize" 
    113  
    114     DATE_CPL=$(echo ${PeriodDateBegin} | sed -e "{ s/^\(.\{4\}\)/\1-/;s/\(-.\{2\}\)/\1-/; }"); 
    115     DATE_CPL=${DATE_CPL}"T00:00:00" 
    116      
    117     echo ${DATE_CPL} ${CPL_OutputMode} ${CPL_OkDay} ${CPL_OkMonth} 
    11881 
    11982    if [ "${CPL_OutputMode}" = "y" ] ; then 
Note: See TracChangeset for help on using the changeset viewer.