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

Last change on this file since 46 was 41, checked in by aclsce, 18 years ago

MAFo+ACa : IPSLCM4_v2 first import

File size: 1.2 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_NSTOCK ))
24    ## I PREFER (( ICE_NSTOCK = ORCA_NWRITE ))
25    ## BUT      (( ICE_NSTOCK = ORCA_NSTOCK )) is in AA_job
26
27    ##-- Restart configuration
28    if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_ICE_Restart}" = "n" ] ) ; then
29        LIMSTAR=2
30        #echo "PAS DE RESTART GLACE UCL"
31    else
32        LIMSTAR=1
33        #echo "RESTART GLACE UCL"
34    fi
35
36    #- pas de restart glace au debut de la simulation pour ORCA
37    sed -e "s/KKKKKKK/${LIMSTAR}/" \
38        -e "s/SSSSSSS/${ICE_NSTOCK}/" \
39        run.param.li > run.param.li.tmp
40
41    IGCM_sys_Mv run.param.li.tmp run.param.li
42
43    IGCM_debug_PopStack "ICE_Update"
44}
45
46#-----------------------------------
47function ICE_Finalize
48{
49    IGCM_debug_PushStack "ICE_Finalize"
50
51    echo FINALIZE ICE !!!
52
53    IGCM_debug_PopStack "ICE_Finalize"
54}
Note: See TracBrowser for help on using the repository browser.