source: CMIP6/CFMIP/CM61-LR-2xCO2-01/DRIVER/lim2.driver @ 3987

Last change on this file since 3987 was 3987, checked in by lfairhead, 2 years ago

Import of CFMIP 2xCO2 IPSL-CM6A-LR configuration

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