source: CONFIG/trunk/LMDZ4OR_v2/CREATE/COMP/lmdz.driver @ 332

Last change on this file since 332 was 332, checked in by jgipsl, 16 years ago
  • Added resolution in JobName?
  • Modified save location for output files (now in ATM/Output/Boundary and ATM/Output/Restart)
File size: 959 bytes
Line 
1#!/bin/ksh
2#-----------------------------------------------------------------
3function ATM_Initialize
4{
5    IGCM_debug_PushStack "ATM_Initialize"
6
7    RESOL_ATM=${RESOL}
8
9    IGCM_debug_PopStack "ATM_Initialize"
10}
11
12#-----------------------------------------------------------------
13function ATM_Update
14{
15    IGCM_debug_PushStack "ATM_Update"
16
17    ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def
18    if [ ${CumulPeriod} -eq 1 ] ; then
19        RAZ_DATE=1
20    else
21        RAZ_DATE=0
22    fi
23
24    ## Mise en forme du fichier run.def
25    sed -e "s/_dayref_/${InitDay}/" \
26        -e "s/_anneeref_/${InitYear}/" \
27        -e "s/_nday_/${PeriodLengthInDays}/" \
28        -e "s/_raz_date_/${RAZ_DATE}/" \
29        run.def > run.def.tmp
30    IGCM_sys_Mv run.def.tmp run.def
31
32    IGCM_debug_PopStack "ATM_Update"
33}
34
35#-----------------------------------
36function ATM_Finalize
37{
38    IGCM_debug_PushStack "ATM_Finalize"
39
40    echo FINALIZE ATM !
41
42    IGCM_debug_PopStack "ATM_Finalize"
43}
Note: See TracBrowser for help on using the repository browser.