4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/seaice: replaced maskW with seaiceMaskU and maskS with seaiceMaskV |
8 |
|
in seaice_lsr.F; this solves the pkg/seaice-pkg/obcs problem |
9 |
|
without requiring DO-IF statements |
10 |
|
o pkg/thsice: |
11 |
|
use continuous power-law function for partition of energy between lateral |
12 |
|
melting/freezing and thinning/thickening ; old code using step function |
13 |
|
still available with #undef THSICE_FRACEN_POWERLAW |
14 |
|
update output of exp: aim.5l_cs.thSI, global_ocean.cs32x15.icedyn & .thsice |
15 |
|
o testreport: change AD testing : check against results/output_adm.txt |
16 |
|
using same scripts as for forward test. |
17 |
|
|
18 |
|
checkpoint59g |
19 |
|
o adjoint testing: in preparation for changing testreport: |
20 |
|
- output format: cost and grad written on separated lines |
21 |
|
- ad output results in directory "results" (instead of "results_ad") |
22 |
|
o pkg/seaice: adding ice salinity HSALT as a prognostic variable |
23 |
|
o pkg/seaice: changes for using pkg/seaice with pkg/obcs |
24 |
|
o pkg/ecco: allow user defined cost function contributions |
25 |
|
o testreport: |
26 |
|
Allow to choose (per experiment) the list of tested output variables |
27 |
|
and the main variable (used to issue a pass/FAIL ) ; |
28 |
|
- for now, done by adding the specific list in file: [exp]/input/tr_checklist |
29 |
|
- default is unchanged: >cg2d< , (T,S,U,V,5 tracers)_[min,max,mean,StD] ; |
30 |
|
Also modify printing of summary: |
31 |
|
a) ">" NN "<" indicates the "main" variable (used for pass/FAIL) |
32 |
|
b) echo the list of tested variables in the individual summary.txt of |
33 |
|
each experiment. |
34 |
|
o new S/R GLOBAL_SUM_TILE to compute global sum independently of number of |
35 |
|
threads and number of processes (with #define GLOBAL_SUM_SEND_RECV) |
36 |
|
(but still depend on the tile decompostion of the domain). |
37 |
|
o pkg/seaice: change a discretization detail to make the B-grid code |
38 |
|
"more symmetric". This change is likely to remove all "ridges/leads" that |
39 |
|
where quasi-aligned with the grid in B-grid solutions. It may also be |
40 |
|
the solution to the stress coupling issues with the B-grid. |
41 |
|
o each tested exp: add a "run" directory with a standard ".cvsignore" file ; |
42 |
|
remove .cvsignore from input dir. (since testreport no longer run here). |
43 |
|
o pkg/thsice: |
44 |
|
- cleaning: move common block out of "THSICE_2DYN.h" (removed) to "THSICE_VARS.h" |
45 |
|
- fix reshaping of sea-ice just after advection: |
46 |
|
melt all the ice only if ice-volume is too small. |
47 |
|
- re-visit lateral/thinning repartition of melting (modifs from May 04, 2007): |
48 |
|
prevent lateral melting if sea-ice fraction is too close to iceMaskMin ; |
49 |
|
and update experiment global_ocean.cs32x15.icedyn (+start from pickup files). |
50 |
|
o external_forcing_surf : extend the use of salt_EvPrRn & temp_EvPrRn (fresh-water |
51 |
|
tracer content) to linFS or no RealFreshWaterFlux ; default remains unchanged. |
52 |
|
o define mass2rUnit & rUnit2mass as units conversion factor, used for surface |
53 |
|
forcing. mass2rUnit: from mass per unit area [kg/m2] to r-coordinate unit |
54 |
|
(z-coord: =1/rhoConst ; p-coord: =gravity) ; rUnit2mass is just the reverse; |
55 |
|
and remove horiVertRatio (& recip_horiVertRatio). Affects truncation error |
56 |
|
of exp. global_oce_in_p: 10 16 16 14 16 13 16 16 16 13 13 13 16 13 13 12 16 |
57 |
|
-> update output.txt |
58 |
|
o pkg/cd_code: add brackets in multiple terms sum (S/R CD_CODE_SCHEME): |
59 |
|
this affects truncation error: -> update output.txt of exp: |
60 |
|
global_ocean.90x40x15 (fw&adm), lab_sea (fw&adm) & lab_sea.lsr, |
61 |
|
ideal_2D_oce, isomip.htd, natl_box, tutorial_global_oce_latlon. |
62 |
|
|
63 |
|
checkpoint59f |
64 |
|
o pkg/autodiff: zero_adj resets an ajoint variable to zero (in adjoint mode) |
65 |
|
o pkg/ctrl: ctrl_bound forces parameter corrections to stay in |
66 |
|
a bounded range (in forward mode) |
67 |
|
o pkg/ecco, ctrl, autodiff and mom_common: |
68 |
|
internal parameter controls, completements of implementations |
69 |
|
o add few EXCH S/R (UV_BGRID, UV_DGRID, SM) for B & D-Grid velocity & 2nd Moment Sxy. |
70 |
|
o use UV_BGRID exch for dxV,dyU: for now, only with pkg/exch2 & forward ; |
71 |
|
(not seem any difference in testing results). |
72 |
|
o pkg/cd_code: use the right EXCH calls (for CS-grid); but problem remains |
73 |
|
at face corners. |
74 |
|
o pkg/generic_advdiff: |
75 |
|
- in GAD.h, define as parameters (iMinAdvR,iMaxAdvR,jMinAdvR,jMaxAdvR) |
76 |
|
loop range indices for computing vertical advection tendency |
77 |
|
and do the calculation in the interior only (no overlap) ; |
78 |
|
for now, only implemented for SOM advection (to save CPU time). |
79 |
|
- add argument "withSigns" to S/R FILL_CS_CORNER_TR_RL (needed for SOM_xy moment) |
80 |
|
o exch2 adjoint |
81 |
|
First set of changes: |
82 |
|
- add exch2 hand-written adjoint templates |
83 |
|
- exch2 hand-written no longer use TAF-flag 'nownew_arg' |
84 |
|
This will require cleanup in pkg/autodiff/*.F |
85 |
|
(changed routines currently kept separate in verif. code/) |
86 |
|
- Comment all relevant #ifndef ALLOW_AUTODIFF_TAMC |
87 |
|
that used to hide exch2 or cubed-sphere specific code |
88 |
|
(commented via 'cph-exch2') |
89 |
|
o pkg/seaice |
90 |
|
- Close southern and western boundaries for UICE/VICE when useOBCS=.TRUE. |
91 |
|
o pkg/bulk_force: fix loading into Qsw of Short-Wave flux; and update |
92 |
|
output of global_ocean.cs32x15.thsice . |
93 |
|
|
94 |
|
checkpoint59e |
95 |
|
o exch2: new S/R that only use the cube-tracer (center-position) exchange: |
96 |
|
for B-grid vector (not yet tested) and C-grid vector (<- only used |
97 |
|
when option W2_USE_R1_ONLY in W2_OPTIONS.h is defined). |
98 |
|
o starting implementation of Duffy et al. (GRL 1999) salt plume scheme |
99 |
|
(#ifdef ALLOW_SALT_PLUME) |
100 |
|
o gather_2d/scatter_2d: removed halo regions |
101 |
|
o gmredi: add option (GM_taper_scheme='fm07') for Ferrari & McWilliams 2007 |
102 |
|
scheme and the corresponding test case (under front_relax dir). For now, |
103 |
|
only available with Skew-flux form and not yet tested in realistic set-up. |
104 |
|
adjoint: store directives updated, but gradient checks deteriorated, |
105 |
|
so maybe GM/Redi adjoint is now broken. |
106 |
|
o seaice adjoint |
107 |
|
* add AREA, HEFF, HSNOW as control variable |
108 |
|
(should not change lab_sea results) |
109 |
|
* CTRL_OPTIONS.h needs new flag: CTRL_SET_OLD_MAXCVARS_40 |
110 |
|
o pkg/seaice: |
111 |
|
* added computation of saltFlux in seaice_growth; |
112 |
|
For time being, sea ice salinity is assumed constant |
113 |
|
contribution of snow flooding to freshening of sea ice is neglected. |
114 |
|
SEAICE_salinity is set in SEAICE_PARM01 of data.seaice and it |
115 |
|
defaults to 0.0 in order to maintain backward compatibility. |
116 |
|
Typical values for SEAICE_salinity are 4 to 10 g/kg. |
117 |
|
* replaced dRf(1) with dRf(kSurface)*hFacC(kSurface) in seaice_growth.F |
118 |
|
* added SEAICE_availHeatFrac, which specifies fraction of surface level |
119 |
|
heat content used to melt or grow ice |
120 |
|
* commented out cap of HICE: it helps keep ice thinner |
121 |
|
* reintroduced cap of HEFF via MAX_HEFF and SEAICE_CAP_HEFF option |
122 |
|
* applied OBCS T/S mask to HEFFM sea ice mask |
123 |
|
|
124 |
|
checkpoint59d |
125 |
|
o standard name: {PKG}_DIAGNOSTICS_STATE to fill diagnostics array |
126 |
|
for {PKG} state variables, and called from DO_STATEVARS_DIAGS. |
127 |
|
(keep {PKG}_DIAGNOSTICS_FILL for non-state variables diagnostics) |
128 |
|
o pkg/gmredi (gmredi_readparms.F): add some missing "_d 0" |
129 |
|
and change default value of parameter "GM_Small_Number"; |
130 |
|
update output of exp: lab_sea (x2), cfc_example, global_ocean.90x40x15, |
131 |
|
global_ocean.cs32x15 (x4), global_ocean_ebm, global_with_exf, |
132 |
|
tutorial_global_oce_biogeo, tutorial_global_oce_latlon |
133 |
|
o pkg/ecco: cost function when applying pkg/smooth to controls |
134 |
|
o pkg/ctrl: add forcingPrecond run time parameter |
135 |
|
o pkg/seaice: |
136 |
|
- replace ZMIN=4.e8 with ZMIN=0. in dynsolver.F as in C-grid code |
137 |
|
- fix bug in metric terms of u-equation in LSR solver (implicit part), |
138 |
|
changes verification/lab_sea |
139 |
|
- rearrange implicit part of u-equation in LSR solver to make it easier to |
140 |
|
read, understand, and debug. This causes changes at the truncation level. |
141 |
|
- fix (serious) bug in the boundary conditions (sign error in the implicit |
142 |
|
part) of the LSR solver. Changes all LSR results. |
143 |
|
- fixed problem with HSNOW initialization to avoid thick snow when AREA |
144 |
|
is initilized with small values - does not change lab_sea results. |
145 |
|
- added HsnowFile initialization capability |
146 |
|
o pkg/smooth: addition to model/src and pkg/ctrl so allow |
147 |
|
initialization of pkg/smooth and application to control vector |
148 |
|
o pkg/seaice: fix another bug in the LSR no-slip boundary conditons |
149 |
|
o dependencies: pkg/profiles requires pkg/cal |
150 |
|
o pkg/profiles: |
151 |
|
- added option ALLOW_PROFILES_GENERICGRID |
152 |
|
-> pkg/profiles can thus be used with any grid (e.g. cs32x15) assuming |
153 |
|
that interpolation information (grid points and coefficients) is provided |
154 |
|
within the netcdf input files. |
155 |
|
-> sample matlab scripts can be found in MITgcm_contrib/gael |
156 |
|
that allow you to prepare netcdf input files. |
157 |
|
- also modified: cleaner include statements, cleaner error print statements, |
158 |
|
cleaner stops when error, and more tests of the netcdf input files consistency. |
159 |
|
o additional test (in global_ocean.cs32x15) using seaice+thsice pkgs. |
160 |
|
o pkg/seaice: |
161 |
|
- move seaice-diagnostics from seaice_do_diags to do_statevars_diags; this |
162 |
|
requires a new routine: seaice_diagnostics_fill.F |
163 |
|
- make sure that seaice does not move if not forced (pressure replacement |
164 |
|
method, Hibler and Ip, 1995), changes results |
165 |
|
- and new damping criterion for EVP solver according to Hunke, JCP, 2001 |
166 |
|
- SEAICE_evpDampC = > 0. turns it on (615. is the recommended value). |
167 |
|
It is turned off by default (=-1.), because it changes the results. |
168 |
|
- make it possible to read AREA from a file, too. |
169 |
|
|
170 |
|
checkpoint59c |
171 |
|
o add S/R and diagnostics for oceanic mixed-layer depth |
172 |
|
o move GMRedi call after all vertical mixing schemes (including KPP) |
173 |
|
o pkg/thsice: |
174 |
|
- ensure iceMask > iceMaskMin : this problem appeared after May-04 modifs |
175 |
|
(melt only laterally if thin ice): update output of global_ocean.cs32x15.thsice |
176 |
|
o pkg/obcs: |
177 |
|
- bug fix for balance code |
178 |
|
o pkg/seaice: |
179 |
|
- allow values of SEAICE_elasticParm > 1 |
180 |
|
- add new parameter SEAICE_evpTauRelax as an alternative |
181 |
|
to SEAICE_elasticParm |
182 |
|
- make lsr boundary conditions free slip (by default), changes result |
183 |
|
- add code for no slip boundary conditions for lsr |
184 |
|
- set minimum of zeta to zero (and not 4e8) (changes results) |
185 |
|
- add a cap on AREA after advecting AREA if seaice_growth is not called |
186 |
|
o change calculation of Visbeck K: |
187 |
|
- no longer depend on tapering scheme; instead, compute slope (limited |
188 |
|
by GM_maxSlope). this is equivalent to what was comuted before with |
189 |
|
clipping or linear tappering. |
190 |
|
- fix vertical averaging (wrong by 1/2 level) |
191 |
|
- leave the old version (but will not be maintained) within |
192 |
|
#ifdef OLD_VISBECK_CALC / #endif |
193 |
|
- update output of exp. ideal_2D_oce |
194 |
|
o change error catch in calc_r_star to improve vectorization |
195 |
|
o exf runoff and seaice: remove ALLOW_SEAICE from exf pkg files and |
196 |
|
add #define ALLOW_RUNOFF in SEAICE_OPTIONS.h (when not using exf). |
197 |
|
o adjoint: |
198 |
|
Re-organized adjoint checkpointing according to Matt Mazloff |
199 |
|
(but with modifs/completions/cleanups) |
200 |
|
Storing is now bundled into large arrays to optimized I/O |
201 |
|
(and second step in cleanup of the_main_loop) |
202 |
|
|
203 |
|
checkpoint59b |
204 |
|
o coupler (pkg/atm_ocn_coupler, pkg/ocn_compon_interf, pkg/atm2d): |
205 |
|
- export/import (between ocean & coupler) fields needed for ocean DIC. |
206 |
|
o pkg/seaice: |
207 |
|
- get rid of three more exchanges seaice_calc_viscosities (required |
208 |
|
different loop boundaries in seaice_lsr and seaice_ocean_stress) |
209 |
|
- bug fix in seaice_ocean_stress (update of lab_sea required) |
210 |
|
- reduce loop boundaries to necessary minimum also in seaice_evp |
211 |
|
- go back to the old way of computing deltaC/Z as the adjoint likes that |
212 |
|
better |
213 |
|
o Refresh of tutorial_global_oce_latlon (includes changing salinity-like |
214 |
|
passive tracer to an Age Tracer) + update output.txt |
215 |
|
o pkg/exf: |
216 |
|
- implement A-grid / C-grid selection for wind-stress input files. |
217 |
|
- clean-up exf_wind.F (remove us, use wspeed instead ; add wStress) |
218 |
|
for now, in exf_bulk_largeyeager04.F only : |
219 |
|
- change implementation for case where windspeed + 2. components wind-stress |
220 |
|
are read-in. AND use rhoConstFresh to convert evap. |
221 |
|
o pkg/seaice: |
222 |
|
- use correct EXCH_UV for wind-forcing (on A-grid). |
223 |
|
- change SEAICE_OPTIONS.h to limit the number of option combinations (regarding |
224 |
|
SEAICE_EXTERNAL_FORCING & SEAICE_EXTERNAL_FLUXES); add corresponding stops. |
225 |
|
o pkg/exf: |
226 |
|
- default EXF options are now set in EXF_OPTIONS.h (ifndef ALLOW_AUTODIFF_TAMC) |
227 |
|
EXF_INTERPOLATION: |
228 |
|
- merge global_with_exf/code version of exf_interp_read.F |
229 |
|
to the main code ; |
230 |
|
- Add new option: EXF_INTERP_USE_DYNALLOC to use Dynamical Allocation when |
231 |
|
reading the file ; Important: This options needs to be defined to recover |
232 |
|
previous code. |
233 |
|
otherwise, use fixed size array to read in (size=exf_interp_bufferSize). |
234 |
|
- no longer loose real*8 precision along the way when using exf_iprec=64. |
235 |
|
o pkg/seaice: rearrangement of common blocks (really needs more cleaning up) |
236 |
|
- change discretisation of evp-solver in order to avoid another exchange |
237 |
|
(changes lab_sea) and clean up a little |
238 |
|
- replace SQRT(MAX(deltaC,SEAICE_EPS)) by MAX(SQRT(deltaC),SEAICE_EPS) |
239 |
|
help the adjoint (this also changes the results slightly) |
240 |
|
- add a few "_d 0" where they had been missing in seaice_evp.F |
241 |
|
- cleaning up: remove unused seaice_calc_rhs.F |
242 |
|
o pkg/exf: some cleaning-up: |
243 |
|
- change various "constants" into runtime parameters |
244 |
|
- cleaned-up Large&Yeager04 routine which should eventually |
245 |
|
replace exf_bulkformulae.F (changed names of S/R and CPP) |
246 |
|
and merged various ALLOW_ATM_WIND options |
247 |
|
only used with thsice pkg (in thsice_get_exf.F): |
248 |
|
- implement fixed turbulent transfert Coeff over ice (as in Large&Yeager04) |
249 |
|
which are used when useStabilityFct_overIce=TRUE (= the default) |
250 |
|
- change default values of ice & snow emissivity and scale downward LW |
251 |
|
by ice & snow emissivity. |
252 |
|
o pkg/thsice: |
253 |
|
fix few little problems, in thsice_calc_thickn.F: |
254 |
|
- growth vertically (and not laterally) if iceFrac == iceMaskMax |
255 |
|
- melt only laterally if hIce < hThinIce (as the comments say) |
256 |
|
and in thsice_extend.F: |
257 |
|
- allow to form ice even when iceFrac == iceMaskMax (by increasing thickness) |
258 |
|
- start to form ice as soon as the minimum ice-volume is reachable. |
259 |
|
update output of test-exp: aim.5l_cs(thSI), global_ocean.cs32x15(thsice), |
260 |
|
and cpl_aim+ocn |
261 |
|
o pkg/kpp |
262 |
|
- move computation of surface related input fields to KPP into a new |
263 |
|
subroutine kpp_forcing_surf.F |
264 |
|
- remove wrong (within bi,bj loops) EXCH calls. |
265 |
|
- little cleaning (add argument myThid in last position, cvs header ...) |
266 |
|
- for now, fix conservation problem by exchanging KPPviscAz (may not |
267 |
|
be the best fix) |
268 |
|
o pkg/seaice |
269 |
|
- check for inconsistent evp parameter/cpp-flag combination |
270 |
|
- remove leftover errIO flat for obsolete name list error handling |
271 |
|
o OpenAD |
272 |
|
- changed verification/OpenAD to full baroclinic setup (including GM/Redi) |
273 |
|
|
274 |
|
checkpoint59a |
275 |
|
o pkg/seaice: some parameter clarifications and a little bit of clean up |
276 |
|
o pkg/thsice: rename run-time parameters: |
277 |
|
himin -> hIceMin |
278 |
|
himin0 -> hThinIce |
279 |
|
hihig -> hThickIce |
280 |
|
i0 -> i0swFrac |
281 |
|
transCoef -> bMeltCoef |
282 |
|
frac_energy -> fracMelting |
283 |
|
add new parameters: hNewIceMax, fracFreezing, dhSnowLin |
284 |
|
with default values (for now) that do not change the results. |
285 |
|
remove old version of thsice vars advection in pkg/seaice. |
286 |
|
o in FFIELDS.h: |
287 |
|
- replace #ifndef ALLOW_EXF by #ifndef EXCLUDE_FFIELDS_LOAD |
288 |
|
- make pLoad & sIceLoad always available (but still only used if |
289 |
|
ATMOSPHERIC_LOADING is #define). |
290 |
|
o pkg/kpp: replaced _KPP_RL with _RL |
291 |
|
o bug fixes for vertical diffusivity computations when both KPP and |
292 |
|
3D diffusivity arrays are used. |
293 |
o pkg/seaice: fix bug in evp solver, while doing that |
o pkg/seaice: fix bug in evp solver, while doing that |
294 |
- change (improve?) discretization of stress computations for both |
- change (improve?) discretization of stress computations for both |
295 |
cgrid-lsr and evp solver |
cgrid-lsr and evp solver |
302 |
(to force the user to pick a time step since there is not "safe" way |
(to force the user to pick a time step since there is not "safe" way |
303 |
of choosing it) |
of choosing it) |
304 |
- add principal stress diagnostics |
- add principal stress diagnostics |
305 |
|
- rearrange fields for evp a little to avoid having to call a: too many |
306 |
|
exchanges and b: exchanges for stress trensor components which we do |
307 |
|
not have. |
308 |
|
- modify Hibler+Bryan (1987) stress coupling so that it reuses information |
309 |
|
of evp, complete rewrite for lsr case (latter is does not yet work |
310 |
|
in all cases) |
311 |
o pkg/kpp: add code to have mixing in shelf ice caverns |
o pkg/kpp: add code to have mixing in shelf ice caverns |
312 |
|
- add myThid to all kpp routines (long overdue) |
313 |
|
|
314 |
checkpoint59 |
checkpoint59 |
315 |
o pkg/exf: |
o pkg/exf: |