source: CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/xios.driver @ 2343

Last change on this file since 2343 was 2343, checked in by aclsce, 10 years ago

Modifed to have same handling of XIOS xml files as in LMDZOR configuration.

File size: 973 bytes
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# If lmdz_UserChoices_XIOS=y add LMDZ as component id :
21    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then
22        IGCM_comp_modifyXmlFile force iodef.xml oasis_codes_id NONE LMDZ,oceanx
23    fi
24    if [ -f namcouple ] ; then
25        sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp
26        IGCM_sys_Mv namcouple.tmp namcouple
27    fi
28
29    IGCM_debug_PopStack "IOS_Update"
30}
31
32#-----------------------------------
33function IOS_Finalize
34{
35    IGCM_debug_PushStack "IOS_Finalize"
36
37    echo FINALIZE IOS !!!
38
39    IGCM_debug_PopStack "IOS_Finalize"
40}
Note: See TracBrowser for help on using the repository browser.