4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/ctrl/CTRL_GENARR.h, ctrl_readparms.F : |
8 |
|
- add xx_genarr2d_bounds,xx_genarr3d_bounds, |
9 |
|
xx_genarr2d_numsmooth, xx_genarr3d_numsmooth |
10 |
|
o pkg/ctrl/ctrl_map_ini_genarr.F : |
11 |
|
- remove compilation failure |
12 |
|
- replace hard coded example |
13 |
|
- use ctrl_map_ini_gen2D, 3D |
14 |
|
o pkg/ctrl/ctrl_pack.F, ctrl_unpack.F : |
15 |
|
- on/off switch based upon xx_genarr2d_weight,3d |
16 |
|
o src/packages_init_variables.F : |
17 |
|
- regroup pkg/estimation calls |
18 |
|
- remove CTRL_MAP_INI, CTRL_MAP_INI_ECCO |
19 |
|
(moved to ctrl_init_variables) |
20 |
|
o cost/cost_init_varia.F : |
21 |
|
- remove ecco_cost_init_varia |
22 |
|
(moved to ecco_init_varia) |
23 |
|
o ctrl/ctrl_init_variables.F : |
24 |
|
- add CTRL_MAP_INI, CTRL_MAP_INI_ECCO |
25 |
|
- add CTRL_MAP_INI_GENARR, SEAICE_CTRL_MAP_INI |
26 |
|
o ctrl/ctrl_map_ini.F : |
27 |
|
- remove ctrl_map_ini_genarr, seaice_ctrl_map_ini |
28 |
|
(moved to ctrl_init_variables) |
29 |
|
o ctrl/ctrl_map_ini_ecco.F : |
30 |
|
- remove ECCO_PHYS (mv to ecco_init_varia) |
31 |
|
- remove seaice_ctrl_map_ini (mv to ctrl_init_variables) |
32 |
|
o ecco/ecco_ad_diff.list : |
33 |
|
- add ecco_init_varia.f |
34 |
|
o ecco/ecco_init_varia.F |
35 |
|
- new routine |
36 |
|
o pkg/streamice: |
37 |
|
- move call to STREAMICE_INITIALIZE_PETSC from the_model_main.F |
38 |
|
to streamice_init_fixed.F ; fix setting of STREAMICEisOn. |
39 |
|
- from model/src, only call pkg/streamice routines if useStreamIce is TRUE. |
40 |
|
o pkg/generic_advdiff: |
41 |
|
- fix bug causing negatives in GAD_SMOLARKIEWICZ_HACK, introduced 8/8/2014. |
42 |
|
o pkg/exf: |
43 |
|
- exf_getffields.F : add xxg_atemp, xxg_aqh, xxg_swdown, xxg_lwdown, |
44 |
|
xxg_precip capability |
45 |
|
- exf_wind.F : no need for ALLOW_WSPEED_CONTROL cpp switch |
46 |
|
o pkg/ctrl: |
47 |
|
- ctrl_pack.F, ctrl_unpack.F : omit (un)packing of undefined xx_gentim2d |
48 |
|
o model/src/load_fields_driver.F : |
49 |
|
- move call to CTRL_MAP_GENTIM2D ahead of BULKF_FIELDS_LOAD, EXF_GETFORCING |
50 |
|
so xx_gentim2d can be applied to e.g. exf fields in a timely manner. |
51 |
|
o OpenAD verification experiments: |
52 |
|
- Include explicitly AUTODIFF_OPTIONS.h, COST_OPTIONS.h, and CTRL_OPTIONS.h |
53 |
|
in src files (to enable to skip the ECCO_CPPOPTIONS.h); |
54 |
|
for now, only in pkgs used in OpenAD verification experiments. |
55 |
|
- Change all except one (halfpipe_streamice) OpenAD experiments to use pkg |
56 |
|
specific option file (AUTODIFF_OPTIONS.h, COST_OPTIONS.h & CTRL_OPTIONS.h) |
57 |
|
instead of using ECCO_CPPOPTIONS.h (with all relevant options in it). |
58 |
|
This applies to both TAF (*/code_ad/) and OpenAD (*/code_oad/) tests. |
59 |
|
o OpenAD verification tests: |
60 |
|
- finish removing ALLOW_AUTODIFF_OPENAD (replaced by ALLOW_OPENAD); |
61 |
|
- finish replacing ALLOW_AUTODIFF_TAMC by ALLOW_AUTODIFF (except for |
62 |
|
tape/storage which are specific to TAF/TAMC) in pkgs used in OpenAD exp. |
63 |
|
- leave ALLOW_AUTODIFF_TAMC undef in OpenAD verification tests (*/code_oad/) |
64 |
|
and remove local copy of "tamc.h" (needed only if ALLOW_AUTODIFF_TAMC). |
65 |
|
o model/src & generic_advdiff: |
66 |
|
- change hard-coded loop-range in S/R APPLY_FORCING_T/S to set T & S |
67 |
|
forcing over 0:sNx+1, 0:sNy=1 (instead of just 1:sNx,1:sNy): Model |
68 |
|
dynamics requires valid tracer forcing only over tile interior but, for |
69 |
|
some diagnostics, may need to extend it over 1 point in tile halo region. |
70 |
|
- in gad_calc_rhs.F, update calls to gmredi_x/ytransport to get valid |
71 |
|
tendency over i,j_Min,Max range. This allows to simplfy i,j_Min,Max |
72 |
|
setting in temp/salt/ptracer_integrate.F |
73 |
|
o pkg/dic: |
74 |
|
- multiply tracer tendencies by maskInC (if ussing OBCS) before updating |
75 |
|
gchem tracers: this allows to skip the 2nd call to OBCS_APPLY_PTRACER |
76 |
|
in gchem_forcing_sep.F |
77 |
|
o pkg/autodiff & obcs: |
78 |
|
- add storage of current OB values for U & V (was already done for T & S). |
79 |
|
|
80 |
|
checkpoint65c (2014/08/30) |
81 |
|
o pkg/dic: |
82 |
|
- take out of dic_atmos.F the initialisation part (corresponding to istate=0) |
83 |
|
and move it to new S/R DIC_INI_ATMOS ; also simplify the dependencies for |
84 |
|
AD compilers (but still a Pb with multi-threading and Ajoint dependencies). |
85 |
|
o verification: |
86 |
|
- new experiment testing OBCS and DIC pkgs, using params & output from |
87 |
|
tutorial_global_oce_biogeo but limited to a sub-domain around Drake |
88 |
|
passage: take OBCS from the last year of a 2 yrs simulation and initial |
89 |
|
conditions from t=1.yr while keeping the same forcing. |
90 |
|
o model/src: |
91 |
|
- when allowFreezing=T, only reset below freezing initial Temp to Tfreezing |
92 |
|
(at any k) if checkIniTemp is not set to FALSE (default checkIniTemp=T). |
93 |
|
o pkg/diagnostics (Stats-Diags): |
94 |
|
- re-write S/R DIAGSTATS_CALC (more similar to TARGET_NEC_SX part) to: |
95 |
|
a) refine region where stats are computed, excluding where arrhFac=0 ; |
96 |
|
b) fix missing interior mask (use with OBCS) in 3-D fields statistics; |
97 |
|
c) extend regional stats over the region edges (for U or V pt location). |
98 |
|
o pkg/gchem: |
99 |
|
- add a (2nd) call to OBCS_APPLY_PTRACER in gchem_forcing_sep.F (needed since |
100 |
|
pkg/dic is currently changing/updating ptracers values beyond the OB). |
101 |
|
o verification (hs94): |
102 |
|
- convert Held & Suarez external_forcing.F (from hs94.cs, with Sigma-coords |
103 |
|
bits) to apply_forcing.F and undef USE_OLD_EXTERNAL_FORCING in experiments |
104 |
|
hs94.cs-32x32x5 and tutorial_held_suarez_cs ; also use the same version of |
105 |
|
apply_forcing.F in 2D hs94 (fwd, ad & oad) but keep LatLon hs94 unchanged. |
106 |
|
o pkg/ptracers: |
107 |
|
- implement Adams-Bashforth on pTracers (instead of on tracer tendency), |
108 |
|
switched on by setting PTRACERS_doAB_onGpTr=F (default set to doAB_onGtGs) |
109 |
|
- change exp4 secondary test (input.nlfs) to test AB on T & S & pTracer |
110 |
|
with AB-2 code (so that it get tested). |
111 |
|
o model/src: |
112 |
|
- allow to apply Adams-Bashforth on Temp & Salt (instead of on gT,gS) |
113 |
|
with AB-2 code (previously only available with AB-3 code). |
114 |
|
Also move the code (call to ADAMS_BASHFORTH S/R) form thermodynamics.F |
115 |
|
to temp/salt_integrate.F (since the 2nd part of gt/sNm1 update is done |
116 |
|
there, by calling CYCLE_AB_TRACER). |
117 |
|
o pkg/generic_advdiff: |
118 |
|
- change Tracer argument (drop bi,bj indices) in S/R GAD_CALC_RHS, |
119 |
|
GAD_C2_ADV_R, GAD_U3_ADV_R, GAD_C4_ADV_R, GAD_DIFF_R, GAD_BIHARM_R |
120 |
|
+ also in GMREDI_X/Y/RTRANSPORT ; and update corresponding calls in |
121 |
|
S/R temp/salt/ptracers_integrate.F |
122 |
|
o model/src & pkg/ptracers: |
123 |
|
- remove common block variables gT,gS (in DYNVARS.h), except when |
124 |
|
USE_OLD_EXTERNAL_FORCING is defined; update TAF storage accordingly. |
125 |
|
- remove common block variable gPtr. |
126 |
|
o model/src & pkgs: |
127 |
|
- change gTracer (and/or tracer) argument (drop bi,bj indices) in S/R |
128 |
|
ADAMS_BASHFORTH(2&3), CYCLE_(AB_)TRACER, FREESURF_RESCALE_G, |
129 |
|
IMPLDIFF, SOLVE_TRIDIAGONAL & _PENTADIAGONAL, GAD_SOM_ADVECT, |
130 |
|
GAD_ADVECTION, GAD_CALC_RHS, GAD_IMPLICIT_R, TIMEAVE_CUMUL_DIF_1T |
131 |
|
+ change accordingly all calling S/R. |
132 |
|
- use local temperature/salinity/ptracer tendency array (without bi,bj) |
133 |
|
in S/R temp/salt/ptracers_integrate.F |
134 |
|
o pkg/seaice: |
135 |
|
- move computation of stress contributions to rhsU/V in s/r seaice_lsr |
136 |
|
to separate s/r seaice_lsr_rhsu/v in order to be able to re-use code |
137 |
|
- make u/vIceC local variables if SEAICE_CGRID is defined only to be used |
138 |
|
in seaice_lsr |
139 |
|
- seaice_lsr.F: make local 4D arrays UXX, VYY, etc 2D |
140 |
|
in s/r seaice_lsr_calc_coeffs |
141 |
|
o pkg/mdsio: |
142 |
|
- in MDS_READ/WRITE_FIELD, stop if file-name (+prefix) is too long |
143 |
|
(e.g., > MAX_LEN_MBUF -90 ) or, in INI_MODEL_IO, if mdsioLocalDir is |
144 |
|
too long (e.g., > MAX_LEN_FNAM/2 ) |
145 |
|
|
146 |
|
checkpoint65b (2014/08/12) |
147 |
|
o pkg/matrix: |
148 |
|
- pass, as argument, updated tracer field to S/R MATRIX_STORE_TENDENCY_EXP |
149 |
|
o model/src: |
150 |
|
- fix initialisation of geothermalFile; compile geothermal-flux code in |
151 |
|
natl_box verification experiment. |
152 |
|
o model/src & pkg/down_slope: |
153 |
|
- push the k loop inside S/R TIMESTEP_TRACER (now called outside the k loop). |
154 |
|
- in dwnslp_apply.F, update tracer tendency instead of the future tracer |
155 |
|
field and call S/R DWNSLP_APPLY before TIMESTEP_TRACER; this affects |
156 |
|
results at machine truncation level: update output of experiments |
157 |
|
global_ocean.90x40x15.dwnslp (FWD) and lab_sea.noseaicedyn (AD). |
158 |
|
o pkg/diagnostics (Stats-Diags): |
159 |
|
- do not cumulate the full volume when DIAGNOSTICS_FILL is |
160 |
|
called with bibjFlg < 0 (no increment of the counter for 2D/3D diag); |
161 |
|
This fix the mean statistics when DIAGNOSTICS_FILL is called multiple |
162 |
|
times (but Min,Max and StD are still wrong). |
163 |
|
o model/src: |
164 |
|
- add geothermal flux forcing: read in ini_forcing.F as time-constant |
165 |
|
field "geothermalFlux" applied in S/R APPLY_FORCING_T (apply_forcing.F) |
166 |
|
o model/src: |
167 |
|
- move CYCLE_TRACER calls from tracers_correction_step.F to temp/salt/ptracer |
168 |
|
_integrate.F so that, when leaving S/R THERMODYANMICS, theta,salt and pTrac |
169 |
|
arrays are already updated while adjustments (filters, conv.adjustment) are |
170 |
|
still applied later, in S/R TRACERS_CORRECTION_STEP. |
171 |
|
o model/src: |
172 |
|
- store in common bloc array "rhoInSitu" the virtual potential temperature |
173 |
|
anomaly that is used to compute geopotential: this make the atmos code |
174 |
|
more similar to ocean code which already uses rhoInSitu in calc_phi_hyd.F |
175 |
|
o pkg/seaice/seaice_lsr.F |
176 |
|
- rename integer variable ilcall to ipass (that's what it is called |
177 |
|
in the residual diagnostics |
178 |
|
- change time stepping for NPSEUDOTIMESTEP > 2 (does not change the |
179 |
|
default) for improved non-linear convergence of the first few steps |
180 |
|
- adjust a few comments and add new ones to explain some of the store |
181 |
|
directives |
182 |
|
o pkg/generic_advdiff (& ptracers): |
183 |
|
- re-work the code to check for valid advection scheme and for minimum |
184 |
|
size of overlap (now stored in local common bloc in gad_advscheme.F) |
185 |
|
o pkg/seaice: another attempt to make the adjoint work for sea ice dynamics |
186 |
|
- re-initialize more variables in seaice_lsr: u/vIceC, u/vIceNm1 |
187 |
|
- add an auxilliary variable "bet" and fix store directives and keys in |
188 |
|
seaice_lsr_tridiagu/v, this seems to do the trick (i.e. more or |
189 |
|
less exact gradients in my tests); but there are still |
190 |
|
recomputation warning (although gradients are sort of OK), when |
191 |
|
SEAICE_LSR_VECTORIZE is not defined, so this flag and |
192 |
|
SEAICE_LSR_VECTORIZE_ZEBRA are recommended for efficiency. |
193 |
|
- update verification experiments lab_sea. |
194 |
|
- change some comments in S/R seaice_calc_viscosities |
195 |
|
o model/src: |
196 |
|
- if staggerTimeStep=T, always apply exchange to velocity field in |
197 |
|
do_stagger_fields_exchanges.F instead of in do_fields_blocking_exchanges.F |
198 |
|
(independent of using multi-dim advection or not); no effect on FWD run |
199 |
|
but affects AD results (at machine truncation level): update output of |
200 |
|
experiment 1D_ocean_ice_column (ad: 12 digits), hs94.1x64x5 (ad,oad: 13.d) |
201 |
|
and isomip (oad: 12.d). |
202 |
|
o pkg/generic_advdiff: |
203 |
|
- stop if doAB_onGtGs is set to FALSE but ignored |
204 |
|
- refine warning related to stability of tracer time-stepping |
205 |
|
regarding internal wave dynamics. |
206 |
|
- setting of AdamsBashforth_T,S when doAB_onGtGs=F: remove condition |
207 |
|
on staggerTimeStep & implicitIntGravWave (will now get a warning |
208 |
|
if potentially unstable). |
209 |
|
o pkg/kl10: |
210 |
|
- add new pkg "kl10" for mixing due to internal wave breaking, from |
211 |
|
http://www.sciencedirect.com/science/article/pii/S1463500310000144 |
212 |
|
(contribution from Jody Klymak), tested in verification experiment |
213 |
|
verification/internal_wave/input.kl10/ |
214 |
|
o isomip experiment: |
215 |
|
- test pkg/shelfice with Non-Lin Free-Surf in one of the FWD set-up |
216 |
|
(input.htd) and update the output. |
217 |
|
o cd_code experiments: |
218 |
|
- use default cd_code options (#undef CD_CODE_NO_AB_MOMENTUM & |
219 |
|
#undef CD_CODE_NO_AB_CORIOLIS) in experiments: cfc_example (fwd) |
220 |
|
global_ocean.90x40x15 (ad & oad) and OpenAD (ad & oad) and |
221 |
|
update the corresponding output. |
222 |
|
o pkg/seaice: |
223 |
|
- reduce the number of include files and store directives in |
224 |
|
S/R seaice_lsr_tridiagu/v |
225 |
|
- change the order of loops in one case in S/R seaice_lsr_tridiagv |
226 |
|
(only for SEAICE_VECTORIZE_LSR_ZEBRA defined), which allows me to |
227 |
|
get rid off one store directive (a TAF bug?) |
228 |
|
- add one more instance of ifdef SEAICE_VECTORIZE_LSR_ZEBRA in |
229 |
|
S/R seaice_lsr_tridiagv to change the loop range for consistency |
230 |
|
- remove ilcall, m from parameter list of S/R seaice_lsr_tridiagu/v |
231 |
|
- fix a bug that affects the JFNK solver: replace sNx/y by i/jMax in |
232 |
|
S/R seaice_lsr_tridiagu/v (requires update of |
233 |
|
offline_exf_seaice/input.dyn_jfnk) |
234 |
|
|
235 |
|
checkpoint65a (2014/07/27) |
236 |
|
o model/src: |
237 |
|
- Non-Lin Free-Surf in p/z coords: allows hFacW,S to be larger than |
238 |
|
surrounding hFacC=1 @ edge of a step with different kSurfC on either side |
239 |
|
(topo in p-coords, ice-shelf in z-coords); update output of experiments |
240 |
|
tutorial_global_oce_in_p and isomip (both AD and OpenAD output). |
241 |
|
o model/src: |
242 |
|
- collect momentum forcing tendency into local 2-D array (passed as argument |
243 |
|
to apply_forcing S/R); this simplifies mom. Forcing diagnostics and CD_CODE |
244 |
|
parts in timestep.F (without CD_CODE_NO_AB_MOMENTUM defined = the default); |
245 |
|
affects results at machine truncation level (e.g., if using OBCS_SPONGE). |
246 |
|
- collect T & S forcing tendency into local 2-D array (passed as argument to |
247 |
|
apply_forcing S/R); add 3-D diagnostics for temp & salt forcing tendency. |
248 |
|
affects results at machine truncation level (e.g., ocean: if using |
249 |
|
SHORTWAVE_HEATING ; atmos: if using FrictionHeating or (atm_Rq<>0) moist |
250 |
|
correction due to vertical advection). |
251 |
|
- update output of experiments: fizhi-cs-32x32x40 (13 digits), |
252 |
|
global_ocean.cs32x15 (fwd: icedyn, seaice, thsice, all 3 @ 11d; adm & tml: |
253 |
|
seaice_dynmix & thsice, fwd grd @ 3 & 8), hs94.1x64x5 (ad grd @ 13), |
254 |
|
obcs_ctrl (ad & fwd grd @ 12 & 7). |
255 |
|
o pkg/ptracers & diagnostics: |
256 |
|
- use ptracers (short) name (instead of long one) to make ptracers diagnostics |
257 |
|
title (to avoid some unexpected truncation); sort out ptracers diags units. |
258 |
|
- collect ptracer forcing tendency into local 2-D array (passed as argument |
259 |
|
to apply_forcing S/R); add 3-D diagnostics for ptracers forcing tendency. |
260 |
|
|
261 |
|
checkpoint65 (2014/07/18) |
262 |
|
o pkg/fizhi: |
263 |
|
- add parenthesis around fizhi tendencies in fizhi_tendency_apply.F: this |
264 |
|
affects results at machine truncation level. Update output of experiments |
265 |
|
fizhi-cs-32x32x40 (12 digits for cg2d) & fizhi-cs-aqualev20 (13 digits). |
266 |
|
o pkg/seaice: more clean up |
267 |
|
- rename TAF common block tapes to be more consistent and remove |
268 |
|
unnecessary duplicates |
269 |
|
- add store directives to remove more recomputations, but use smaller |
270 |
|
tapes (and adjust keys) when SEAICE_LSR_ADJOINT_ITER is undefined. |
271 |
|
The idea behind this flag is to reduce the memory footprint when the |
272 |
|
adjoint of the LSR is not required. As of now, defining the flag |
273 |
|
SEAICE_LSR_ADJOINT_ITER increases 4 common block tapes for 2D field by |
274 |
|
a factor of SOLV_MAX_FIXED (=500 by default in SEAICE_SIZE.h). |
275 |
|
For experiment offline_exf_seaice, this means on a linux box with gfortran |
276 |
|
nearly a factor of 10 (but keep in mind there is mostly seaice code in |
277 |
|
this experiment): |
278 |
|
> size mitgcmuv_ad |
279 |
|
text data bss dec hex |
280 |
|
5100659 1216 220458952 225560827 d71c8fb |
281 |
|
5339425 1200 1868783272 1874123897 6fb4dc79 (SEAICE_LSR_ADJOINT_ITER) |
282 |
|
but only a moderate increase of 36% for global_ocean.cs32x15: |
283 |
|
text data bss dec hex |
284 |
|
6695027 1648 1014578664 1021275339 3cdf6ccb |
285 |
|
6695203 1648 1382505320 1389202171 52cd8afb (SEAICE_LSR_ADJOINT_ITER) |
286 |
|
- note: there are still recomputations in global_ocean.cs32x15 and |
287 |
|
offline_exf_seaice and the gradient agreement changes (gets a |
288 |
|
little worse) for global_ocean.cs32x15 (-> update output_adm.seaice.txt) |
289 |
|
- in general, the AD gradients still are wrong |
290 |
|
o OpenAD |
291 |
|
- clean up code_oad/ directories somewhat by moving files |
292 |
|
dontCompile, dontTransform, keepOriginal to OAD_support/ |
293 |
|
o model/src: |
294 |
|
- using MOM fluxform and Non-Lin Free-Surf with momDissip_In_AB=F |
295 |
|
(not currently tested): add dissipation terms before NLFS rescaling of |
296 |
|
tendencies (previously done after). |
297 |
|
o pkg/diagnostics: |
298 |
|
- write stats-diags in ascii file with more digits (same as in monitor). |
299 |
|
o pkg/down_slope: |
300 |
|
- drop the bi,bj dimension of argument recip_hFac in S/R DWNSLP_APPLY; with |
301 |
|
NLFS (not tested), use new recip_hFac value in order to conserve tracer. |
302 |
|
o model/src: |
303 |
|
- new file "apply_forcing.F" containing all the code previously in |
304 |
|
external_forcing.F, but with new argument list: pass, as new argument, |
305 |
|
the current level tendency array to update (instead of a direct update |
306 |
|
of the common bloc array). Change the corresponding calls. |
307 |
|
- add CPP option USE_OLD_EXTERNAL_FORCING (default is undef) to use |
308 |
|
EXTERNAL_FORCING_U,V,T,S subroutines (for backward compatibility). |
309 |
|
o pkg/seaice/seaice_lsr, a little bit of clean up |
310 |
|
- rearrange some code blocks, so that now all calculations for |
311 |
|
setting up the right-hand-sides done within one single block |
312 |
|
(I find that easier to read and understand) |
313 |
|
- rearrange freedrift-code to reduce the number of ifdefs |
314 |
|
- adjust some indentations and comments |
315 |
|
|
316 |
|
checkpoint64z (2014/07/10) |
317 |
|
o model/src and several pkgs: |
318 |
|
- change argument list of all S/R called from external_forcing.F and |
319 |
|
called from ptracers_forcing.F (renamed to ptracers_apply_forcing.F) |
320 |
|
to pass, as argument, the current level tendency array to update |
321 |
|
(instead of a direct update of the common bloc array). |
322 |
|
- change also (in the same way) argument list of PTRACERS_APPLY_FORCING; |
323 |
|
- rename taueddy_external_forcing.f to taueddy_tendency_apply.F |
324 |
|
o pkg/seaice/seaice_lsr.F |
325 |
|
- always initialize local arrays in seaice_lsr_tridiagu/v |
326 |
|
- add more local tapes to seaice_lsr_tridiagu/v |
327 |
|
- move storing u/vice(:,:,bi,bj) out of seaice_lsr_tridiagu/v, but |
328 |
|
keep it in bi/bj loop; this seems to be essential |
329 |
|
- gradients are still wrong but only by 4-7 orders of magnitude |
330 |
|
instead of 15 orders of magnitude, lab_sea improves a little |
331 |
|
o pkg/seaice |
332 |
|
- (pkg/autodiff) remove storing/restoring of seaiceMaskU/V that |
333 |
|
generates unnecessary code in seaice_lsr_ad |
334 |
|
- add more store directives in seaice_lsr to avoid unnecessary code |
335 |
|
in seaice_lsr_ad |
336 |
|
- exclude some residual computations in seaice_lsr when |
337 |
|
ALLOW_AUTODIFF_TAMC is defined in order to avoid unnecessary code |
338 |
|
in seaice_lsr_ad |
339 |
|
- add more storing, a new tape (model/src/the_main_loop.F) and |
340 |
|
another key for SEAICE_LSR_VECTORIZE_ZEBRA (the local keys ilockey |
341 |
|
and klockey should be checked by a specialist) |
342 |
|
- modify ( define SEAICE_VECTORIZE_LSR and SEAICE_LSR_ADJOINT_ITER ) |
343 |
|
and update lab_sea after previous changes in pkg/seaice below |
344 |
|
o pkg/autodiff: |
345 |
|
- introduce useSmoothCorrel2DinAdMode, SEAICEapproxLevInAd, and |
346 |
|
viscFacInAd : run time parameters allowing for adjoint switches |
347 |
|
note : logic for useSmoothCorrel2DinAdMode is in ctrl_readparms.F |
348 |
|
o pkg/ecco: |
349 |
|
- introduce cost_gencost_boxmean.F that computes a box mean |
350 |
|
temperature (for use in adjoint sensitivity studies). |
351 |
|
o model/src/set_defaults.F : initialize viscFacAdj to 1. |
352 |
|
o pkg/mom_common/mom_calc_visc.F: |
353 |
|
- ifdef ALLOW_AUTODIFF then include viscFacAdj factor. |
354 |
|
o pkg/seaice/seaice_summary.F: |
355 |
|
- statement for SEAICEadjMODE now in autodiff_readparms.F |
356 |
|
o pkg/seaice: |
357 |
|
- remove some store directives and add new ones in an effort to get |
358 |
|
finally rid off the recomputation warnings. This is successful |
359 |
|
when SEAICE_VECTORIZE_LSR ***and*** SEAICE_LSR_ADJOINT_ITER are |
360 |
|
defined (i.e. no extensive recomputation warnings left), but there |
361 |
|
are still too many recomputations on the solver iteration level |
362 |
|
- define SEAICE_VECTORISZE_LSR in offline_exf_seaice/code_ad/SEAICE_OPTIONS.h |
363 |
|
- move definition of MPSEUDOTIMESTEPS into TAMC-block in |
364 |
|
SEAICE_SIZE.h |
365 |
|
- add a store directive in S/R seaice_calc_viscosities |
366 |
|
o pkg/seaice (ITD code): |
367 |
|
- fix definition of Hlimit for multi-threaded case |
368 |
|
- use double precision arithmetic to compute Hlimit: this affects results; |
369 |
|
update output of experiment seaice_itd. |
370 |
|
o replace content of verification/seaice_itd |
371 |
|
- instead of a 1D column use the configuration of offline_exf_seaice |
372 |
|
to test the ice thickness distribution code with ridging |
373 |
|
- this is a first shot at this experiment |
374 |
|
- change of some defaults of ridging parameters SEAICEhStar (from |
375 |
|
100 to 25) and SEAICEmuRidging (from 5 to 3) in seaice_readparms.F |
376 |
|
and lot of new comments. |
377 |
|
|
378 |
|
checkpoint64y (2014/06/20) |
379 |
|
o pkg/seaice/seaice_reg_ridge.F: |
380 |
|
- modify the regularization of very small volumes of ice; only check |
381 |
|
total volume HEFF, and do not apply correction to individual ice |
382 |
|
classes because that leads to funny patterns in the heat and fw-fluxes |
383 |
|
into the ocean. Adjust seaice_itd/results/output.txt |
384 |
|
- replace nITD by SEAICE_multDim in loop-ranges |
385 |
|
o pkg/exf: |
386 |
|
- add code to process the case field period = -12. with UV interpolation. |
387 |
|
- move debug print (formerly active when exf_verbose=T) from EXF_getFFieldRec |
388 |
|
into S/R that calls it (i.e., exf_set_gen.F, exf_set_uv.F & obcs_exf_load.F) |
389 |
|
o verification/global_with_exf: |
390 |
|
- switch all fields period to -12. (was previously untested) in input/data.exf |
391 |
|
(but keep secondary test ".yearly" unchanged); update the reference output. |
392 |
|
o pkg/cal: |
393 |
|
- new calendar type "noLeapYear" for 365 days calendar without any leap year. |
394 |
|
o pkg/exf: |
395 |
|
- new integer parameter "exf_debugLev" (default set to main model debugLevel) |
396 |
|
to replace logical switch "exf_verbose" |
397 |
|
- report in STDOUT when loading a new record (if exf_debugLev >= 3) |
398 |
|
o pkg/sbo: |
399 |
|
- update from Katherine Quinn: evaluate mass directly from density and SSH |
400 |
|
(budget using Finite Volume method) instead of from bottom pressure. |
401 |
|
- allow testreport to collect few selected SBO output ; tested in exp. |
402 |
|
global_ocean.90x40x15 (after updating the results, to include SBO output). |
403 |
|
- fix some multi-threading issues (in output part). |
404 |
|
o model/src & most packages: |
405 |
|
- always call {PKG}_READPARMS even if corresponding use{PKG}=F; |
406 |
|
- in {PKG}_READPARMS, in case use{PKG}=F: add a call to new S/R |
407 |
|
PACKAGES_UNUSED_MSG to print a weak warning when parameter file |
408 |
|
"data.{pkg}" exist ; and leave the S/R (return) just after. |
409 |
|
- more standard LAND pkg interface (land_init_fixed.F, land_check.F). |
410 |
|
+ call LAND_READPARMS from packages_readparms.F |
411 |
|
o pkg/seaice: |
412 |
|
- remove code that resets useThSice in S/R seaice_readparms and |
413 |
|
replace it by a warning in S/R seaice_check |
414 |
|
- remove parameter MULTDIM, replace with nITD and runtime |
415 |
|
parameter SEAICE_multDim (still hard-wired to nITD if |
416 |
|
SEAICE_ITD is defined) |
417 |
|
|
418 |
|
checkpoint64x (2014/05/24) |
419 |
|
o verification/lab_sea: |
420 |
|
- update adjoint and TLM output following changes to pkg/salt_plume |
421 |
|
- un-do the update after putting back local recip_Cp in few places. |
422 |
|
o pkg/salt_plume: modifications by An Nguyen: |
423 |
|
- add capability to do brine rejection (salt-plume) as function of |
424 |
|
volume+tracers (instead of only salinity tracer). |
425 |
|
- conserve volume by exchanging volume from each kLev to above to |
426 |
|
accommodate in-coming brine volume |
427 |
|
- store surface and klev exchanged fraction + volume in 4 new 3-d arrays |
428 |
|
- switch KPP surf buoyancy due to brine forcing to 3-d |
429 |
|
(3 more 3-d arrays, 2 for SPforcing[T,S], 1 for boplume) |
430 |
|
- add salt_plume_volfrac, salt_plume_apply, salt_plume_tendency_apply_t |
431 |
|
- unrelatedly, also add ad-hoc capability to vary salt_plume scheme |
432 |
|
in East/West Arctic. |
433 |
|
o pkg/sbo: |
434 |
|
- incorporate modifications from Katherine Quinn to enable the use of sbo |
435 |
|
pkg in ECCO-v4 set-up ; remove SBO-TimeAve output ; add monitor-like |
436 |
|
output for future testreport verification (unfinished). |
437 |
|
o pkg/atm_phys: |
438 |
|
- change diagnostics (AtPh_Trf & AtPh_Qrf) of DARGAN_BETTSMILLER S/R: |
439 |
|
skip the reseting of t_ref & q_ref to initial t & q ; this preserve the |
440 |
|
output of S/R CAPECALCNEW (Parcel temp & q) for diagnostics. |
441 |
|
o pkg/seaice |
442 |
|
seaice_calc_ice_strength.F: modify expression to avoid divisions |
443 |
|
(affects truncation) |
444 |
|
seaice_do_ridging.F: clean up the insectarium |
445 |
|
- fix a bug that was compensated by areaScaling (-> remove areaScaling code) |
446 |
|
- added SEAICEsnowFracRidge to redistributed snow (2nd bug) |
447 |
|
- set closing/openingRate to zero where no extra iteration is need (3rd bug) |
448 |
|
- add some debugging information and error messages (warnings) |
449 |
|
o model/src: modifications relatd to atmosphere p*: |
450 |
|
- Switch to more accurate p* coordinate slope term (calc_grad_phi_hyd.F) |
451 |
|
- With p* or Sigma-P, use constant reference Pot.Temp (thetaConst) instead |
452 |
|
of vertical profile tRef in geopotential background and anomaly. |
453 |
|
- Acount for true p* correction in theta <-> T conversion in pkg/aim_v23 |
454 |
|
and pkg/atm_phys. |
455 |
|
- Update FWD output of experiments: aim.5l_cs (x2), fizhi-cs-32x32x40, |
456 |
|
fizhi-cs-aqualev20, fizhi-gridalt-hs, tutorial_held_suarez_cs, cpl_aim+ocn. |
457 |
|
o pkg/seaice: fix a bug in seaice_prepare_ridging.F, forgot a sqrt |
458 |
|
o pkg/ptracers: compute ptracer source/sink due to linear free surface. |
459 |
|
not used right now, but can be used in BGC packages to fix conservation. |
460 |
|
o pkg/dic, pkg/gchem: move tracer_meanarea to gchem, so it can be used by |
461 |
|
other packages too. |
462 |
|
o pkg/seaice/seaice_calc_ice_strength.F: replace SEAICE_rhoSnow by |
463 |
|
SEAICE_rhoIce in the Rothrock (1975)-type strength calculations (bug fix) |
464 |
|
o model/src: |
465 |
|
- since we have several heat capacity (even in model/src), define "recip_Cp" |
466 |
|
as local variable (no longer in common block) to avoid any confusion. |
467 |
|
- add thetaConst in PARAMS.h (to be used with pStar or sigma-P coords). |
468 |
|
o pkg/exf: |
469 |
|
- from Jeff Scott: add option (#define EXF_CALC_ATMRHO) to calculate local |
470 |
|
air density as function of air Temp, Humidity and atm pressure. |
471 |
|
|
472 |
|
checkpoint64w (2014/05/02) |
473 |
|
o verification: |
474 |
|
- update output_adm.txt files for experiment global_ocean.cs32x15 (seaice & |
475 |
|
seaice_dynmix) and lab_sea (primary test & noseaicedyn): moving/changing |
476 |
|
code from seaice_growth.F & seaice_advdiff.F to new ridging routines |
477 |
|
seaice_reg_ridge.F seaice_do_ridging.F affects AD gradient |
478 |
|
(down to 8-7 matching digits for global_ocean and 5-6 for lab_sea). |
479 |
|
o model/src: for atmosphere in p* coords: |
480 |
|
- store factor rStarFacC**atm_kappa (= pStarFacK) in common block |
481 |
|
- implement more accurate p* coordinate slope term (in calc_grad_phi_hyd.F), |
482 |
|
but not yet activated. |
483 |
|
o pkg/seaice: fix restart problem for ITD with new ice strength parameterisation: |
484 |
|
- move computation of opnWtrFrac = 1-AREA to before computing ice strength |
485 |
|
- this changes the results (but not for any verification experiment, because |
486 |
|
none tests this), but avoids having an extra field in the restart files |
487 |
|
o pkg/seaice: remove global variable TICE (not needed) |
488 |
|
- replace by TICES or local variable where necessary (cost_seaice_test, |
489 |
|
seaice_diagnostics_state) |
490 |
|
- move copying TICE to TICES from seaice_check_pickup to seaice_read_pickup |
491 |
|
- use specific read/write routines for reading and writing individual leves |
492 |
|
of a multilevel field |
493 |
|
o pkg/ctrl & model/inc: |
494 |
|
- move additional anomaly fields of control vars (related to options: |
495 |
|
ALLOW_KAPGM_CONTROL, ALLOW_KAPREDI_CONTROL and ALLOW_BOTTOMDRAG_CONTROL) |
496 |
|
from DYNVARS.h into new header file: CTRL_FIELDS.h |
497 |
|
o pkg/seaice: some small modifications to the ridging code |
498 |
|
- make fw2ObyRidge a global variable and add the freshwater flux to |
499 |
|
seaice_growth |
500 |
|
- pass actual thickness from seaice_prepare_ridging, so that it is |
501 |
|
computed only in one place and compute it in the same way as in |
502 |
|
seaice_growth |
503 |
|
- initialise more fields in seaice_do_ridging that where cause floating |
504 |
|
point exceptions over land |
505 |
o pkg/seaice: preparations for ridging code and first real ridging code |
o pkg/seaice: preparations for ridging code and first real ridging code |
506 |
- move most of "PART 1" of S/R seaice_growth into a new and separate |
- move most of "PART 1" of S/R seaice_growth into a new and separate |
507 |
S/R seaice_reg_ridge that will both regularize the state variable after |
S/R seaice_reg_ridge that will both regularize the state variable after |
508 |
advection call the actual ridging routine; |
advection call the actual ridging routine; |
509 |
- requires to make 5 fields global fields: d_HEFFbyNEG,d_HSNWbyNEG, |
- requires to make 5 fields global fields: d_HEFFbyNEG,d_HSNWbyNEG, |
510 |
d_AREAbyRLX,d_HEFFbyRLX,saltFluxAdjust; |
d_AREAbyRLX,d_HEFFbyRLX,saltFluxAdjust; |
511 |
- remove ridging code from seaice_advdiff |
- remove ridging code from seaice_advdiff |
512 |
- clean up remaining part 1 of seaice_growth in an attempt to make it |
- clean up remaining part 1 of seaice_growth in an attempt to make it |
513 |
more readable (this is probably subjective) |
more readable (this is probably subjective) |
514 |
- call seaice_itd_redist once in the initialisation phase to have the initial |
- call seaice_itd_redist once in the initialisation phase to have the initial |
515 |
conditions in the correct category |
conditions in the correct category |