4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/cost, pkg/ctrl, pkg/ecco option-file: |
8 |
|
- clean-up and split content of old pkg/ecco/ECCO_CPPOPTIONS.h file into |
9 |
|
separated pkg option-file (done according to old doc from ECCO_CPPOPTIONS.h, |
10 |
|
not necessary accurate). |
11 |
|
- add a template for option-file ECCO_CPPOPTIONS.h, mostly empty, in |
12 |
|
pkg/autodiff, i.e., the 1rst pkg to compile for adjoint built, with lines to |
13 |
|
deliberately break compilation (a remainder that it needs to be customized) |
14 |
|
- in pkg/ecco, includes ECCO_OPTIONS.h instead of COST_OPTIONS.h |
15 |
|
- rename COST_CPPOPTIONS.h to COST_OPTIONS.h |
16 |
|
- rename CTRL_CPPOPTIONS.h to CTRL_OPTIONS.h |
17 |
|
o tools/genamke2: |
18 |
|
- check for lapack. |
19 |
|
o pkg/cost and pkg/ecco : attempt to sort out some of the limiting intricacies. |
20 |
|
- pkg/cost.cost_final.F : allow for use of pkg/ecco and pkg/cost cost functions |
21 |
|
jointly. The exclusive ifdefs were removed, to add costs terms (when defined) |
22 |
|
from both packages. |
23 |
|
- the fc global sum in pkg/ecco/ecco_cost_final.F was removed accordingly. |
24 |
|
- for objf_atl we use either the pkg/ecco or the pkg/cost term depending on CPPs. |
25 |
|
- pkg/ecco and model/src : add CPP brackets around pkg/cost and pkg/ctrl includes |
26 |
|
of "CTRL_SIZE.h" "ctrl.h" "ctrl_dummy.h" "optim.h" / "cost.h" accordingly. |
27 |
|
o pkg/cost : add comments to explain special and/or untested setups. |
28 |
|
o pkg/exf: |
29 |
|
- use EXF_OPTIONS.h to set pkg/exf options except if done in ECCO_CPPOPTIONS.h |
30 |
|
(previously, ALLOW_AUTODIFF_TAMC was controling this switch). |
31 |
|
o verification/*/code_ad: |
32 |
|
mimimal cleaning of AD experiments ECCO_CPPOPTIONS.h option-file: |
33 |
|
- reccord when this file is included (define ECCO_CPPOPTIONS_H) |
34 |
|
- remove the most obvious obsolete features (e.g., #define ALLOW_COST not |
35 |
|
allowed since Oct 2003 in any option-file except in PACKAGES_CONFIG.h) |
36 |
|
o pkg/seaice : |
37 |
|
- added possibility to change ice strength/PRESS0 relationship to |
38 |
|
HEFF, according to the following run time parameters |
39 |
|
SEAICEpresPow0 :: HEFF exponent for ice strength below SEAICEpresH0 (integer, >0) |
40 |
|
SEAICEpresPow1 :: HEFF exponent for ice strength above SEAICEpresH0 (integer, >0) |
41 |
|
SEAICEpresH0 :: HEFF threshold for ice strength (m) |
42 |
|
o pkg/ggl90 : |
43 |
|
- added run time flag mxlSurfFlag to include the code that ensure |
44 |
|
mixing between first and second level (previously included as a comment) |
45 |
|
o verification/1D_ocean_ice_column/input_ad/data.autodiff : |
46 |
|
- add test of newly added dumpAdByRec=T option where |
47 |
|
we write all records to one file per variable. |
48 |
|
o verification/global_ocean.cs32x15/code_ad/CPP_OPTIONS.h : |
49 |
|
- switch to #define ALLOW_BALANCE_RELAX and ALLOW_BALANCE_FLUXES |
50 |
|
to check that this code is ok with taf and compiles in adjoint. |
51 |
|
o pkg/autodiff : |
52 |
|
- added run time param dumpAdByRec : ad dump format switch. |
53 |
|
If true then write all records to one file per variable. |
54 |
|
Else write one file per record (remains the default). |
55 |
|
- revise seaice_ad_dump.F and exf_adjoint_snapshots_ad.F accordingly. |
56 |
|
o pkg/seaice: |
57 |
|
- Added SEAICEuseTILT run time switch : if set to |
58 |
|
false then omit the tilt term in seaice dynamics. |
59 |
|
- Fix free drift calculation. |
60 |
|
o pkg/shelfice: |
61 |
|
When initializing SHELFICEDragQuadratic, set default to be |
62 |
|
consistent with shiCdrag in case SHELFICEuseGammaFrict is used, |
63 |
|
but retain option to set it independently |
64 |
|
(inconsistenty spotted by Veronique Dansereau) |
65 |
|
o eesupp/inc: |
66 |
|
- in EEPARAMS.h, add real-type constant for some frequently used simple number |
67 |
|
(0,1,2,1/2), with name explicitly referring to RS/RL type. |
68 |
|
o model/src: |
69 |
|
- move balancing of relaxation terms to new S/R balance_relax.F. |
70 |
|
o pkg/autodiff: |
71 |
|
re-write active I/O high-level (control) S/R: |
72 |
|
- rename S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL |
73 |
|
- add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R. |
74 |
|
- use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ and |
75 |
|
MDS_READ/WRITE_FIELD); change loops to multi-threads. |
76 |
|
- update and merge active_file_control_slice.flow into active_file_control.flow |
77 |
|
- update the calls in lower level S/R (active_file.F, active_file_g.F and |
78 |
|
active_file_ad.F) keeping the argument list and function unchanged. |
79 |
|
- also update lower-level "_LOC" version (call same S/R with "useCurrentDir |
80 |
|
=.TRUE.") and remove high-level (control) _loc version (not called anymore). |
81 |
|
- new low-level active I/O routines, one for each type (RL/RS), for active var |
82 |
|
of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr); |
83 |
|
fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the |
84 |
|
right type. |
85 |
|
o autodiff and RS=real*4: |
86 |
|
- call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf |
87 |
|
ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ; |
88 |
|
- change argument type of 3-D mask argument to _RS to match type in the call |
89 |
|
(in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued. |
90 |
|
o pkg/thsice: |
91 |
|
- re-anable balanceEmPmR when useSEAICE=T with useThSIce=T. |
92 |
|
- option to correct ocean fresh-water flux for imbalance of Atmos+Land |
93 |
|
fresh-water flux: uniform correction or proportional to local precip. |
94 |
|
o pkg/ctrl: |
95 |
|
- new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D |
96 |
|
- redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to |
97 |
|
ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC |
98 |
|
- verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL |
99 |
|
|
100 |
|
checkpoint63q (2012/07/30) |
101 |
|
o pkg/autodiff: |
102 |
|
note about monitor and snap-shot of ad-variables: |
103 |
|
a) need to apply ADEXCH before monitor or output of ad-vars to include |
104 |
|
overlap contributions (was done for adjDump but missing for monitor). |
105 |
|
b) since ADEXCH implies adding overlap values to interior array, machine |
106 |
|
truncation error is expected when adding an ADEXCH call in the middle of |
107 |
|
the time-stepping (although mathematically identical). |
108 |
|
modifs: |
109 |
|
- fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars |
110 |
|
declaration (adEddyPsiX,adEddyPsiY in adcommon.h). |
111 |
|
- add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how to |
112 |
|
apply ADEXCH before monitor or snap-shot of ad-variables: |
113 |
|
=0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy. |
114 |
|
- implement new method (copy+adexch) for snap-shot and monitor of main model |
115 |
|
ad-vars (initially not used by default -> output unchanged). |
116 |
|
- change default (set to 2) to use new method and update few output_adm.txt |
117 |
|
with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo |
118 |
|
and both tutorial_tracer_adjsens tests). |
119 |
|
- switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice) |
120 |
|
and turn off momDissip_In_AB in the 2 other (needed for stable AB-3). |
121 |
|
o pkg/ctrl: |
122 |
|
enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of |
123 |
|
generic control variables via |
124 |
|
#define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL |
125 |
|
Only required customization should be S/R ctrl_map_ini_genarr.F |
126 |
|
(routine in repository contains example) |
127 |
|
o pkg/exf: |
128 |
|
- fix and refine checking of surface-relaxation setting when using EXF |
129 |
|
o verification (adjoint exp): |
130 |
|
- reduce length of simulation by half for experiment global_ocean.cs32x15 |
131 |
|
(std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output. |
132 |
|
o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag) |
133 |
|
- replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers |
134 |
|
of KE that can occur with aggressive optimization |
135 |
|
+ put quadratic bottom drag calculation in separated loops (only done if |
136 |
|
using bottomDragQuadratic) |
137 |
|
o model/src: CG2D_NSA |
138 |
|
- clean-up: stop if cg2dNormaliseRHS=T and AUTODIFF |
139 |
|
and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE. |
140 |
|
- in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens), |
141 |
|
change cg2d residual target to be expressed in Wunits (=> do not normalise |
142 |
|
RHS ; this fix global_max Pb with TAF); update output. |
143 |
|
o verification/tutorial_tracer_adjsens: |
144 |
|
improve parameter consistency (and get rid of warnings): |
145 |
|
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
146 |
|
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
147 |
|
- use staggerTimeStep (for stability) in som81; use default rotation period. |
148 |
|
o pkg/exch2: |
149 |
|
- with empty facet: fix compact-format (W2_mapIO=1) definition (was previously |
150 |
|
reset to 0 = 1 long line in X) |
151 |
|
o pkg/mdsio: |
152 |
|
- fix reading of dimensions from meta file for large-size domain |
153 |
|
o model/src: |
154 |
|
- fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long); |
155 |
|
- to refine CS-grid check, add logical flag "hasWetCSCorners": true if using |
156 |
|
Cubed-Sphere Exch with CS-corners inside the domain; |
157 |
|
make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate |
158 |
|
globalArea and to set hasWetCSCorners. |
159 |
|
- add warning if usingCurvilinearGrid and momAdvection in flux-form (missing |
160 |
|
metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form. |
161 |
|
- re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if |
162 |
|
useCDscheme and useCubedSphereExchange). |
163 |
|
o pkg/seaice/seaice_growth.F : |
164 |
|
- compute the SEAICE_DISABLE_HEATCONSFIX term accordingly |
165 |
|
for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0) |
166 |
|
when the previous code was not correct. |
167 |
|
- in all cases diagnoze the boundary condition mismatch to SIaaflux |
168 |
|
- in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add |
169 |
|
that term to QNET (essentially to set the melt/freeze water to 0degC). |
170 |
|
when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed. |
171 |
|
o verification/global_ocean.cs32x15/input.seaice : |
172 |
|
- add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget. |
173 |
|
- add diagnostics (commented out) for budget test using my matlab codes (gcmfaces). |
174 |
|
- update results (output.seaice.txt) accordingly. |
175 |
|
o verification/lab_sea/input/data.seaice : |
176 |
|
- remove SEAICEheatConsFix, which is now be tested |
177 |
|
in global_ocean.cs32x15. The presently coded fix |
178 |
|
is only consistent with real fresh water + nlfs. |
179 |
|
- update results (output.txt) accordingly. |
180 |
|
o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd). |
181 |
|
o AD_CONFIG.h file: |
182 |
|
- in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h; |
183 |
|
- remove #include "AD_CONFIG.h" from all included OPTIONS files and |
184 |
|
add it explicitly in each fortran src file where it is needed. |
185 |
|
motivation: header file AD_CONFIG.h is generated/modified after "make depend" |
186 |
|
thus introducing potentially wrong dependency; therefore, better to include |
187 |
|
it only where it's really needed, and after any other included OPTIONS file |
188 |
|
(less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN |
189 |
|
or ALLOW_TANGENTLINEAR_RUN). |
190 |
|
|
191 |
|
checkpoint63p (2012/07/06) |
192 |
o pkg/autodiff: |
o pkg/autodiff: |
193 |
- rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ; |
- rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ; |
194 |
- create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters |
- create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters |
205 |
multiDimAdvection=.TRUE., |
multiDimAdvection=.TRUE., |
206 |
tempAdvScheme=81, |
tempAdvScheme=81, |
207 |
saltAdvScheme=81, |
saltAdvScheme=81, |
208 |
|
o model/src: |
209 |
|
- introduce ALLOW_BALANCE_RELAX which allow the removal |
210 |
|
of the global mean of relaxation terms by setting |
211 |
|
balanceThetaClimRelax and balanceSaltClimRelax |
212 |
|
- disable balanceEmPmR and balanceQnet in the case when useSeaice. |
213 |
|
This case is now treated appropriately in seaice_growth.F |
214 |
|
o pkg/seaice: |
215 |
|
- do balanceEmPmR and balanceQnet based on the net fluxes |
216 |
|
(SItflux) that enter the ocean+ice system rather than QNET |
217 |
|
and EMPMR. Works best in real fresh water. |
218 |
|
- SIatmFW, SIatmQnet, and SItflux computations had to be moved |
219 |
|
out of the diagnotics bloc, and stored in global arrays. |
220 |
|
|
221 |
checkpoint63o (2012/06/29) |
checkpoint63o (2012/06/29) |
222 |
o vertical mixing schemes: |
o vertical mixing schemes: |