source: CONFIG/UNIFORM/v7/IPSLCM7/GENERAL/DRIVER/xios.driver @ 6662

Last change on this file since 6662 was 6662, checked in by cetlod, 8 months ago

CM7_work : finalisation, update drivers and monitoring files

File size: 1.2 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" ] || [ X"$( echo ${config_UserChoices_ExpType} | grep MR025 )" != "X" ] ; then
23       IGCM_comp_modifyXmlFile force iodef.xml using_server2 NONE true
24    fi
25
26    if [ -f namcouple ] ; then
27       if [ "X${config_ListOfComponents_ICO}" = "X" ] ; then
28         sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp
29       else
30         sed -e "s/2  icosa oceanx/3 icosa oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp
31       fi
32       IGCM_sys_Mv namcouple.tmp namcouple
33    fi
34
35    IGCM_debug_PopStack "IOS_Update"
36}
37
38#-----------------------------------
39function IOS_Finalize
40{
41    IGCM_debug_PushStack "IOS_Finalize"
42
43    echo FINALIZE IOS !!!
44
45    IGCM_debug_PopStack "IOS_Finalize"
46}
Note: See TracBrowser for help on using the repository browser.