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