4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/ecco: increase modularity and improve logic |
8 |
|
- ecco_toolbox.F (new) : basic operations that are often used |
9 |
|
(for now, ecco_toolbox.F simply contains function ecco_zero). |
10 |
|
- cost_gencal.F (new) : determine filnames and records. |
11 |
|
- cost_gendif.F (new) : compute masked model-data difference. |
12 |
|
- cost_genread.F : use ecco_zero to initialize field to 0s. |
13 |
|
- cost_generic.F : use spzeroloc rather than hard-coded -9999, |
14 |
|
and exploit the above functions leading to more compact code. |
15 |
|
- ecco_check.F, ecco_readparms.F : bring logic up to date (using_tpj, |
16 |
|
using_ers, using_gfo, using_mdt is now only defined within gencost) |
17 |
|
o pkg/ecco: extend generic cost capabilities |
18 |
|
- pkg/ecco : added 3D gencost (ALLOW_GENCOST3D), added gencost |
19 |
|
capabilities via gencost_preproc (+ _c,_i,_r related params), |
20 |
|
gencost_posproc (+ _c,_i,_r related params), gencost_nrecperiod, |
21 |
|
gencost_outputlevel arguments to cost_generic |
22 |
|
- pkg/ecco/cost_genread.F (new) : interface between cost_generic |
23 |
|
and active_read, making room for gencost_preproc to take effect. |
24 |
|
Added preproc code ('climmon') to replace GENERIC_BAR_MONTH. |
25 |
|
- pkg/ecco/cost_generic.F : |
26 |
|
compute and store misfit maks*(model-data) in localdif that is |
27 |
|
then used in cost and for output, output misfit if outlev.GT.0 |
28 |
|
- pkg/ecco/cost_averagesfields.F : depend on gencost_barskip |
29 |
|
rather gencost_barfile for deciding whether to write barfile |
30 |
|
- pkg/ecco/ecco_cost_driver.F : extract call to cost_profiles from cost_hyd |
31 |
|
- pkg/ecco/ecco_cost_init_fixed.F : extract gencost weights from |
32 |
|
ecco_cost_weights, re-activate ecco_summary, determine gencost_barskip |
33 |
|
- pkg/ecco/ecco_summary.F : report gencost variables |
34 |
|
- pkg/ecco/cost_gencost_customize.F : treat case of scatterometer costs |
35 |
|
o pkg/sea/SEAICE_OPTIONS.h : add ALLOW_COST_ICE, ALLOW_SEAICE_COST_SMR_AREA |
36 |
|
o pkg/ecco: internal re-organization |
37 |
|
- resolve un-necessary dependancies within pkg/ecco and to pkg/ctrl |
38 |
|
(rm includes of optim.h and ctrl.h, replace optimcycle with eccoiter, |
39 |
|
mv relevant variables definition from ecco_cost.h to ecco.h, |
40 |
|
make sure gencost routines only include ecco.h) |
41 |
|
- throughout : add missing CCP switches, rm unused variables, |
42 |
|
and rm un-necessary CPP switches |
43 |
|
- throughout gencost routines : replace modelstartdate with |
44 |
|
gencost_startdate when needed |
45 |
|
- cost_bp_read.F : use arguments, instead of common blocs |
46 |
|
so that it can be used also by (new) cost_gencost_bpv4.F |
47 |
|
- ecco_init_varia.F : initialize RHOsumGlob_0, VOLsumGlob_0 |
48 |
|
- ecco_phys.F : compute etanFull |
49 |
|
- ecco_readparms.F : rename using_topex as using_tpj, add |
50 |
|
bpv4-grace to gencost list, initialize added parameters |
51 |
|
- ecco_summary.F : include SIZE.h needed for augmented ecco.h |
52 |
|
|
53 |
|
checkpoint65e (2014/09/28) |
54 |
|
o pkg/obcs: |
55 |
|
- replaced the just-added CPP options with run-time variables |
56 |
|
(see pkg/obcs/OBCS_PARAMS.h for details) |
57 |
|
o pkg/obcs: |
58 |
|
- add additional CPP options for sponge boundary layers |
59 |
|
(see pkg/obcs/OBCS_OPTIONS.h for details) |
60 |
|
o pkg/atm_phys: |
61 |
|
- implement simple (obliquity only, assuming circular planet orbit) |
62 |
|
seasonal cycle for incoming insolation ; used when run-time parameter |
63 |
|
"select_incSW" is set to 1 ; by default (=0), uses old unchanged formula. |
64 |
|
o pkg/exf, pkg/ecco, pkg/ctrl: |
65 |
|
- add ctrlUseGen and .NOT.ctrlUseGen exclusive brackets |
66 |
|
- activate gentim2d for xx_atemp,xx_aqh,xx_swdown,xx_lwdown,xx_precip |
67 |
|
- implement gentim2d for xx_tauu, xx_tauv |
68 |
|
o pkg/ctrl, pkg/ecco : |
69 |
|
- fix and complement the generic controls implementation |
70 |
|
o pkg/exf/exf_getclim.F, exf_getffields.F, exf_getsurfacefluxes.F, |
71 |
|
pkg/shelfice/shelfice_thermodynamics.F, |
72 |
|
verification/hs94.1x64x5/code_ad/ctrl_map_gentim2d.F, |
73 |
|
verification/hs94.1x64x5/code_oad/ctrl_map_gentim2d.F : |
74 |
|
- add weight in CTRL_GET_GEN calls |
75 |
|
o pkg/ctrl : |
76 |
|
- ctrl_get_gen.F : add weight as input parameter, and apply |
77 |
|
it directly rather than using smooth_correl2Dw (to be retired). |
78 |
|
- ctrl_map_gentim2d.F : add wgentim2d in CTRL_GET_GEN call |
79 |
|
o pkg/ctrl : |
80 |
|
- introduce run time switch ctrlUseGen (in ctrl.h, ctrl_check.F, |
81 |
|
ctrl_init_variables.F, ctrl_readparms.F, ctrl_summary.F) |
82 |
|
- re-activate ctrl_summary (call in ctrl_init.F) |
83 |
|
o pkg/ctrl/ctrl_cost_gen.F : |
84 |
|
- fix CCP brackets, remove un-necessary myiter, mytime |
85 |
|
o pkg/ecco, pkg/ctrl : |
86 |
|
- remove cost_genctrl.F (now pkg/ctrl/ctrl_cost_driver.F) |
87 |
|
- remove cost_forcing_gen.F (now pkg/ctrl/ctrl_cost_gen2d.F) |
88 |
|
- add ctrl_cost_driver.F (replaces pkg/ecco/cost_genctrl.F) |
89 |
|
- add ctrl_cost_gen2d.F (replaces pkg/ecco/cost_forcing_gen.F) |
90 |
|
|
91 |
|
checkpoint65d (2014/09/15) |
92 |
|
o pkg/ctrl/CTRL_GENARR.h, ctrl_readparms.F : |
93 |
|
- add xx_genarr2d_bounds,xx_genarr3d_bounds, |
94 |
|
xx_genarr2d_numsmooth, xx_genarr3d_numsmooth |
95 |
|
o pkg/ctrl/ctrl_map_ini_genarr.F : |
96 |
|
- remove compilation failure |
97 |
|
- replace hard coded example |
98 |
|
- use ctrl_map_ini_gen2D, 3D |
99 |
|
o pkg/ctrl/ctrl_pack.F, ctrl_unpack.F : |
100 |
|
- on/off switch based upon xx_genarr2d_weight,3d |
101 |
|
o src/packages_init_variables.F : |
102 |
|
- regroup pkg/estimation calls |
103 |
|
- remove CTRL_MAP_INI, CTRL_MAP_INI_ECCO |
104 |
|
(moved to ctrl_init_variables) |
105 |
|
o cost/cost_init_varia.F : |
106 |
|
- remove ecco_cost_init_varia |
107 |
|
(moved to ecco_init_varia) |
108 |
|
o ctrl/ctrl_init_variables.F : |
109 |
|
- add CTRL_MAP_INI, CTRL_MAP_INI_ECCO |
110 |
|
- add CTRL_MAP_INI_GENARR, SEAICE_CTRL_MAP_INI |
111 |
|
o ctrl/ctrl_map_ini.F : |
112 |
|
- remove ctrl_map_ini_genarr, seaice_ctrl_map_ini |
113 |
|
(moved to ctrl_init_variables) |
114 |
|
o ctrl/ctrl_map_ini_ecco.F : |
115 |
|
- remove ECCO_PHYS (mv to ecco_init_varia) |
116 |
|
- remove seaice_ctrl_map_ini (mv to ctrl_init_variables) |
117 |
|
o ecco/ecco_ad_diff.list : |
118 |
|
- add ecco_init_varia.f |
119 |
|
o ecco/ecco_init_varia.F |
120 |
|
- new routine |
121 |
|
o pkg/streamice: |
122 |
|
- move call to STREAMICE_INITIALIZE_PETSC from the_model_main.F |
123 |
|
to streamice_init_fixed.F ; fix setting of STREAMICEisOn. |
124 |
|
- from model/src, only call pkg/streamice routines if useStreamIce is TRUE. |
125 |
|
o pkg/generic_advdiff: |
126 |
|
- fix bug causing negatives in GAD_SMOLARKIEWICZ_HACK, introduced 8/8/2014. |
127 |
|
o pkg/exf: |
128 |
|
- exf_getffields.F : add xxg_atemp, xxg_aqh, xxg_swdown, xxg_lwdown, |
129 |
|
xxg_precip capability |
130 |
|
- exf_wind.F : no need for ALLOW_WSPEED_CONTROL cpp switch |
131 |
|
o pkg/ctrl: |
132 |
|
- ctrl_pack.F, ctrl_unpack.F : omit (un)packing of undefined xx_gentim2d |
133 |
|
o model/src/load_fields_driver.F : |
134 |
|
- move call to CTRL_MAP_GENTIM2D ahead of BULKF_FIELDS_LOAD, EXF_GETFORCING |
135 |
|
so xx_gentim2d can be applied to e.g. exf fields in a timely manner. |
136 |
|
o OpenAD verification experiments: |
137 |
|
- Include explicitly AUTODIFF_OPTIONS.h, COST_OPTIONS.h, and CTRL_OPTIONS.h |
138 |
|
in src files (to enable to skip the ECCO_CPPOPTIONS.h); |
139 |
|
for now, only in pkgs used in OpenAD verification experiments. |
140 |
|
- Change all except one (halfpipe_streamice) OpenAD experiments to use pkg |
141 |
|
specific option file (AUTODIFF_OPTIONS.h, COST_OPTIONS.h & CTRL_OPTIONS.h) |
142 |
|
instead of using ECCO_CPPOPTIONS.h (with all relevant options in it). |
143 |
|
This applies to both TAF (*/code_ad/) and OpenAD (*/code_oad/) tests. |
144 |
|
o OpenAD verification tests: |
145 |
|
- finish removing ALLOW_AUTODIFF_OPENAD (replaced by ALLOW_OPENAD); |
146 |
|
- finish replacing ALLOW_AUTODIFF_TAMC by ALLOW_AUTODIFF (except for |
147 |
|
tape/storage which are specific to TAF/TAMC) in pkgs used in OpenAD exp. |
148 |
|
- leave ALLOW_AUTODIFF_TAMC undef in OpenAD verification tests (*/code_oad/) |
149 |
|
and remove local copy of "tamc.h" (needed only if ALLOW_AUTODIFF_TAMC). |
150 |
|
o model/src & generic_advdiff: |
151 |
|
- change hard-coded loop-range in S/R APPLY_FORCING_T/S to set T & S |
152 |
|
forcing over 0:sNx+1, 0:sNy=1 (instead of just 1:sNx,1:sNy): Model |
153 |
|
dynamics requires valid tracer forcing only over tile interior but, for |
154 |
|
some diagnostics, may need to extend it over 1 point in tile halo region. |
155 |
|
- in gad_calc_rhs.F, update calls to gmredi_x/ytransport to get valid |
156 |
|
tendency over i,j_Min,Max range. This allows to simplfy i,j_Min,Max |
157 |
|
setting in temp/salt/ptracer_integrate.F |
158 |
|
o pkg/dic: |
159 |
|
- multiply tracer tendencies by maskInC (if ussing OBCS) before updating |
160 |
|
gchem tracers: this allows to skip the 2nd call to OBCS_APPLY_PTRACER |
161 |
|
in gchem_forcing_sep.F |
162 |
|
o pkg/autodiff & obcs: |
163 |
|
- add storage of current OB values for U & V (was already done for T & S). |
164 |
|
|
165 |
|
checkpoint65c (2014/08/30) |
166 |
|
o pkg/dic: |
167 |
|
- take out of dic_atmos.F the initialisation part (corresponding to istate=0) |
168 |
|
and move it to new S/R DIC_INI_ATMOS ; also simplify the dependencies for |
169 |
|
AD compilers (but still a Pb with multi-threading and Ajoint dependencies). |
170 |
|
o verification: |
171 |
|
- new experiment testing OBCS and DIC pkgs, using params & output from |
172 |
|
tutorial_global_oce_biogeo but limited to a sub-domain around Drake |
173 |
|
passage: take OBCS from the last year of a 2 yrs simulation and initial |
174 |
|
conditions from t=1.yr while keeping the same forcing. |
175 |
|
o model/src: |
176 |
|
- when allowFreezing=T, only reset below freezing initial Temp to Tfreezing |
177 |
|
(at any k) if checkIniTemp is not set to FALSE (default checkIniTemp=T). |
178 |
|
o pkg/diagnostics (Stats-Diags): |
179 |
|
- re-write S/R DIAGSTATS_CALC (more similar to TARGET_NEC_SX part) to: |
180 |
|
a) refine region where stats are computed, excluding where arrhFac=0 ; |
181 |
|
b) fix missing interior mask (use with OBCS) in 3-D fields statistics; |
182 |
|
c) extend regional stats over the region edges (for U or V pt location). |
183 |
|
o pkg/gchem: |
184 |
|
- add a (2nd) call to OBCS_APPLY_PTRACER in gchem_forcing_sep.F (needed since |
185 |
|
pkg/dic is currently changing/updating ptracers values beyond the OB). |
186 |
|
o verification (hs94): |
187 |
|
- convert Held & Suarez external_forcing.F (from hs94.cs, with Sigma-coords |
188 |
|
bits) to apply_forcing.F and undef USE_OLD_EXTERNAL_FORCING in experiments |
189 |
|
hs94.cs-32x32x5 and tutorial_held_suarez_cs ; also use the same version of |
190 |
|
apply_forcing.F in 2D hs94 (fwd, ad & oad) but keep LatLon hs94 unchanged. |
191 |
|
o pkg/ptracers: |
192 |
|
- implement Adams-Bashforth on pTracers (instead of on tracer tendency), |
193 |
|
switched on by setting PTRACERS_doAB_onGpTr=F (default set to doAB_onGtGs) |
194 |
|
- change exp4 secondary test (input.nlfs) to test AB on T & S & pTracer |
195 |
|
with AB-2 code (so that it get tested). |
196 |
|
o model/src: |
197 |
|
- allow to apply Adams-Bashforth on Temp & Salt (instead of on gT,gS) |
198 |
|
with AB-2 code (previously only available with AB-3 code). |
199 |
|
Also move the code (call to ADAMS_BASHFORTH S/R) form thermodynamics.F |
200 |
|
to temp/salt_integrate.F (since the 2nd part of gt/sNm1 update is done |
201 |
|
there, by calling CYCLE_AB_TRACER). |
202 |
|
o pkg/generic_advdiff: |
203 |
|
- change Tracer argument (drop bi,bj indices) in S/R GAD_CALC_RHS, |
204 |
|
GAD_C2_ADV_R, GAD_U3_ADV_R, GAD_C4_ADV_R, GAD_DIFF_R, GAD_BIHARM_R |
205 |
|
+ also in GMREDI_X/Y/RTRANSPORT ; and update corresponding calls in |
206 |
|
S/R temp/salt/ptracers_integrate.F |
207 |
|
o model/src & pkg/ptracers: |
208 |
|
- remove common block variables gT,gS (in DYNVARS.h), except when |
209 |
|
USE_OLD_EXTERNAL_FORCING is defined; update TAF storage accordingly. |
210 |
|
- remove common block variable gPtr. |
211 |
|
o model/src & pkgs: |
212 |
|
- change gTracer (and/or tracer) argument (drop bi,bj indices) in S/R |
213 |
|
ADAMS_BASHFORTH(2&3), CYCLE_(AB_)TRACER, FREESURF_RESCALE_G, |
214 |
|
IMPLDIFF, SOLVE_TRIDIAGONAL & _PENTADIAGONAL, GAD_SOM_ADVECT, |
215 |
|
GAD_ADVECTION, GAD_CALC_RHS, GAD_IMPLICIT_R, TIMEAVE_CUMUL_DIF_1T |
216 |
|
+ change accordingly all calling S/R. |
217 |
|
- use local temperature/salinity/ptracer tendency array (without bi,bj) |
218 |
|
in S/R temp/salt/ptracers_integrate.F |
219 |
|
o pkg/seaice: |
220 |
|
- move computation of stress contributions to rhsU/V in s/r seaice_lsr |
221 |
|
to separate s/r seaice_lsr_rhsu/v in order to be able to re-use code |
222 |
|
- make u/vIceC local variables if SEAICE_CGRID is defined only to be used |
223 |
|
in seaice_lsr |
224 |
|
- seaice_lsr.F: make local 4D arrays UXX, VYY, etc 2D |
225 |
|
in s/r seaice_lsr_calc_coeffs |
226 |
|
o pkg/mdsio: |
227 |
|
- in MDS_READ/WRITE_FIELD, stop if file-name (+prefix) is too long |
228 |
|
(e.g., > MAX_LEN_MBUF -90 ) or, in INI_MODEL_IO, if mdsioLocalDir is |
229 |
|
too long (e.g., > MAX_LEN_FNAM/2 ) |
230 |
|
|
231 |
|
checkpoint65b (2014/08/12) |
232 |
|
o pkg/matrix: |
233 |
|
- pass, as argument, updated tracer field to S/R MATRIX_STORE_TENDENCY_EXP |
234 |
|
o model/src: |
235 |
|
- fix initialisation of geothermalFile; compile geothermal-flux code in |
236 |
|
natl_box verification experiment. |
237 |
|
o model/src & pkg/down_slope: |
238 |
|
- push the k loop inside S/R TIMESTEP_TRACER (now called outside the k loop). |
239 |
|
- in dwnslp_apply.F, update tracer tendency instead of the future tracer |
240 |
|
field and call S/R DWNSLP_APPLY before TIMESTEP_TRACER; this affects |
241 |
|
results at machine truncation level: update output of experiments |
242 |
|
global_ocean.90x40x15.dwnslp (FWD) and lab_sea.noseaicedyn (AD). |
243 |
|
o pkg/diagnostics (Stats-Diags): |
244 |
|
- do not cumulate the full volume when DIAGNOSTICS_FILL is |
245 |
|
called with bibjFlg < 0 (no increment of the counter for 2D/3D diag); |
246 |
|
This fix the mean statistics when DIAGNOSTICS_FILL is called multiple |
247 |
|
times (but Min,Max and StD are still wrong). |
248 |
|
o model/src: |
249 |
|
- add geothermal flux forcing: read in ini_forcing.F as time-constant |
250 |
|
field "geothermalFlux" applied in S/R APPLY_FORCING_T (apply_forcing.F) |
251 |
|
o model/src: |
252 |
|
- move CYCLE_TRACER calls from tracers_correction_step.F to temp/salt/ptracer |
253 |
|
_integrate.F so that, when leaving S/R THERMODYANMICS, theta,salt and pTrac |
254 |
|
arrays are already updated while adjustments (filters, conv.adjustment) are |
255 |
|
still applied later, in S/R TRACERS_CORRECTION_STEP. |
256 |
|
o model/src: |
257 |
|
- store in common bloc array "rhoInSitu" the virtual potential temperature |
258 |
|
anomaly that is used to compute geopotential: this make the atmos code |
259 |
|
more similar to ocean code which already uses rhoInSitu in calc_phi_hyd.F |
260 |
|
o pkg/seaice/seaice_lsr.F |
261 |
|
- rename integer variable ilcall to ipass (that's what it is called |
262 |
|
in the residual diagnostics |
263 |
|
- change time stepping for NPSEUDOTIMESTEP > 2 (does not change the |
264 |
|
default) for improved non-linear convergence of the first few steps |
265 |
|
- adjust a few comments and add new ones to explain some of the store |
266 |
|
directives |
267 |
|
o pkg/generic_advdiff (& ptracers): |
268 |
|
- re-work the code to check for valid advection scheme and for minimum |
269 |
|
size of overlap (now stored in local common bloc in gad_advscheme.F) |
270 |
|
o pkg/seaice: another attempt to make the adjoint work for sea ice dynamics |
271 |
|
- re-initialize more variables in seaice_lsr: u/vIceC, u/vIceNm1 |
272 |
|
- add an auxilliary variable "bet" and fix store directives and keys in |
273 |
|
seaice_lsr_tridiagu/v, this seems to do the trick (i.e. more or |
274 |
|
less exact gradients in my tests); but there are still |
275 |
|
recomputation warning (although gradients are sort of OK), when |
276 |
|
SEAICE_LSR_VECTORIZE is not defined, so this flag and |
277 |
|
SEAICE_LSR_VECTORIZE_ZEBRA are recommended for efficiency. |
278 |
|
- update verification experiments lab_sea. |
279 |
|
- change some comments in S/R seaice_calc_viscosities |
280 |
|
o model/src: |
281 |
|
- if staggerTimeStep=T, always apply exchange to velocity field in |
282 |
|
do_stagger_fields_exchanges.F instead of in do_fields_blocking_exchanges.F |
283 |
|
(independent of using multi-dim advection or not); no effect on FWD run |
284 |
|
but affects AD results (at machine truncation level): update output of |
285 |
|
experiment 1D_ocean_ice_column (ad: 12 digits), hs94.1x64x5 (ad,oad: 13.d) |
286 |
|
and isomip (oad: 12.d). |
287 |
|
o pkg/generic_advdiff: |
288 |
|
- stop if doAB_onGtGs is set to FALSE but ignored |
289 |
|
- refine warning related to stability of tracer time-stepping |
290 |
|
regarding internal wave dynamics. |
291 |
|
- setting of AdamsBashforth_T,S when doAB_onGtGs=F: remove condition |
292 |
|
on staggerTimeStep & implicitIntGravWave (will now get a warning |
293 |
|
if potentially unstable). |
294 |
|
o pkg/kl10: |
295 |
|
- add new pkg "kl10" for mixing due to internal wave breaking, from |
296 |
|
http://www.sciencedirect.com/science/article/pii/S1463500310000144 |
297 |
|
(contribution from Jody Klymak), tested in verification experiment |
298 |
|
verification/internal_wave/input.kl10/ |
299 |
|
o isomip experiment: |
300 |
|
- test pkg/shelfice with Non-Lin Free-Surf in one of the FWD set-up |
301 |
|
(input.htd) and update the output. |
302 |
|
o cd_code experiments: |
303 |
|
- use default cd_code options (#undef CD_CODE_NO_AB_MOMENTUM & |
304 |
|
#undef CD_CODE_NO_AB_CORIOLIS) in experiments: cfc_example (fwd) |
305 |
|
global_ocean.90x40x15 (ad & oad) and OpenAD (ad & oad) and |
306 |
|
update the corresponding output. |
307 |
|
o pkg/seaice: |
308 |
|
- reduce the number of include files and store directives in |
309 |
|
S/R seaice_lsr_tridiagu/v |
310 |
|
- change the order of loops in one case in S/R seaice_lsr_tridiagv |
311 |
|
(only for SEAICE_VECTORIZE_LSR_ZEBRA defined), which allows me to |
312 |
|
get rid off one store directive (a TAF bug?) |
313 |
|
- add one more instance of ifdef SEAICE_VECTORIZE_LSR_ZEBRA in |
314 |
|
S/R seaice_lsr_tridiagv to change the loop range for consistency |
315 |
|
- remove ilcall, m from parameter list of S/R seaice_lsr_tridiagu/v |
316 |
|
- fix a bug that affects the JFNK solver: replace sNx/y by i/jMax in |
317 |
|
S/R seaice_lsr_tridiagu/v (requires update of |
318 |
|
offline_exf_seaice/input.dyn_jfnk) |
319 |
|
|
320 |
|
checkpoint65a (2014/07/27) |
321 |
|
o model/src: |
322 |
|
- Non-Lin Free-Surf in p/z coords: allows hFacW,S to be larger than |
323 |
|
surrounding hFacC=1 @ edge of a step with different kSurfC on either side |
324 |
|
(topo in p-coords, ice-shelf in z-coords); update output of experiments |
325 |
|
tutorial_global_oce_in_p and isomip (both AD and OpenAD output). |
326 |
|
o model/src: |
327 |
|
- collect momentum forcing tendency into local 2-D array (passed as argument |
328 |
|
to apply_forcing S/R); this simplifies mom. Forcing diagnostics and CD_CODE |
329 |
|
parts in timestep.F (without CD_CODE_NO_AB_MOMENTUM defined = the default); |
330 |
|
affects results at machine truncation level (e.g., if using OBCS_SPONGE). |
331 |
|
- collect T & S forcing tendency into local 2-D array (passed as argument to |
332 |
|
apply_forcing S/R); add 3-D diagnostics for temp & salt forcing tendency. |
333 |
|
affects results at machine truncation level (e.g., ocean: if using |
334 |
|
SHORTWAVE_HEATING ; atmos: if using FrictionHeating or (atm_Rq<>0) moist |
335 |
|
correction due to vertical advection). |
336 |
|
- update output of experiments: fizhi-cs-32x32x40 (13 digits), |
337 |
|
global_ocean.cs32x15 (fwd: icedyn, seaice, thsice, all 3 @ 11d; adm & tml: |
338 |
|
seaice_dynmix & thsice, fwd grd @ 3 & 8), hs94.1x64x5 (ad grd @ 13), |
339 |
|
obcs_ctrl (ad & fwd grd @ 12 & 7). |
340 |
|
o pkg/ptracers & diagnostics: |
341 |
|
- use ptracers (short) name (instead of long one) to make ptracers diagnostics |
342 |
|
title (to avoid some unexpected truncation); sort out ptracers diags units. |
343 |
|
- collect ptracer forcing tendency into local 2-D array (passed as argument |
344 |
|
to apply_forcing S/R); add 3-D diagnostics for ptracers forcing tendency. |
345 |
|
|
346 |
|
checkpoint65 (2014/07/18) |
347 |
|
o pkg/fizhi: |
348 |
|
- add parenthesis around fizhi tendencies in fizhi_tendency_apply.F: this |
349 |
|
affects results at machine truncation level. Update output of experiments |
350 |
|
fizhi-cs-32x32x40 (12 digits for cg2d) & fizhi-cs-aqualev20 (13 digits). |
351 |
|
o pkg/seaice: more clean up |
352 |
|
- rename TAF common block tapes to be more consistent and remove |
353 |
|
unnecessary duplicates |
354 |
|
- add store directives to remove more recomputations, but use smaller |
355 |
|
tapes (and adjust keys) when SEAICE_LSR_ADJOINT_ITER is undefined. |
356 |
|
The idea behind this flag is to reduce the memory footprint when the |
357 |
|
adjoint of the LSR is not required. As of now, defining the flag |
358 |
|
SEAICE_LSR_ADJOINT_ITER increases 4 common block tapes for 2D field by |
359 |
|
a factor of SOLV_MAX_FIXED (=500 by default in SEAICE_SIZE.h). |
360 |
|
For experiment offline_exf_seaice, this means on a linux box with gfortran |
361 |
|
nearly a factor of 10 (but keep in mind there is mostly seaice code in |
362 |
|
this experiment): |
363 |
|
> size mitgcmuv_ad |
364 |
|
text data bss dec hex |
365 |
|
5100659 1216 220458952 225560827 d71c8fb |
366 |
|
5339425 1200 1868783272 1874123897 6fb4dc79 (SEAICE_LSR_ADJOINT_ITER) |
367 |
|
but only a moderate increase of 36% for global_ocean.cs32x15: |
368 |
|
text data bss dec hex |
369 |
|
6695027 1648 1014578664 1021275339 3cdf6ccb |
370 |
|
6695203 1648 1382505320 1389202171 52cd8afb (SEAICE_LSR_ADJOINT_ITER) |
371 |
|
- note: there are still recomputations in global_ocean.cs32x15 and |
372 |
|
offline_exf_seaice and the gradient agreement changes (gets a |
373 |
|
little worse) for global_ocean.cs32x15 (-> update output_adm.seaice.txt) |
374 |
|
- in general, the AD gradients still are wrong |
375 |
|
o OpenAD |
376 |
|
- clean up code_oad/ directories somewhat by moving files |
377 |
|
dontCompile, dontTransform, keepOriginal to OAD_support/ |
378 |
|
o model/src: |
379 |
|
- using MOM fluxform and Non-Lin Free-Surf with momDissip_In_AB=F |
380 |
|
(not currently tested): add dissipation terms before NLFS rescaling of |
381 |
|
tendencies (previously done after). |
382 |
|
o pkg/diagnostics: |
383 |
|
- write stats-diags in ascii file with more digits (same as in monitor). |
384 |
|
o pkg/down_slope: |
385 |
|
- drop the bi,bj dimension of argument recip_hFac in S/R DWNSLP_APPLY; with |
386 |
|
NLFS (not tested), use new recip_hFac value in order to conserve tracer. |
387 |
|
o model/src: |
388 |
|
- new file "apply_forcing.F" containing all the code previously in |
389 |
|
external_forcing.F, but with new argument list: pass, as new argument, |
390 |
|
the current level tendency array to update (instead of a direct update |
391 |
|
of the common bloc array). Change the corresponding calls. |
392 |
|
- add CPP option USE_OLD_EXTERNAL_FORCING (default is undef) to use |
393 |
|
EXTERNAL_FORCING_U,V,T,S subroutines (for backward compatibility). |
394 |
|
o pkg/seaice/seaice_lsr, a little bit of clean up |
395 |
|
- rearrange some code blocks, so that now all calculations for |
396 |
|
setting up the right-hand-sides done within one single block |
397 |
|
(I find that easier to read and understand) |
398 |
|
- rearrange freedrift-code to reduce the number of ifdefs |
399 |
|
- adjust some indentations and comments |
400 |
|
|
401 |
|
checkpoint64z (2014/07/10) |
402 |
|
o model/src and several pkgs: |
403 |
|
- change argument list of all S/R called from external_forcing.F and |
404 |
|
called from ptracers_forcing.F (renamed to ptracers_apply_forcing.F) |
405 |
|
to pass, as argument, the current level tendency array to update |
406 |
|
(instead of a direct update of the common bloc array). |
407 |
|
- change also (in the same way) argument list of PTRACERS_APPLY_FORCING; |
408 |
|
- rename taueddy_external_forcing.f to taueddy_tendency_apply.F |
409 |
|
o pkg/seaice/seaice_lsr.F |
410 |
|
- always initialize local arrays in seaice_lsr_tridiagu/v |
411 |
|
- add more local tapes to seaice_lsr_tridiagu/v |
412 |
|
- move storing u/vice(:,:,bi,bj) out of seaice_lsr_tridiagu/v, but |
413 |
|
keep it in bi/bj loop; this seems to be essential |
414 |
|
- gradients are still wrong but only by 4-7 orders of magnitude |
415 |
|
instead of 15 orders of magnitude, lab_sea improves a little |
416 |
o pkg/seaice |
o pkg/seaice |
417 |
|
- (pkg/autodiff) remove storing/restoring of seaiceMaskU/V that |
418 |
|
generates unnecessary code in seaice_lsr_ad |
419 |
|
- add more store directives in seaice_lsr to avoid unnecessary code |
420 |
|
in seaice_lsr_ad |
421 |
|
- exclude some residual computations in seaice_lsr when |
422 |
|
ALLOW_AUTODIFF_TAMC is defined in order to avoid unnecessary code |
423 |
|
in seaice_lsr_ad |
424 |
|
- add more storing, a new tape (model/src/the_main_loop.F) and |
425 |
|
another key for SEAICE_LSR_VECTORIZE_ZEBRA (the local keys ilockey |
426 |
|
and klockey should be checked by a specialist) |
427 |
|
- modify ( define SEAICE_VECTORIZE_LSR and SEAICE_LSR_ADJOINT_ITER ) |
428 |
|
and update lab_sea after previous changes in pkg/seaice below |
429 |
|
o pkg/autodiff: |
430 |
|
- introduce useSmoothCorrel2DinAdMode, SEAICEapproxLevInAd, and |
431 |
|
viscFacInAd : run time parameters allowing for adjoint switches |
432 |
|
note : logic for useSmoothCorrel2DinAdMode is in ctrl_readparms.F |
433 |
|
o pkg/ecco: |
434 |
|
- introduce cost_gencost_boxmean.F that computes a box mean |
435 |
|
temperature (for use in adjoint sensitivity studies). |
436 |
|
o model/src/set_defaults.F : initialize viscFacAdj to 1. |
437 |
|
o pkg/mom_common/mom_calc_visc.F: |
438 |
|
- ifdef ALLOW_AUTODIFF then include viscFacAdj factor. |
439 |
|
o pkg/seaice/seaice_summary.F: |
440 |
|
- statement for SEAICEadjMODE now in autodiff_readparms.F |
441 |
|
o pkg/seaice: |
442 |
|
- remove some store directives and add new ones in an effort to get |
443 |
|
finally rid off the recomputation warnings. This is successful |
444 |
|
when SEAICE_VECTORIZE_LSR ***and*** SEAICE_LSR_ADJOINT_ITER are |
445 |
|
defined (i.e. no extensive recomputation warnings left), but there |
446 |
|
are still too many recomputations on the solver iteration level |
447 |
|
- define SEAICE_VECTORISZE_LSR in offline_exf_seaice/code_ad/SEAICE_OPTIONS.h |
448 |
- move definition of MPSEUDOTIMESTEPS into TAMC-block in |
- move definition of MPSEUDOTIMESTEPS into TAMC-block in |
449 |
SEAICE_SIZE.h |
SEAICE_SIZE.h |
450 |
- add a store directive in S/R seaice_calc_viscosities |
- add a store directive in S/R seaice_calc_viscosities |