Changeset 2379


Ignore:
Timestamp:
12/19/14 11:50:04 (7 years ago)
Author:
omamce
Message:

O.M. : correct computation of nn_fsbc

File:
1 edited

Legend:

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

    r2270 r2379  
    2323    RESOL_OCE=$( echo ${RESOL_OCE_ICE} | sed "s/${SEAICE_MODEL}//" ) 
    2424 
    25     echo "RESOL          : ${RESOL}" 
    26     echo "RESOL_OCE_ICE  : ${RESOL_OCE_ICE}" 
    27     echo "SEAICE_MODEL   : ${SEAICE_MODEL}" 
    28     echo "LIM_VERSION    : ${LIM_VERSION}" 
    29     echo "RESOL_OCE      : ${RESOL_OCE}" 
     25    IGCM_debug_Print 1 "RESOL          : ${RESOL}" 
     26    IGCM_debug_Print 1 "RESOL_OCE_ICE  : ${RESOL_OCE_ICE}" 
     27    IGCM_debug_Print 1 "SEAICE_MODEL   : ${SEAICE_MODEL}" 
     28    IGCM_debug_Print 1 "LIM_VERSION    : ${LIM_VERSION}" 
     29    IGCM_debug_Print 1 "RESOL_OCE      : ${RESOL_OCE}" 
    3030 
    3131    # Local function to find namelists parameters 
     
    5454    NAMELIST_OPA_CFG=${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_cfg 
    5555    NAMELIST_OPA_REF=${SUBMIT_DIR}/PARAM/namelist_${RESOL_OCE}_ref 
    56     echo "namelist_ref : ${NAMELIST_OPA_REF}" 
     56    IGCM_debug_Print 1 "namelist_ref : ${NAMELIST_OPA_REF}" 
    5757    if [ ! -r ${NAMELIST_OPA_REF} ] ; then 
    5858        echo "${NAMELIST_OPA_REF} non trouve" 
    5959    fi 
    60     echo "namelist_cfg : ${NAMELIST_OPA_CFG}" 
     60    IGCM_debug_Print 1 "namelist_cfg : ${NAMELIST_OPA_CFG}" 
    6161    if [ ! -r ${NAMELIST_OPA_CFG} ] ; then 
    6262        echo "${NAMELIST_OPA_CFG} non trouve" 
     
    8585    ORCA_NN_FSBC=$(   supergrep nn_fsbc       ${NAMELIST_OPA_CFG} | sed 's/ *nn_fsbc *=//' | sed 's/\. *//' ) 
    8686    (( ORCA_NPDT_JOUR  = 86400 / ORCA_RDT     )) 
    87     (( ORCA_NPDT_SBC   = ORCA_NPDT_JOUR / ORCA_NN_FSBC )) 
     87    #(( ORCA_NPDT_SBC   = ORCA_NPDT_JOUR / ORCA_NN_FSBC )) 
     88    (( ORCA_RDT_SBC =  ORCA_RDT * ORCA_NN_FSBC )) 
    8889  
    8990 
     
    9293    (( DaysSinceJC = $( IGCM_date_DaysSinceJC ${DateBegin} ) + 1 )) 
    9394 
    94     echo "PAT_CEXPER   $PAT_CEXPER " 
    95     echo "PAT_NIT000   $PAT_NIT000" 
    96     echo "PAT_NITEND   $PAT_NITEND" 
    97     echo "PAT_NDATE0   $PAT_NDATE0" 
    98     echo "PAT_NLEAPY   $PAT_NLEAPY" 
    99     echo "PAT_NSTOCK   $PAT_NSTOCK" 
    100     echo "PAT_NWRITE   $PAT_NWRITE" 
    101     echo "PAT_RESTAR   $PAT_RESTAR" 
    102     echo "PAT_NRSTAR   $PAT_NRSTAR" 
    103     echo "PAT_NMSH     $PAT_NMSH" 
    104     echo "PAT_NN_WRITE $PAT_NN_WRITE" 
    105     echo "PAT_NN_FWRI  $PAT_NN_FWRI" 
    106     echo "PAT_ICE_EMBD $PAT_ICE_EMBD" 
    107     echo "PAT_ICEFLX   $PAT_ICEFLX" 
    108     echo "PAT_JPNI     $PAT_JPNI" 
    109     echo "PAT_JPNJ     $PAT_JPNJ" 
    110     echo "PAT_JPNIJ    $PAT_JPNIJ" 
    111     echo "PAT_NN_FSBC  $PAT_NN_FSBC" 
    112     echo " " 
    113     echo "ORCA_RDT     $ORCA_RDT" 
    114     echo "DaysSinceJC  $DaysSinceJC" 
     95    IGCM_debug_Print 1 "PAT_CEXPER   $PAT_CEXPER " 
     96    IGCM_debug_Print 1 "PAT_NIT000   $PAT_NIT000" 
     97    IGCM_debug_Print 1 "PAT_NITEND   $PAT_NITEND" 
     98    IGCM_debug_Print 1 "PAT_NDATE0   $PAT_NDATE0" 
     99    IGCM_debug_Print 1 "PAT_NLEAPY   $PAT_NLEAPY" 
     100    IGCM_debug_Print 1 "PAT_NSTOCK   $PAT_NSTOCK" 
     101    IGCM_debug_Print 1 "PAT_NWRITE   $PAT_NWRITE" 
     102    IGCM_debug_Print 1 "PAT_RESTAR   $PAT_RESTAR" 
     103    IGCM_debug_Print 1 "PAT_NRSTAR   $PAT_NRSTAR" 
     104    IGCM_debug_Print 1 "PAT_NMSH     $PAT_NMSH" 
     105    IGCM_debug_Print 1 "PAT_NN_WRITE $PAT_NN_WRITE" 
     106    IGCM_debug_Print 1 "PAT_NN_FWRI  $PAT_NN_FWRI" 
     107    IGCM_debug_Print 1 "PAT_ICE_EMBD $PAT_ICE_EMBD" 
     108    IGCM_debug_Print 1 "PAT_ICEFLX   $PAT_ICEFLX" 
     109    IGCM_debug_Print 1 "PAT_JPNI     $PAT_JPNI" 
     110    IGCM_debug_Print 1 "PAT_JPNJ     $PAT_JPNJ" 
     111    IGCM_debug_Print 1 "PAT_JPNIJ    $PAT_JPNIJ" 
     112    IGCM_debug_Print 1 "PAT_NN_FSBC  $PAT_NN_FSBC" 
     113    IGCM_debug_Print 1 " " 
     114    IGCM_debug_Print 1 "ORCA_RDT        $ORCA_RDT" 
     115    IGCM_debug_Print 1 "ORCA_NN_FSBC    $ORCA_NN_FSBC" 
     116    IGCM_debug_Print 1 "ORCA_RDT_SBC    $ORCA_RDT_SBC" 
     117    IGCM_debug_Print 1 "ORCA_NPDT_JOUR  $ORCA_NPDT_JOUR" 
     118    IGCM_debug_Print 1 "DaysSinceJC     $DaysSinceJC" 
    115119     
    116120    IGCM_debug_PopStack "OCE_Initialize" 
    117  
    118      
     121    
    119122} 
    120123 
     
    126129    ## Check that nn_fsbc is correct compare to coupling frequency 
    127130 
    128     FreqCoupling=${oasis_UserChoices_FreqCoupling:-86400} 
    129     if [[ ${FreqCoupling} -gt 0 ]] ; then 
    130         (( ORCA_NPDT_COUP  = 86400 / FreqCoupling )) 
    131     else 
    132         ORCA_NPDT_COUP=${ORCA_NPDT_SBC} 
    133     fi  
     131    IGCM_debug_Print 1 "FreqCoupling    $FreqCoupling" 
     132    IGCM_debug_Print 1 "ORCA_NN_FSBC    $ORCA_NN_FSBC" 
     133    IGCM_debug_Print 1 "ORCA_RDT        $ORCA_RDT" 
     134    IGCM_debug_Print 1 "ORCA_RDT_SBC    $ORCA_RDT_SBC" 
     135 
     136    if [[ ${ORCA_RDT_SBC} -gt ${FreqCoupling} ]] ; then 
     137        IGCM_debug_Exit "ORCA_RDT_SBC=${ORCA_RDT_SBC} is greater than FreqCoupling=${FreqCoupling}" 
     138        IGCM_debug_Verif_Exit 
     139    fi 
    134140     
    135     if [[ ${ORCA_NN_FSBC} -lt ${ORCA_NPDT_COUP} ]] ; then 
    136         (( ORCA_NN_FSBC = ORCA_NPDT_JOUR / ORCA_NPDT_COUP )) 
    137     fi 
    138  
    139     ## This informations are used for diaptr, trends and diagap files 
    140     ## only the first frequency is used for this files 
    141     
    142  
    143     echo "FreqCoupling    $FreqCoupling" 
    144     echo "ORCA_NN_FSBC    $ORCA_NN_FSBC" 
    145     echo "ORCA_NPDT_JOUR  $ORCA_NPDT_JOUR" 
    146     echo "ORCA_NPDT_COUP  $ORCA_NPDT_COUP" 
    147     echo "ORCA_NPDT_SBC   $ORCA_NPDT_SBC" 
    148  
    149141    ##--Write Frequency Purpose .... 
    150142    frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 
     
    256248        ;; 
    257249        ( LIM3 )  
    258         NN_ICE_EMBD=1  
     250        NN_ICE_EMBD=2 
    259251        ICEFLX=${opa9_UserChoices_iceflx:-linear} 
    260252        ;; 
    261253    esac 
    262254 
    263     echo "NUM_PROC_OCE : " ${NUM_PROC_OCE} 
     255    IGCM_debug_Print 1 "NUM_PROC_OCE : " ${NUM_PROC_OCE} 
    264256 
    265257    sed -e "s/${PAT_CEXPER}/       cn_exp=\"${config_UserChoices_JobName}\"/"   \ 
     
    285277    IGCM_sys_Mv namelist_cfg.tmp namelist_cfg 
    286278 
    287     echo 'Variables automatically updated in ORCA namelist_cfg' 
     279    IGCM_debug_Print 1 'Variables automatically updated in ORCA namelist_cfg' 
    288280    grep AUTO namelist_cfg 
    289281 
    290282    # update iodef.xml 
    291283 
    292     echo 'Informations into iodef.xml : V1D_ENABLE V1M_ENABLE V1Y_ENABLE OUTPUT_LEVEL' 
    293     echo ${V1D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE} ${OUTPUT_LEVEL} 
     284    IGCM_debug_Print 1 'Informations into iodef.xml : V1D_ENABLE V1M_ENABLE V1Y_ENABLE OUTPUT_LEVEL' 
     285    IGCM_debug_Print 1 ${V1D_ENABLE} ${V1M_ENABLE} ${V1Y_ENABLE} ${OUTPUT_LEVEL} 
    294286 
    295287    sed -e "s/_1D_ENABLE_/${V1D_ENABLE}/" \ 
     
    334326    fi 
    335327 
    336     echo FINALIZE OCE !!! 
     328    IGCM_debug_Print 1 FINALIZE OCE !!! 
    337329 
    338330    IGCM_debug_PopStack "OCE_Finalize" 
Note: See TracChangeset for help on using the changeset viewer.