source: CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/lim3.driver @ 3512

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

Update NEMO_v6 configuration

File size: 1.6 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    echo UPDATE ICE !!!
48
49    IGCM_debug_PopStack "ICE_Update"
50}
51
52#-----------------------------------
53function ICE_Finalize
54{
55    IGCM_debug_PushStack "ICE_Finalize"
56
57    echo FINALIZE ICE !!!
58
59    IGCM_debug_PopStack "ICE_Finalize"
60}
61
Note: See TracBrowser for help on using the repository browser.