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