source: CONFIG/LMDZ/branches/LMDZ4/CREATE/COMP/lmdz.driver @ 544

Last change on this file since 544 was 541, checked in by jgipsl, 16 years ago

Added LMDZ4 forced configuration using the "old physics" of LMDZ with
possiblity to later add a second set parameter files to run "new
physics" in the same configuration. This configuration is adapted to the
latest LMDZ trunk version.

File size: 1.6 KB
Line 
1#!/bin/ksh
2#-----------------------------------------------------------------
3function ATM_Initialize
4{
5    IGCM_debug_PushStack "ATM_Initialize"
6
7    RESOL_ATM=${RESOL}
8
9    ##- Parameter files directory
10    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices PARAM
11    PARAM=${lmdz_UserChoices_PARAM}
12    echo Parameter files directory : ${PARAM}
13
14    IGCM_debug_PopStack "ATM_Initialize"
15}
16
17#-----------------------------------------------------------------
18function ATM_Update
19{
20    IGCM_debug_PushStack "ATM_Update"
21
22    ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def
23    if [ ${CumulPeriod} -eq 1 ] ; then
24        RAZ_DATE=1
25    else
26        RAZ_DATE=0
27    fi
28
29    ## Mise en forme du fichier run.def
30    sed -e "s/_dayref_/${InitDay}/"          \
31        -e "s/_anneeref_/${InitYear}/"       \
32        -e "s/_nday_/${PeriodLengthInDays}/" \
33        -e "s/_raz_date_/${RAZ_DATE}/"       \
34        -e "s/_adjust_/n/"                   \
35        run.def > run.def.tmp
36    IGCM_sys_Mv run.def.tmp run.def
37
38
39    ## Mise en forme du fichier physiq.def
40    sed -e "s/_ok_insant_/n/"                \
41        -e "s/_ok_journe_/n/"                \
42        -e "s/_ok_mensuel_/n/"               \
43        -e "s/_ok_hf_/n/"                    \
44        physiq.def > physiq.def.tmp
45    IGCM_sys_Mv physiq.def.tmp physiq.def
46
47    ## Mise en forme du fichier gcm.def
48    sed -e "s/_day_step_/240/"               \
49        gcm.def > gcm.def.tmp
50    IGCM_sys_Mv gcm.def.tmp gcm.def
51
52
53    IGCM_debug_PopStack "ATM_Update"
54}
55
56#-----------------------------------
57function ATM_Finalize
58{
59    IGCM_debug_PushStack "ATM_Finalize"
60
61    echo FINALIZE ATM !
62
63    IGCM_debug_PopStack "ATM_Finalize"
64}
Note: See TracBrowser for help on using the repository browser.