source: CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lim.driver @ 154

Last change on this file since 154 was 154, checked in by sdipsl, 17 years ago

Bug correction : NWRITE and NWRITEHF was not properly handle. OPA can output two differents write frequency, opa.card take it in account. IPSLCM4_v2 can now run with PeriodLength?=1Y in config.card

File size: 1.0 KB
Line 
1#!/bin/ksh
2
3#-----------------------------------
4function ICE_Initialize
5{ 
6    IGCM_debug_PushStack "ICE_Initialize"
7
8    echo INITIALIZE ICE !!!
9
10    IGCM_debug_PopStack "ICE_Initialize"
11}
12
13#-----------------------------------
14function ICE_Update
15{
16    IGCM_debug_PushStack "ICE_Update"
17
18    ##--Write Frequency Purpose ....
19
20    ##-- NOTICE THAT ICE_UPDATE
21    ##-- MUST BE DONE AFTER OCE_UPDATE
22
23    (( ICE_NSTOCK = ORCA_NWRITE ))
24
25    ##-- Restart configuration
26    if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_ICE_Restart}" = "n" ] ) ; then
27        LIMSTAR=2
28        #echo "PAS DE RESTART GLACE UCL"
29    else
30        LIMSTAR=1
31        #echo "RESTART GLACE UCL"
32    fi
33
34    #- pas de restart glace au debut de la simulation pour ORCA
35    sed -e "s/KKKKKKK/${LIMSTAR}/" \
36        -e "s/SSSSSSS/${ICE_NSTOCK}/" \
37        run.param.li > run.param.li.tmp
38
39    IGCM_sys_Mv run.param.li.tmp run.param.li
40
41    IGCM_debug_PopStack "ICE_Update"
42}
43
44#-----------------------------------
45function ICE_Finalize
46{
47    IGCM_debug_PushStack "ICE_Finalize"
48
49    echo FINALIZE ICE !!!
50
51    IGCM_debug_PopStack "ICE_Finalize"
52}
Note: See TracBrowser for help on using the repository browser.