Last change
on this file since 5912 was
5912,
checked in by falletti, 3 years ago
|
Update LMDZREPR_v6 with ping files for CMIP6
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/ksh |
---|
2 | ##----------------------------------------------------------------- |
---|
3 | function CHM_Initialize |
---|
4 | { |
---|
5 | IGCM_debug_PushStack "CHM_Initialize" |
---|
6 | |
---|
7 | IGCM_debug_PopStack "CHM_Initialize" |
---|
8 | } |
---|
9 | |
---|
10 | ##----------------------------------------------------------------- |
---|
11 | function CHM_Update |
---|
12 | { |
---|
13 | IGCM_debug_PushStack "CHM_Update" |
---|
14 | |
---|
15 | # Add include of REPROBUS context in iodef.xml |
---|
16 | # In iodef.xml add on next line after "COMPONENT CONTEXT" |
---|
17 | # <context id="reprobus" src="./context_reprobus.xml"/> |
---|
18 | echo '<context id="reprobus" src="./context_reprobus.xml"/>' > add.tmp |
---|
19 | |
---|
20 | # Include xml files for output configuration if running with workflow CMIP6 |
---|
21 | if ( [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] || [ X${config_Post_dr2xmlIPSL} = XTRUE ] ) ; then |
---|
22 | #echo '<context id="reprobus" src="./ping_LMDZ_AerChemMIP.xml"/>' >> add.tmp |
---|
23 | echo '<context id="reprobus" src="./ping_REPROBUS_CM6.xml"/>' >> add.tmp |
---|
24 | #echo '<context id="reprobus" src="./dr2xml_LMDZ.xml"/>' >> add.tmp |
---|
25 | echo '<context id="reprobus" src="./dr2xml_reprobus.xml"/>' >> add.tmp |
---|
26 | fi |
---|
27 | |
---|
28 | cp iodef.xml iodef.xml.tmp |
---|
29 | sed -e "/COMPONENT CONTEXT/r add.tmp" \ |
---|
30 | iodef.xml.tmp > iodef.xml |
---|
31 | rm iodef.xml.tmp add.tmp |
---|
32 | |
---|
33 | IGCM_debug_PopStack "CHM_Update" |
---|
34 | } |
---|
35 | |
---|
36 | #----------------------------------- |
---|
37 | function CHM_Finalize |
---|
38 | { |
---|
39 | IGCM_debug_PushStack "CHM_Finalize" |
---|
40 | |
---|
41 | IGCM_debug_PopStack "CHM_Finalize" |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.