source: CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/xios.driver @ 3992

Last change on this file since 3992 was 3992, checked in by cetlod, 2 years ago

updating NEMO_v6 configurations

File size: 1.4 KB
Line 
1#!/bin/ksh
2#-----------------------------------
3function IOS_Initialize
4{ 
5    IGCM_debug_PushStack "IOS_Initialize"
6
7    echo INITIALIZE IOS !!!
8
9    IGCM_debug_PopStack "IOS_Initialize"
10}
11
12#-----------------------------------
13function IOS_Update
14{
15    IGCM_debug_PushStack "IOS_Update"
16
17    echo UPDATE IOS !!!
18# Activate server mode
19    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true
20
21    # Activate 2nd server level for CMIP6 type experiments (CMIP6 workflow)
22    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then
23       IGCM_comp_modifyXmlFile force iodef.xml using_server2 NONE true
24    fi
25
26   # Add include of nemo context in iodef.xml
27    # In iodef.xml add on next line after "COMPONENT CONTEXT"
28    #  <context id="nemo" src="./context_nemo.xml"/>
29    echo '<context id="nemo" src="./context_nemo.xml"/>' > add.tmp
30    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then
31        echo '<context id="nemo" src="./ping_nemo.xml"/>' >> add.tmp
32        echo '<context id="nemo" src="./dr2xml_opa9.xml"/>' >> add.tmp
33    fi
34    cp iodef.xml iodef.xml.tmp
35    sed -e "/ALL CONTEXT/r add.tmp" \
36        iodef.xml.tmp > iodef.xml
37    rm iodef.xml.tmp add.tmp
38
39    IGCM_debug_PopStack "IOS_Update"
40}
41
42#-----------------------------------
43function IOS_Finalize
44{
45    IGCM_debug_PushStack "IOS_Finalize"
46
47    echo FINALIZE IOS !!!
48
49    IGCM_debug_PopStack "IOS_Finalize"
50}
Note: See TracBrowser for help on using the repository browser.