source: CMIP6/OMIP/CM61-LR-OMIP1-CO2ANTH-R1/DRIVER/lim3.driver @ 4818

Last change on this file since 4818 was 4818, checked in by cetlod, 4 years ago

Save new OMIP experiments

File size: 2.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
19    ##--Write Frequency for iomput
20    ## Differents frequencies are allowed for ICE files
21
22    VI1D_ENABLE=".FALSE."
23    VI5D_ENABLE=".FALSE."
24    VI1M_ENABLE=".FALSE."
25    VI1Y_ENABLE=".FALSE."
26
27    for frequency in ${config_ICE_WriteFrequency} ; do
28        case ${frequency} in
29            ( 1D|1d ) VI1D_ENABLE=".TRUE." ;;
30            ( 5D|5d ) VI5D_ENABLE=".TRUE." ;;
31            ( 1M|1m ) VI1M_ENABLE=".TRUE." ;;
32            ( *[yY] ) VI1Y_ENABLE=".TRUE." ;;
33        esac
34    done
35
36
37  # Update iodef.xml
38
39    IGCM_debug_Print 1 'Informations into iodef.xml : VI1D_ENABLE VI5D_ENABLE VI1M_ENABLE VI1Y_ENABLE '
40    IGCM_debug_Print 1 ${VI1D_ENABLE}  ${VI5D_ENABLE} ${VI1M_ENABLE} ${VI1Y_ENABLE}
41
42    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim enabled ${VI1D_ENABLE}
43    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim enabled ${VI5D_ENABLE}
44    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim enabled ${VI1M_ENABLE}
45    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE}
46
47    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim output_level ${lim3_UserChoices_OutputLevel}
48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim output_level ${lim3_UserChoices_OutputLevel}
49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim output_level ${lim3_UserChoices_OutputLevel}
50    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim output_level ${lim3_UserChoices_OutputLevel}
51
52
53    echo UPDATE ICE !!!
54
55    IGCM_debug_PopStack "ICE_Update"
56}
57
58#-----------------------------------
59function ICE_Finalize
60{
61    IGCM_debug_PushStack "ICE_Finalize"
62
63    echo FINALIZE ICE !!!
64
65    IGCM_debug_PopStack "ICE_Finalize"
66}
67
Note: See TracBrowser for help on using the repository browser.