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

Last change on this file since 4294 was 699, checked in by jgipsl, 15 years ago

Updatede LMDZ4 configuration as done for LMDZ4OR. Added new compile
resolutions and corresponding parameter files.

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