source: CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/lim3.driver @ 3687

Last change on this file since 3687 was 3687, checked in by acosce, 4 years ago

Update IPSLESM to comply with v6 standard and add the AER experiment for the coupled model

File size: 1.7 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    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then       
39        VI1D_ENABLE=".FALSE."
40        VI5D_ENABLE=".FALSE."
41        VI1M_ENABLE=".FALSE."
42        VI1Y_ENABLE=".FALSE."
43    fi
44
45    IGCM_debug_Print 1 'Informations into iodef.xml : VI1D_ENABLE VI5D_ENABLE VI1M_ENABLE VI1Y_ENABLE '
46    IGCM_debug_Print 1 ${VI1D_ENABLE}  ${VI5D_ENABLE} ${VI1M_ENABLE} ${VI1Y_ENABLE}
47
48    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1d_lim enabled ${VI1D_ENABLE}
49    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 5d_lim enabled ${VI5D_ENABLE}
50    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1m_lim enabled ${VI1M_ENABLE}
51    IGCM_comp_modifyXmlFile nonblocker file_def_nemo-lim.xml 1y_lim enabled ${VI1Y_ENABLE}
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}
Note: See TracBrowser for help on using the repository browser.