source: branches/ORCHIDEE_2_2/ORCHIDEE_OL/SPINUP_ANALYTIC_FG1nd/COMP/xios.driver @ 7911

Last change on this file since 7911 was 7911, checked in by xiaoni.wang, 16 months ago

Add configuration files for the spinup and transient simulations by using the new driver in tag2.2

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.