4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/seaice: |
8 |
|
- improve description of parameters in seaice_fgmres.F and start |
9 |
|
cleaning up the code |
10 |
|
- change name of SCALPROD to SEAICE_SCALPROD and modify meaning of |
11 |
|
second argument |
12 |
|
- add a metric based on grid cell area to SEAICE_SCALPROD; update |
13 |
|
results of offline_exf_seaice.dyn_jfnk |
14 |
|
- compute initial residual norm in seaice_jfnk based on SEAICE_SCALPROD |
15 |
|
o pkg/aim_v23: |
16 |
|
- fix an other bug in dissipation heating (grid-cell area was missing). |
17 |
|
o model/src + pkg/seaice: |
18 |
|
- add global (multi-tile) linear solver for pair of tri-diagonal system |
19 |
|
along X and Y lines, respectively for U and V component. |
20 |
|
Note: 1) MPI and cube-exchange not yet coded. |
21 |
|
2) probably not accurate for poorly conditioned / large size problem. |
22 |
|
- add option for SEAICE_LSR to use global (multi-tile) tri-diagonal solver; |
23 |
|
default: not compiled and not used. |
24 |
|
o pkg/seaice: |
25 |
|
- first attempt at a multi-threaded fgmres solver for the JFNK solver: |
26 |
|
introduce bi/bj loops and use global_sum_tile_rl instead of |
27 |
|
mpi_allreduce in seaice_fgmres.F |
28 |
|
- improve diagnostics output for fgmres solver (seaice_fgmres.F) |
29 |
|
- replace a few unnecessary goto statements by if-blocks (seaice_fgmres.F) |
30 |
|
- add a verification experiment for JFNK in offline_exf_seaice |
31 |
|
o verification: |
32 |
|
- change (for now, only fwd test) offline_exf_seaice experiment: |
33 |
|
use a re-entrant channel with idealized costline (trapezoidal shape) |
34 |
|
at southern boundary to explore seaice dynamics and thermodynamics |
35 |
|
with simple forcing. Main set-up has dynamics+thermo and SST relaxation; |
36 |
|
secondary test (input.thsice) use thermodynamics only with SST relaxation. |
37 |
|
- add seaice-dynamics only secondary test using LSR and pkg/thsice advection. |
38 |
|
o pkg/exf: |
39 |
|
- disable "sstExtrapol" when Nr=1 |
40 |
|
o verification: |
41 |
|
- add new experiment "cheapAML_box" (simple 1 layer set-up from Bruno Deremble) |
42 |
|
to test pkg/cheapaml. |
43 |
|
o pkg/aim_v23 & pkg/shap_filt: |
44 |
|
- fix dissipation heating (erroneous gravity multiplication factor). |
45 |
|
o pkg/seaice: |
46 |
|
- remove unused field pressPre from jfnk solver |
47 |
|
- rename two subroutines in seaice_preconditioner.F |
48 |
|
o eesupp/src: |
49 |
|
- S/R MDSFINDUNIT avoids reserved unit numbers (scrUnit1, eeDataUnit ...) |
50 |
|
o pkg/seaice/seaice_preconditioner.F: fix preconditioner once again |
51 |
|
- remove wrong parts of the rhs and the lhs (were in there |
52 |
|
because I did not understand the concept of this preconditioner) |
53 |
|
- add an exchange between u- and v-sweep. This increases communication |
54 |
|
by a factor of two but improves the convergence of jfnk. Ideally, |
55 |
|
one would like the u- and v-sweep to be independent. So far within |
56 |
|
undocumented ifdefs |
57 |
|
- reorganize the extra computations for printing the residuals |
58 |
|
o tools/genmake2: |
59 |
|
- comment out the "mpif.h" include in NetCDF test programm (for MPI built) |
60 |
|
since it's not necessary (and was preventing to use MNC in some cases). |
61 |
|
|
62 |
|
checkpoint64a (2012/11/16) |
63 |
|
o pkg/autodiff: |
64 |
|
- improve pkg-internal logical parameter switch (inAd/inFwd mode) so that |
65 |
|
autodiff_readparms.F no longer depends on calling order (within |
66 |
|
packages_readparms.F) and no longer requires to include ${PKG}_PARMS.h): |
67 |
|
rename param turnFreeDriftInAdMode to SEAICEuseFREEDRIFTswitchInAd |
68 |
|
and change param SEAICEuseDYNAMICSinAdMode to SEAICEuseDYNAMICSswitchInAd. |
69 |
|
o pkg/obcs: |
70 |
|
- adding tidal velocity forcing capability to obcs |
71 |
|
for usage example, see verification/seaice_obcs/input.tides |
72 |
|
o pkg/seaice: |
73 |
|
- turn the LSR-relaxation parameters WFAU/V into runtime parameters |
74 |
|
SEAICE_LSRrelaxU/V |
75 |
|
- introduce runtime parameter SEAICEetaZmethod (=0 by default) |
76 |
|
o pkg/aim_v23: |
77 |
|
- implement heating from friction (bottom friction and stratospheric drag). |
78 |
|
o pkg/shap_filt: |
79 |
|
- fix diagnostic "SHAP_dKE" (was 2 time smaller); implement heating from |
80 |
|
dissipation but only for Shap_funct=2, active when addFrictionHeating=T. |
81 |
|
o model/src: |
82 |
|
- move AddMass common block from DYNVARS.h to FFIELDS.h; allow to read-in |
83 |
|
time-constant addMass field from file (addMassFile); |
84 |
|
- support for heating due to friction (and Kinetic Energy dissipation): |
85 |
|
add option, run-time switch and 3-D field array + support code ; each pkg |
86 |
|
or S/R can add heating contribution (if there is a sink of KE); the sum is |
87 |
|
accounted for as a Temperature tendency term (EXTERNAL_FORCING_T). |
88 |
|
o pkg/seaice: |
89 |
|
- complete merge of ITD code into seaice_growth.F |
90 |
|
from MITgcm_contrib/torge/itd/code/ |
91 |
|
no verification so far, but Torge Martin tested |
92 |
|
"1-D test case and Beaufort set up; |
93 |
|
deliver okay results after 1 model year." |
94 |
|
- complete merge of SEAICE_SIZE.h into all relevant routines |
95 |
|
- move computation of eta at Z-points into calc_viscosities |
96 |
|
+ introduce global field etaZ |
97 |
|
+ add different methods for computing etaZ, for now the old |
98 |
|
method (simple averages of eta to Z-points) is hardwired |
99 |
|
+ replace etaMeanZ by etaZ in seaice_lsr, seaice_calc_residual, |
100 |
|
seaice_preconditioner |
101 |
|
- simplify computations for SEAICE_ZETA_SMOOTHREG |
102 |
|
- seaice_preconditioner: |
103 |
|
+ replace one remaining press by pressLoc (mistake) |
104 |
|
+ adjust printing of residuals |
105 |
|
- improve I/O of diagnostics of JFNK in seaice_jfnk.F: |
106 |
|
+ add (SEAICE.h) and rename some counters (initiliased in |
107 |
|
seaice_init_fixed.F) |
108 |
|
+ add _BEGIN/END_MASTER (myThid) around print statements |
109 |
|
+ print total number of iterations and failures over SEAICE_monFreq |
110 |
|
interval to STDOUT |
111 |
|
- move control over output-messages by fgmres to seaice_jfnk to save |
112 |
|
some operations |
113 |
|
- move resetting initial guess for fgmres outside of seaice_fgmres_driver |
114 |
|
in order to make restarts with sol .ne. zero (fgmres with restarts) |
115 |
|
(seaice_jfnk.F, seaice_fgmres.F) |
116 |
|
- seaice_calc_l/rhs.F: replace maskW/S by maskInW/S; this fixes |
117 |
|
a serious convergence problem when open boundaries are involved |
118 |
|
o pkg/ggl90: fix computation of control volumes for the case of |
119 |
|
ALLOW_GGL90_HORIZDIFF (probably not used very often): move control volumes |
120 |
|
up half a grid cell from C-centered to W-centered (pointed out by C. Eden) |
121 |
|
o pkg/seaice: simplify seaice_evp by avoiding use of extra fields u/vIceC |
122 |
|
o pkg/autodiff |
123 |
|
- Add inAdMode switch for SEAICEuseDYNAMICS: |
124 |
|
SEAICEuseDYNAMICSinAdMode |
125 |
|
(extend logic in ADAUTODIFF_INADMODE_SET) |
126 |
|
o pkg/seaice |
127 |
|
- Step 1 of merging ice-thickness distribution (ITD) code from |
128 |
|
MITgcm_contrib/torge/itd/ (author: Torge Martin) |
129 |
|
The code implements concept laid out in Thorndike et al. (1975); |
130 |
|
code is enabled via CPP flag SEAICE_ITD |
131 |
|
nITD (in SEAICE_SIZE.h) defines number of ice thickness categories; |
132 |
|
code is not complete yet!! |
133 |
|
- SEAICE_SIZE.h now included in almost all seaice routines |
134 |
|
o verification (using seaice): |
135 |
|
- switch back seaice-dynamics (+ lower SOLV_MAX_ITERS) in ADM exp. |
136 |
|
global_ocean.cs32x15.seaice ; update results. |
137 |
|
- compile B-grid dynamics in FW test exp 1D_ocean_ice_column ; |
138 |
|
- compile C-grid dynamics with #define SEAICE_ALLOW_JFNK in FW test exp |
139 |
|
offline_exf_seaice (previously compiling B-grid). |
140 |
|
o pkg/exf: |
141 |
|
- fix some STOP conditions in exf_check.F (from Aug 28, modifs did not allow |
142 |
|
to specify neither just 1 comp of wind or wind-stress, nor no surface momentum |
143 |
|
forcing): just replace CPP option ALLOW_ATM_WIND with run-time param useAtmWind. |
144 |
|
o pkg/layers (adjust changes from Sept 19): |
145 |
|
- do snap-shot output and fill diagnostics from inside iLa loop (layers_calc.F) |
146 |
|
this allows to remove "layers_maxNum" dimension from all layers arrays. |
147 |
|
o pkg/layers (adjust changes from Sept 19): |
148 |
|
- remove ALLOW_LAYERS_OUTPUT ; fix snap-shot and time-ave output ; |
149 |
|
- snap-shot extended to all type of layers (not just the 1rst type); |
150 |
|
- remove layers variables when corresponding CPP option is undef. |
151 |
|
o pkg/layers: |
152 |
|
- rename pkg/layers variable and add new output (layer exist & un-weighted |
153 |
|
velocity in layer) |
154 |
|
o pkg/seaice: |
155 |
|
- simplify (?) ocean-drag coefficent computations by using |
156 |
|
the same routine in all three solvers (saves some code lines) |
157 |
|
- remove global fields DRAGA and DRAGS from C-grid code and |
158 |
|
declare them locally in lsr.F (the only place where they are |
159 |
|
still used) |
160 |
|
- update AD output of lab_sea.evp (very sensitive anyway). |
161 |
|
o pkg/seaice: add Jacobian-free Newton Krylov solver for ice dynamics |
162 |
|
(Lemieux et al. 2010, 2012). Turn on with the usual SEAICE_ALLOW_JFNK |
163 |
|
and SEAICEuseJFNK=.true. A few things to note: |
164 |
|
- involves a FGMRES, that is parallel but very inefficient, |
165 |
|
because of many scalar products (global sums) in the Gram-Schmidt |
166 |
|
orthogonalization method. Needs to be replaced. Original code |
167 |
|
from J.-F. Lemieux |
168 |
|
- preconditioner for FGMRES is a stripped down version of LSOR |
169 |
|
- SOLV_MAX_ITERS is now used for LSOR as a solver and as a |
170 |
|
preconditioner. For the preconditioner, the default is set to 10. |
171 |
|
- Jacobian times vector is computed with finite differences |
172 |
|
- marginally related to JFNK-solver: add a smooth regularization for |
173 |
|
zeta with tanh that will improve convergence (Lemieux and Tremblay, |
174 |
|
2009) for any implicit solver (not implemented for EVP because EVP |
175 |
|
does not need this regularization in the first place). Define |
176 |
|
SEAICE_ZETA_SMOOTHREG in SEAICE_OPTIONS.h to use. |
177 |
|
o eesupp/src: |
178 |
|
- check in genmake2 that intrinsic S/R flush is available. |
179 |
|
- add S/R to flush IO unit (if intrinsic S/R flush is available) |
180 |
|
- flush standard & error msg unit before MPI termination |
181 |
|
- if debugMode, flush IO unit after printing msg |
182 |
|
o pkg/ctrl: |
183 |
|
- ctrl_unpack.F, ALLOW_GENARR3D_CONTROL code: fix missing argument in call |
184 |
|
to ctrl_set_unpack_xyz. |
185 |
|
|
186 |
|
checkpoint64 (2012/10/09) |
187 |
|
o pkg/shelfice |
188 |
|
- in mom_fluxform.F, mom_vecinv.F: |
189 |
|
CALL SHELFICE_V_DRAG(bi,bj,k,vFld,KE,KappaRU,vF,myThid) |
190 |
|
Bug fix KappaRU -> KappaRV |
191 |
|
does not change verification/isomip but may change other setups |
192 |
|
(presumably constant KappaRU=KappaRV) |
193 |
|
- fix diagnostics SHIU/Vdrag (thanks to Tom Millgate) |
194 |
|
o pkg/obcs: |
195 |
|
- fixed some indexing bugs in obcs_seaice_sponge.F |
196 |
|
- added obcs relaxation subroutines for HSALT and HSNOW |
197 |
|
- changes verification/seaice_obcs/results/obcs_seaice_sponge.F |
198 |
|
o pkg/seaice: |
199 |
|
- add "multicategory" parameterization for snow in analogy to ice, |
200 |
|
default is off for now. |
201 |
|
o pkg/obcs: |
202 |
|
- added obcs_seaice_sponge.F for obcs relaxation of seaice variables; |
203 |
|
see verification/seaice_obcs/input.seaiceSponge for example application. |
204 |
|
- remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB |
205 |
|
index setting by master-thread. This fix multi-threads Pb in previous modifs. |
206 |
|
o pkg/layers : |
207 |
|
- add diagnostics to pkg/layers |
208 |
|
- move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F |
209 |
|
(from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly. |
210 |
|
o pkg/generic_advdiff/gad_implicit_r.F : |
211 |
|
- fix ADVr diagnostics in case of both implicit vertical advection and diffusion. |
212 |
|
o pkg/seaice/seaice_growth.F: |
213 |
|
- fix SItflux diagnostics in virtual salt flux + balanceEmpmr case. |
214 |
|
o pkg/obcs: |
215 |
|
- change default setting of OBCS_UVICE_OLD from defined to undef; |
216 |
|
- use new parameter OB_indexNone for null index value (instead of hard-coded 0) |
217 |
|
in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F; |
218 |
|
- pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z; |
219 |
|
- change OB null index value (OB_indexNone) to -99 ; this fix the problem |
220 |
|
with Southern & Western OB at a tile edge (at least in a simple set-up). |
221 |
|
o pkg/obcs: |
222 |
|
- change settings of OB index in case OB coincides with tile edge (shared by |
223 |
|
2 tiles), so that common OB location is registered by both tiles (instead of |
224 |
|
only 1). However, for Southern and Western OB, index value = 0 is not |
225 |
|
recognized as valid OB index (=default null value) and needs to be fixed. |
226 |
|
- modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting) |
227 |
|
- new parameter "OB_indexNone" for null index value (for now, still zero) |
228 |
|
to replace hard-coded null index value of zero. |
229 |
|
o pkg/exch2: |
230 |
|
- improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON: |
231 |
|
always check buffer-size (but outside the loop); move checking for valid |
232 |
|
index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON, |
233 |
|
print each tile and point connection only if |W2_printMsg|>= 2 and 3. |
234 |
|
o pkg/ctrl (pack & unpack): |
235 |
|
- in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable |
236 |
|
(locally defined) for different variables (+ remove the variable-specific |
237 |
|
file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL |
238 |
|
(to be extended to other local file names in ctrl.h). |
239 |
|
o pkg/flt: |
240 |
|
- add a FLT_Iter0 option (similar to PTRACERS_Iter0). |
241 |
|
o pkg/mdsio: |
242 |
|
- fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing |
243 |
|
o tools/genmake2: |
244 |
|
- add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE |
245 |
|
(added by Alistair in version 1.51 for building without make depend); |
246 |
|
- remove Header files list (H_SRC_FILES) from the dependence of targets |
247 |
|
ad_input_code.f & ftl_input_code.f (not clear why it was added in the first |
248 |
|
place in version 1.23): this save going through staf when unrelated header |
249 |
|
file has been modified. |
250 |
|
Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without |
251 |
|
"make depend" step, still need to do "make links" before "make adtaf". |
252 |
|
o eesupp/src (+ few pkg src files) & genmake2: |
253 |
|
- finish to remove ALWAYS_USE_MPI in source code that TAF does not see; |
254 |
|
- no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2). |
255 |
|
- improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish |
256 |
|
upper/lower case ; account for space between "#" and undef/define) |
257 |
|
o pkg/flt (with exch2): |
258 |
|
- cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F; |
259 |
|
- simplify threads synchronisation; fix (many issues) multi-threaded with MPI. |
260 |
|
|
261 |
|
checkpoint63s (2012/09/05) |
262 |
|
o pkg/ecco: |
263 |
|
- remove #ifdef ALLOW_SMOOTH_CORREL3D brackets. |
264 |
|
- add more relevant #ifdef ALLOW_SMOOTH ones. |
265 |
|
- sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D. |
266 |
|
o pkg/ctrl: |
267 |
|
- CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D, |
268 |
|
ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D. |
269 |
|
- ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag, |
270 |
|
doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and |
271 |
|
ctrlSmoothCorrel3D (new). |
272 |
|
The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP. |
273 |
|
- ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist. |
274 |
|
- ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress |
275 |
|
controls when useAtmWind, and vice versa. |
276 |
|
- ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers. |
277 |
|
- ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with |
278 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH. |
279 |
|
- ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with |
280 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH. |
281 |
|
- ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F: |
282 |
|
replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D. |
283 |
|
o pkg/smooth: |
284 |
|
- remove un-necessary includes. |
285 |
|
- remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets. |
286 |
|
Those CPP options were never defined, and not necessary. |
287 |
|
o model/src: |
288 |
|
- fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi). |
289 |
|
- standard treatment of useSMOOTH. |
290 |
|
o pkg/autodiff: |
291 |
|
- add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode, |
292 |
|
useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint. |
293 |
o pkg/exch2: |
o pkg/exch2: |
294 |
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
295 |
+ to remove ALWAYS_USE_MPI in source code that TAF does not see. |
+ start to remove ALWAYS_USE_MPI in source code that TAF does not see. |
296 |
- make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag |
- make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag |
297 |
and tiles to process mapping. |
and tiles to process mapping. |
298 |
- re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h) |
- re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h) |