4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/layers (adjust changes from Sept 19): |
8 |
|
- do snap-shot output and fill diagnostics from inside iLa loop (layers_calc.F) |
9 |
|
this allows to remove "layers_maxNum" dimension from all layers arrays. |
10 |
|
o pkg/layers (adjust changes from Sept 19): |
11 |
|
- remove ALLOW_LAYERS_OUTPUT ; fix snap-shot and time-ave output ; |
12 |
|
- snap-shot extended to all type of layers (not just the 1rst type); |
13 |
|
- remove layers variables when corresponding CPP option is undef. |
14 |
|
o pkg/layers: |
15 |
|
- rename pkg/layers variable and add new output (layer exist & un-weighted |
16 |
|
velocity in layer) |
17 |
|
o pkg/seaice: |
18 |
|
- simplify (?) ocean-drag coefficent computations by using |
19 |
|
the same routine in all three solvers (saves some code lines) |
20 |
|
- remove global fields DRAGA and DRAGS from C-grid code and |
21 |
|
declare them locally in lsr.F (the only place where they are |
22 |
|
still used) |
23 |
|
- update AD output of lab_sea.evp (very sensitive anyway). |
24 |
|
o pkg/seaice: add Jacobian-free Newton Krylov solver for ice dynamics |
25 |
|
(Lemieux et al. 2010, 2012). Turn on with the usual SEAICE_ALLOW_JFNK |
26 |
|
and SEAICEuseJFNK=.true. A few things to note: |
27 |
|
- involves a FGMRES, that is parallel but very inefficient, |
28 |
|
because of many scalar products (global sums) in the Gram-Schmidt |
29 |
|
orthogonalization method. Needs to be replaced. Original code |
30 |
|
from J.-F. Lemieux |
31 |
|
- preconditioner for FGMRES is a stripped down version of LSOR |
32 |
|
- SOLV_MAX_ITERS is now used for LSOR as a solver and as a |
33 |
|
preconditioner. For the preconditioner, the default is set to 10. |
34 |
|
- Jacobian times vector is computed with finite differences |
35 |
|
- marginally related to JFNK-solver: add a smooth regularization for |
36 |
|
zeta with tanh that will improve convergence (Lemieux and Tremblay, |
37 |
|
2009) for any implicit solver (not implemented for EVP because EVP |
38 |
|
does not need this regularization in the first place). Define |
39 |
|
SEAICE_ZETA_SMOOTHREG in SEAICE_OPTIONS.h to use. |
40 |
|
o eesupp/src: |
41 |
|
- check in genmake2 that intrinsic S/R flush is available. |
42 |
|
- add S/R to flush IO unit (if intrinsic S/R flush is available) |
43 |
|
- flush standard & error msg unit before MPI termination |
44 |
|
- if debugMode, flush IO unit after printing msg |
45 |
|
o pkg/ctrl: |
46 |
|
- ctrl_unpack.F, ALLOW_GENARR3D_CONTROL code: fix missing argument in call |
47 |
|
to ctrl_set_unpack_xyz. |
48 |
|
|
49 |
|
checkpoint64 (2012/10/09) |
50 |
|
o pkg/shelfice |
51 |
|
- in mom_fluxform.F, mom_vecinv.F: |
52 |
|
CALL SHELFICE_V_DRAG(bi,bj,k,vFld,KE,KappaRU,vF,myThid) |
53 |
|
Bug fix KappaRU -> KappaRV |
54 |
|
does not change verification/isomip but may change other setups |
55 |
|
(presumably constant KappaRU=KappaRV) |
56 |
|
- fix diagnostics SHIU/Vdrag (thanks to Tom Millgate) |
57 |
|
o pkg/obcs: |
58 |
|
- fixed some indexing bugs in obcs_seaice_sponge.F |
59 |
|
- added obcs relaxation subroutines for HSALT and HSNOW |
60 |
|
- changes verification/seaice_obcs/results/obcs_seaice_sponge.F |
61 |
|
o pkg/seaice: |
62 |
|
- add "multicategory" parameterization for snow in analogy to ice, |
63 |
|
default is off for now. |
64 |
|
o pkg/obcs: |
65 |
|
- added obcs_seaice_sponge.F for obcs relaxation of seaice variables; |
66 |
|
see verification/seaice_obcs/input.seaiceSponge for example application. |
67 |
|
- remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB |
68 |
|
index setting by master-thread. This fix multi-threads Pb in previous modifs. |
69 |
|
o pkg/layers : |
70 |
|
- add diagnostics to pkg/layers |
71 |
|
- move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F |
72 |
|
(from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly. |
73 |
|
o pkg/generic_advdiff/gad_implicit_r.F : |
74 |
|
- fix ADVr diagnostics in case of both implicit vertical advection and diffusion. |
75 |
|
o pkg/seaice/seaice_growth.F: |
76 |
|
- fix SItflux diagnostics in virtual salt flux + balanceEmpmr case. |
77 |
|
o pkg/obcs: |
78 |
|
- change default setting of OBCS_UVICE_OLD from defined to undef; |
79 |
|
- use new parameter OB_indexNone for null index value (instead of hard-coded 0) |
80 |
|
in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F; |
81 |
|
- pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z; |
82 |
|
- change OB null index value (OB_indexNone) to -99 ; this fix the problem |
83 |
|
with Southern & Western OB at a tile edge (at least in a simple set-up). |
84 |
|
o pkg/obcs: |
85 |
|
- change settings of OB index in case OB coincides with tile edge (shared by |
86 |
|
2 tiles), so that common OB location is registered by both tiles (instead of |
87 |
|
only 1). However, for Southern and Western OB, index value = 0 is not |
88 |
|
recognized as valid OB index (=default null value) and needs to be fixed. |
89 |
|
- modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting) |
90 |
|
- new parameter "OB_indexNone" for null index value (for now, still zero) |
91 |
|
to replace hard-coded null index value of zero. |
92 |
|
o pkg/exch2: |
93 |
|
- improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON: |
94 |
|
always check buffer-size (but outside the loop); move checking for valid |
95 |
|
index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON, |
96 |
|
print each tile and point connection only if |W2_printMsg|>= 2 and 3. |
97 |
|
o pkg/ctrl (pack & unpack): |
98 |
|
- in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable |
99 |
|
(locally defined) for different variables (+ remove the variable-specific |
100 |
|
file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL |
101 |
|
(to be extended to other local file names in ctrl.h). |
102 |
|
o pkg/flt: |
103 |
|
- add a FLT_Iter0 option (similar to PTRACERS_Iter0). |
104 |
|
o pkg/mdsio: |
105 |
|
- fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing |
106 |
|
o tools/genmake2: |
107 |
|
- add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE |
108 |
|
(added by Alistair in version 1.51 for building without make depend); |
109 |
|
- remove Header files list (H_SRC_FILES) from the dependence of targets |
110 |
|
ad_input_code.f & ftl_input_code.f (not clear why it was added in the first |
111 |
|
place in version 1.23): this save going through staf when unrelated header |
112 |
|
file has been modified. |
113 |
|
Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without |
114 |
|
"make depend" step, still need to do "make links" before "make adtaf". |
115 |
|
o eesupp/src (+ few pkg src files) & genmake2: |
116 |
|
- finish to remove ALWAYS_USE_MPI in source code that TAF does not see; |
117 |
|
- no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2). |
118 |
|
- improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish |
119 |
|
upper/lower case ; account for space between "#" and undef/define) |
120 |
|
o pkg/flt (with exch2): |
121 |
|
- cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F; |
122 |
|
- simplify threads synchronisation; fix (many issues) multi-threaded with MPI. |
123 |
|
|
124 |
checkpoint63s (2012/09/05) |
checkpoint63s (2012/09/05) |
125 |
|
o pkg/ecco: |
126 |
|
- remove #ifdef ALLOW_SMOOTH_CORREL3D brackets. |
127 |
|
- add more relevant #ifdef ALLOW_SMOOTH ones. |
128 |
|
- sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D. |
129 |
|
o pkg/ctrl: |
130 |
|
- CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D, |
131 |
|
ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D. |
132 |
|
- ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag, |
133 |
|
doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and |
134 |
|
ctrlSmoothCorrel3D (new). |
135 |
|
The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP. |
136 |
|
- ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist. |
137 |
|
- ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress |
138 |
|
controls when useAtmWind, and vice versa. |
139 |
|
- ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers. |
140 |
|
- ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with |
141 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH. |
142 |
|
- ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with |
143 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH. |
144 |
|
- ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F: |
145 |
|
replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D. |
146 |
|
o pkg/smooth: |
147 |
|
- remove un-necessary includes. |
148 |
|
- remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets. |
149 |
|
Those CPP options were never defined, and not necessary. |
150 |
|
o model/src: |
151 |
|
- fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi). |
152 |
|
- standard treatment of useSMOOTH. |
153 |
|
o pkg/autodiff: |
154 |
|
- add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode, |
155 |
|
useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint. |
156 |
o pkg/exch2: |
o pkg/exch2: |
157 |
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
158 |
+ 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. |
159 |
- 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 |
160 |
and tiles to process mapping. |
and tiles to process mapping. |
161 |
- 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) |