Changeset 1329 for CONFIG/LMDZORINCA


Ignore:
Timestamp:
03/02/11 16:11:19 (12 years ago)
Author:
acosce
Message:

ACo : update ce0l for LMDZORINCA

Location:
CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/COMP/lmdz.card

    r345 r1329  
    77 
    88[InitialStateFiles] 
    9 List=   (${R_INIT}/CHM/${config_UserChoices_TagName}/AER/INCA9671/start_trac.nc, start_trac.nc) 
     9List= () 
    1010 
    1111[BoundaryFiles] 
    12 List=   (${R_INIT}/ATM/${config_UserChoices_TagName}/Amip6/amipbc_sst_360x180_${year}.nc, amipbc_sst_1x1.nc), \ 
    13         (${R_INIT}/ATM/${config_UserChoices_TagName}/Amip6/amipbc_sic_360x180_${year}.nc, amipbc_sic_1x1.nc) 
     12List=   (${R_INIT}/ATM/${config_UserChoices_TagName}/AMIP/amipbc_sst_360x180_${year}.nc, amipbc_sst_1x1.nc), \ 
     13        (${R_INIT}/ATM/${config_UserChoices_TagName}/AMIP/amipbc_sic_360x180_${year}.nc, amipbc_sic_1x1.nc), \ 
     14        (${R_INIT}/ATM/${config_UserChoices_TagName}/Ozone/HYBRIDE/v2.clim/tro3_${year}.new.nc, climoz.nc) 
     15 
    1416ListNonDel= (${R_INIT}/ATM/${config_UserChoices_TagName}/Albedo.nc, .), \ 
    1517        (${R_INIT}/ATM/${config_UserChoices_TagName}/ECDYN.nc, .), \ 
     
    1820        (${R_INIT}/ATM/${config_UserChoices_TagName}/Rugos.nc, .), \ 
    1921        (${R_INIT}/ATM/${config_UserChoices_TagName}/landiceref.nc, .) 
     22### Please, add the o2a.nc file to fit with the coupled configuration associated 
     23#       (${R_INIT}/ATM/IPSLCM5A/ORCA2.3xLMD9695/o2a.nc, o2a.nc) 
    2024 
    2125[ParametersFiles] 
     
    2630 
    2731[RestartFiles] 
    28 List=   (start.nc, start.nc, start.nc), \ 
    29         (startphy.nc, startphy.nc,  startphy.nc), \ 
    30         (limit.nc, limit.nc,  limit.nc) 
     32List= (NONE) 
    3133 
    3234[OutputText] 
    33 List=   (ftrace.out.1.0) 
     35List=   (physiq.def, gcm.def, run.def, traceur.def, guide.def) 
    3436 
    3537[OutputFiles] 
    36 List=   () 
     38List=   ( limit.nc,       ${R_OUT_ATM_O}/Boundary/${config_UserChoices_JobName}_${year}_limit.nc,       NONE), \ 
     39        ( climoz_LMDZ.nc, ${R_OUT_ATM_O}/Boundary/${config_UserChoices_JobName}_${year}_climoz_LMDZ.nc, NONE), \ 
     40        ( start.nc,       ${R_OUT_ATM_O}/Restart/${config_UserChoices_JobName}_${year}_start.nc,        NONE), \ 
     41        ( startphy.nc,    ${R_OUT_ATM_O}/Restart/${config_UserChoices_JobName}_${year}_startphy.nc,     NONE) 
    3742 
  • CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/COMP/lmdz.driver

    r888 r1329  
    1 #- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $ 
    21#!/bin/ksh 
     2#----------------------------------------------------------------- 
     3function LMDZ_sed 
     4{ 
     5    IGCM_debug_PushStack "LMDZ_sed" 
    36 
    4 #----------------------------------------------------------------- 
     7    sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp 
     8    RET=$? 
     9    echo "LMDZ_sed : ${1} ${2} ${3}" 
     10    \mv ${1}.tmp ${1} 
     11 
     12    IGCM_debug_PopStack "LMDZ_sed" 
     13    return $RET 
     14} 
     15 
    516function ATM_Initialize 
    617{ 
    718    IGCM_debug_PushStack "ATM_Initialize" 
    819 
    9     RESOL_ATM=$( echo $RESOL | awk "-Fx" '{print $2}' ) 
    10     case ${RESOL_ATM} in 
    11         LMD7245)   BandsResol=72x45x19   ;; 
    12         LMD9671)   BandsResol=96x71x19   ;; 
    13         LMD9672)   BandsResol=96x72x19   ;; 
    14         LMD9695)   BandsResol=96x95x19   ;; 
    15         LMD14496)  BandsResol=144x96x19  ;; 
    16         LMD144142) BandsResol=144x142x19 ;; 
    17     esac 
     20    [ -f ${SUBMIT_DIR}/../.resol ] && eval $(grep RESOL_ATM_3D ${SUBMIT_DIR}/../.resol) || RESOL_ATM_3D=96x95x19 
    1821 
     22    RESOL_ATM_Z=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $3}' | awk "-F-" '{print $1}' ) 
    1923 
    2024    ##-- Calendar type for LMDZ 
    2125    case ${config_UserChoices_CalendarType} in 
    2226        leap|gregorian) 
    23             CalendarTypeForLmdz=earth_366d;; 
     27            CalendarTypeForLmdz=gregorian;; 
    2428        noleap) 
    2529            CalendarTypeForLmdz=earth_365d;; 
     
    3034    esac 
    3135 
    32     ##- Default number of processor for lmdz 
    33     NUM_PROC_ATM=1 
    34     if [ X"${BATCH_NUM_PROC_TOT}" != X ] ; then 
    35         NUM_PROC_ATM=${BATCH_NUM_PROC_TOT} 
    36     fi 
     36    ##- PARAM directory 
     37    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices PARAM_DIR 
     38    PARAM_DIR=${lmdz_UserChoices_PARAM_DIR} 
     39    echo parameter file directory : ${PARAM_DIR} 
    3740 
    3841    ##--Frequency purpose .... 
    3942    ##--  Initialisation  .... 
    4043    OK_instan=n 
    41     ##--  
    4244    OK_journe=n 
    43     OK_mensuel=y 
     45    OK_mensuel=n 
     46    ok_hf=n 
    4447 
    4548    case ${config_UserChoices_PeriodLength} in 
    4649        1Y|1y|1M|1m) OK_mensuel=y ;; 
    47         5D|5d|1D|1d) OK_journe=n ;; 
     50        5D|5d|1D|1d) OK_journe=y ;; 
    4851    esac 
    4952 
    5053    for frequency in ${config_ATM_WriteFrequency} ; do 
    5154        case ${frequency} in 
    52             5D|5d|1D|1d) OK_journe=n ;; 
     55            5D|5d|1D|1d) OK_journe=y ;; 
     56        esac 
     57        case ${frequency} in 
     58            HF|hf) ok_hf=y ;; 
    5359        esac 
    5460    done 
    55  
    56     ##--Variables used by LMDZ -- 
    57     PAT_INST=$(     grep 'OK_instan'   ${SUBMIT_DIR}/PARAM/physiq.def ) 
    58     PAT_JOUR=$(     grep 'OK_journe'   ${SUBMIT_DIR}/PARAM/physiq.def ) 
    59     PAT_MOIS=$(     grep 'OK_mensuel'  ${SUBMIT_DIR}/PARAM/physiq.def ) 
    60  
    61     PAT_iphysiq=$(  grep 'iphysiq'     ${SUBMIT_DIR}/PARAM/gcm.def ) 
    62     PAT_iperiod=$(  grep 'iperiod'     ${SUBMIT_DIR}/PARAM/gcm.def | tail -1) 
    63     PAT_day_step=$( grep 'day_step'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    64     PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    65  
    66  
    67  
    68     ##-- This could be define in lmdz.card, inside section [UserChoices] 
    69     ##-- Otherwise we get the value in *.def 
    70     iperiod=$(grep iperiod ${SUBMIT_DIR}/PARAM/gcm.def | awk -F= '{print $2}' | tail -1) 
    71     iphysiq=$(grep iphysiq ${SUBMIT_DIR}/PARAM/gcm.def | awk -F= '{print $2}') 
    72     # day_step : number of steps per day (multiple of iperiod) 
    73     (( day_step = 48 * iphysiq )) 
    7461 
    7562    IGCM_debug_PopStack "ATM_Initialize" 
     
    8168    IGCM_debug_PushStack "ATM_Update" 
    8269 
    83     ecritphy=${PeriodLengthInDays} 
     70    case ${config_UserChoices_PeriodLength} in 
     71        *Y|*y)  
     72               LMDZ_ecrit_mth=30.  
     73               LMDZ_ecrit_ISCCP=30. 
     74               LMDZ_periodav=30. 
     75               ;; 
     76        *) 
     77               LMDZ_ecrit_mth=${PeriodLengthInDays}. 
     78               LMDZ_ecrit_ISCCP=${PeriodLengthInDays}. 
     79               LMDZ_periodav=${PeriodLengthInDays}. 
     80               ;; 
     81    esac 
    8482 
    8583    ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def 
     
    9088    fi 
    9189 
     90    LMDZ_adjust=n 
    9291 
    93     ## Mise en forme du fichier physiq.def 
    94     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
    95         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
    96         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    97         physiq.def > physiq.def.tmp 
    98     IGCM_sys_Mv physiq.def.tmp physiq.def 
     92    ## physiq.def parameters modified from initial physiq_L${RESOL_ATM_Z} 
     93    LMDZ_sed physiq.def OK_instan   ${OK_instan} 
     94    LMDZ_sed physiq.def OK_journe   ${OK_journe} 
     95    LMDZ_sed physiq.def OK_mensuel  ${OK_mensuel} 
     96    LMDZ_sed physiq.def ok_hf       ${ok_hf} 
     97    LMDZ_sed physiq.def ecrit_mth   ${LMDZ_ecrit_mth} 
     98    LMDZ_sed physiq.def ecrit_ISCCP ${LMDZ_ecrit_ISCCP} 
     99#    LMDZ_sed physiq.def ok_mensuelCOSP  ${LMDZ_COSP_monthly} 
     100#    LMDZ_sed physiq.def ok_journeCOSP   ${LMDZ_COSP_daily} 
     101#    LMDZ_sed physiq.def ok_hfCOSP   ${LMDZ_COSP_hf} 
     102#    LMDZ_sed physiq.def ok_histNMC  "${LMDZ_NMC_monthly}, ${LMDZ_NMC_daily}, ${LMDZ_NMC_hf}" 
    99103 
    100     ## Mise en forme du fichier gcm.def 
    101     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
    102         -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
    103         -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
    104         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    105         gcm.def > gcm.def.tmp 
    106     IGCM_sys_Mv gcm.def.tmp gcm.def 
     104    ## gcm.def parameters : no change since gcm.def_${RESOL_ATM_3D} is used and already modified 
    107105 
    108     greg_dat=$( IGCM_date_ConvertFormatToGregorian $PeriodDateBegin )  
    109     jul_dat=$( IGCM_date_ConvertGregorianDateToJulian $greg_dat ) 
    110     nbjour=$( expr \( $jul_dat \% 1000 \) )  
    111     yractu=$( expr $greg_dat / 10000  ) 
    112     echo  "dayref = " $nbjour  "year actu = " $yractu 
     106    ## run.def parameters 
     107    LMDZ_sed run.def dayref   ${InitDay} 
     108    LMDZ_sed run.def anneeref ${year} 
     109    LMDZ_sed run.def calend   ${CalendarTypeForLmdz} 
     110    LMDZ_sed run.def nday     ${PeriodLengthInDays} 
     111    LMDZ_sed run.def raz_date ${RAZ_DATE} 
     112    LMDZ_sed run.def periodav ${LMDZ_periodav} 
     113    LMDZ_sed run.def adjust   ${LMDZ_adjust} 
     114    LMDZ_sed run.def use_filtre_fft n 
     115    if ( ${FirstInitialize} ) ; then 
    113116 
    114     ## Mise en forme du fichier run.def 
    115     sed -e "s/_dayref_/${nbjour}/"                      \ 
    116         -e "s/_anneeref_/${yractu}/"                    \ 
    117         -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    118         -e "s/_nday_/${PeriodLengthInDays}/"            \ 
    119         -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
    120         run.def > run.def.tmp 
    121     IGCM_sys_Mv run.def.tmp run.def 
     117    echo cat run 
     118    cat run.def 
     119 
     120    fi  
    122121 
    123122    IGCM_debug_PopStack "ATM_Update" 
  • CONFIG/LMDZORINCA/tags/LMDZORINCA_v1/CREATE/config.card

    r888 r1329  
     1# $Id$ 
    12#======================================================================== 
    23#D-- Compatibility - 
     
    910#============================ 
    1011#D-- (<8 chars MAX for JobName) 
    11 JobName= EL-LMD9672 
    12 LongName='Call for create_etat0_limit for AMIP run.' 
     12JobName= EL-96x95x19 
     13LongName="create_etat0_limit for interannuel run" 
    1314TagName=LMDZORINCA 
    1415#============================ 
    1516#D-- leap, noleap, 360d 
    1617CalendarType=leap 
    17 #D-- Début et fin de Job 
     18#D-- Begin and end of job  
    1819#D-- "YYYY-MM-DD" 
    19 DateBegin=2000-01-01 
    20 DateEnd=2005-12-30 
     20DateBegin=1979-01-01 
     21DateEnd=2005-12-31 
    2122#============================ 
    2223#D-- 1Y, 1M, 5D, 1D 
     
    2930[ListOfComponents] 
    3031#D- For each component, Name of component, Tag of component 
    31 ATM= (lmdz, LMDZ4_V3_1) 
     32ATM= (lmdz, LMDZ4) 
    3233 
    3334#======================================================================== 
     
    4546#D- Last day of the experience used as restart 
    4647RestartDate= 
    47 #D- Define restart simulation name (=> JOB_OS) 
     48#D- Define restart simulation name 
    4849RestartJobName= 
    49 #D- Path Server Group Login (=> PSGL) 
     50#D- Path Server Group Login 
    5051RestartPath= 
    5152# Attention login depend de la machine 
     
    7071#D-- NO Post - 
    7172[Post] 
    72 RebuildFrequency= 
    73 MonitoringFrequency= 
    74 TimeSeriesFrequency= 
    75 SeasonalFrequency= 
     73RebuildFrequency=NONE 
     74TimeSeriesFrequency=NONE 
     75SeasonalFrequency=NONE 
    7676#======================================================================== 
Note: See TracChangeset for help on using the changeset viewer.