33 | | # change cfgs/SHARED/namelist_ice_ref (add an init file) |
34 | | sed -e "s/nn_iceini_file *=.*/nn_iceini_file = 1 /" \ |
35 | | cfgs/SHARED/namelist_ice_ref > tmp$$ |
36 | | mv tmp$$ cfgs/SHARED/namelist_ice_ref |
37 | | |
38 | | # change cfgs/SHARED/namelist_pisces_ref (as in sette) |
39 | | sed -e "s/ln_varpar *=.*/ln_varpar = .false. /" \ |
40 | | -e "s/ln_pisdmp *=.*/ln_pisdmp = .false. /" \ |
41 | | cfgs/SHARED/namelist_pisces_ref > tmp$$ |
42 | | mv tmp$$ cfgs/SHARED/namelist_pisces_ref |
43 | | }}} |
44 | | |
45 | | == Change ORCA2_ICE_PISCES namelist_*cfg and file_def_nemo-*.xml == |
46 | | |
47 | | {{{#!sh |
48 | | # change namelist_cfg (suppress icebergs!!) |
49 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_cfg |
50 | | sed -e "s/ln_icebergs *=.*/ln_icebergs = .false. /" $ff > tmp$$ |
51 | | mv tmp$$ $ff |
52 | | |
53 | | # change namelist_top_cfg (as in sette) |
54 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_top_cfg |
55 | | sed -e "s/ln_trcdta *=.*/ln_trcdta = .false. /" $ff > tmp$$ |
56 | | mv tmp$$ $ff |
57 | | |
58 | | # change namelist_pisces_cfg (as in sette) |
59 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/namelist_pisces_cfg |
60 | | sed -e "s/ln_ironsed *=.*/ln_ironsed = .false. /" \ |
61 | | -e "s/ln_ironice *=.*/ln_ironice = .false. /" \ |
62 | | -e "s/ln_hydrofe *=.*/ln_hydrofe = .false. /" \ |
63 | | $ff > tmp$$ |
64 | | mv tmp$$ $ff |
65 | | |
66 | | # change file_def_nemo-oce.xml (suppress diag) |
67 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-oce.xml |
68 | | sed -e '/file_group id="1m"/,/<\/file_group>/d' $ff > tmp$$ |
69 | | mv tmp$$ $ff |
70 | | |
71 | | # change file_def_nemo-ice.xml (suppress diag) |
72 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-ice.xml |
73 | | sed -e '/name_suffix="_SBC_scalar"/,/<\/file>/d' $ff > tmp$$ |
74 | | mv tmp$$ $ff |
75 | | |
76 | | # change file_def_nemo-pisces.xml (suppress diag) |
77 | | ff=cfgs/ORCA2_ICE_PISCES/EXPREF/file_def_nemo-pisces.xml |
78 | | sed -e '/file_group id="1y"/,/<\/file_group>/d' $ff > tmp$$ |
79 | | mv tmp$$ $ff |
80 | | }}} |
81 | | |
82 | | == Compile the configurations code == |
83 | | |
84 | | I propose to start with |
85 | | - ORCA2, ORCA2_ICE, ORCA2_ICE_PISCES. |
86 | | - one run with XIOS attached (XIOSAT) and one run without XIOS (NOXIOS) |
87 | | |
88 | | There is the modules smasson uses on jean-zay [attachment:modules_jeanzay.sh] and irene [attachment:modules_irene.sh] |
89 | | |
90 | | {{{#!sh |
91 | | machine=... # for example X64_IRENE, X64_JEANZAY |
92 | | # ORCA2_ICE_PISCES |
93 | | ./makenemo -m $machine -n ORCA2_ICE_PISCES_XIOSAT -r ORCA2_ICE_PISCES -j 8 |
94 | | ./makenemo -m $machine -n ORCA2_ICE_PISCES_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_iomput" |
95 | | # ORCA2_ICE |
96 | | ./makenemo -m $machine -n ORCA2_ICE_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top" |
97 | | ./makenemo -m $machine -n ORCA2_ICE_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_iomput" |
98 | | # ORCA2 |
99 | | ./makenemo -m $machine -n ORCA2_XIOSAT -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3" |
100 | | ./makenemo -m $machine -n ORCA2_NOXIOS -r ORCA2_ICE_PISCES -j 8 del_key "key_top key_si3 key_iomput" |
101 | | }}} |
102 | | |
103 | | == Cleaning of 2 context_nemo.xml files == |
104 | | |
105 | | {{{#!sh |
106 | | # no pisces lines in context_nemo.xml if not a PISCES directory |
107 | | for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_PISCES" ) |
108 | | do |
109 | | sed -e '/pisces/d' $ff > tmp$$ |
110 | | mv tmp$$ $ff |
111 | | done |
112 | | # no ice lines in context_nemo.xml if not a ICE directory |
113 | | for ff in $( ls -1 cfgs/ORCA2_*/EXP00/context_nemo.xml | grep -v "_ICE" ) |
114 | | do |
115 | | sed -e '/ice/d' $ff > tmp$$ |
116 | | mv tmp$$ $ff |
117 | | done |
118 | | |
119 | | # optional additional cleaning... |
120 | | # |
121 | | #no pisces files if not a PISCES directory |
122 | | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*pisces* | grep -v "_PISCES" ) |
123 | | #no top files if not a PISCES directory |
124 | | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*top* | grep -v "_PISCES" ) |
125 | | #no ice files if not a ICE directory |
126 | | rm -f $( ls -1 cfgs/ORCA2_*/EXP00/*ice* | grep -v "_ICE" ) |
127 | | }}} |