4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
o pkg/grdchk : |
o pkg/seaice: |
8 |
|
- add "multicategory" parameterization for snow in analogy to ice, |
9 |
|
default is off for now. |
10 |
|
o pkg/obcs: |
11 |
|
- added obcs_seaice_sponge.F for obcs relaxation of seaice variables; |
12 |
|
see verification/seaice_obcs/input.seaiceSponge for example application. |
13 |
|
- remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB |
14 |
|
index setting by master-thread. This fix multi-threads Pb in previous modifs. |
15 |
|
o pkg/layers : |
16 |
|
- add diagnostics to pkg/layers |
17 |
|
- move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F |
18 |
|
(from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly. |
19 |
|
o pkg/generic_advdiff/gad_implicit_r.F : |
20 |
|
- fix ADVr diagnostics in case of both implicit vertical advection and diffusion. |
21 |
|
o pkg/seaice/seaice_growth.F: |
22 |
|
- fix SItflux diagnostics in virtual salt flux + balanceEmpmr case. |
23 |
|
o pkg/obcs: |
24 |
|
- change default setting of OBCS_UVICE_OLD from defined to undef; |
25 |
|
- use new parameter OB_indexNone for null index value (instead of hard-coded 0) |
26 |
|
in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F; |
27 |
|
- pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z; |
28 |
|
- change OB null index value (OB_indexNone) to -99 ; this fix the problem |
29 |
|
with Southern & Western OB at a tile edge (at least in a simple set-up). |
30 |
|
o pkg/obcs: |
31 |
|
- change settings of OB index in case OB coincides with tile edge (shared by |
32 |
|
2 tiles), so that common OB location is registered by both tiles (instead of |
33 |
|
only 1). However, for Southern and Western OB, index value = 0 is not |
34 |
|
recognized as valid OB index (=default null value) and needs to be fixed. |
35 |
|
- modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting) |
36 |
|
- new parameter "OB_indexNone" for null index value (for now, still zero) |
37 |
|
to replace hard-coded null index value of zero. |
38 |
|
o pkg/exch2: |
39 |
|
- improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON: |
40 |
|
always check buffer-size (but outside the loop); move checking for valid |
41 |
|
index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON, |
42 |
|
print each tile and point connection only if |W2_printMsg|>= 2 and 3. |
43 |
|
o pkg/ctrl (pack & unpack): |
44 |
|
- in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable |
45 |
|
(locally defined) for different variables (+ remove the variable-specific |
46 |
|
file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL |
47 |
|
(to be extended to other local file names in ctrl.h). |
48 |
|
o pkg/flt: |
49 |
|
- add a FLT_Iter0 option (similar to PTRACERS_Iter0). |
50 |
|
o pkg/mdsio: |
51 |
|
- fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing |
52 |
|
o tools/genmake2: |
53 |
|
- add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE |
54 |
|
(added by Alistair in version 1.51 for building without make depend); |
55 |
|
- remove Header files list (H_SRC_FILES) from the dependence of targets |
56 |
|
ad_input_code.f & ftl_input_code.f (not clear why it was added in the first |
57 |
|
place in version 1.23): this save going through staf when unrelated header |
58 |
|
file has been modified. |
59 |
|
Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without |
60 |
|
"make depend" step, still need to do "make links" before "make adtaf". |
61 |
|
o eesupp/src (+ few pkg src files) & genmake2: |
62 |
|
- finish to remove ALWAYS_USE_MPI in source code that TAF does not see; |
63 |
|
- no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2). |
64 |
|
- improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish |
65 |
|
upper/lower case ; account for space between "#" and undef/define) |
66 |
|
o pkg/flt (with exch2): |
67 |
|
- cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F; |
68 |
|
- simplify threads synchronisation; fix (many issues) multi-threaded with MPI. |
69 |
|
|
70 |
|
checkpoint63s (2012/09/05) |
71 |
|
o pkg/ecco: |
72 |
|
- remove #ifdef ALLOW_SMOOTH_CORREL3D brackets. |
73 |
|
- add more relevant #ifdef ALLOW_SMOOTH ones. |
74 |
|
- sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D. |
75 |
|
o pkg/ctrl: |
76 |
|
- CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D, |
77 |
|
ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D. |
78 |
|
- ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag, |
79 |
|
doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and |
80 |
|
ctrlSmoothCorrel3D (new). |
81 |
|
The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP. |
82 |
|
- ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist. |
83 |
|
- ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress |
84 |
|
controls when useAtmWind, and vice versa. |
85 |
|
- ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers. |
86 |
|
- ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with |
87 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH. |
88 |
|
- ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with |
89 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH. |
90 |
|
- ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F: |
91 |
|
replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D. |
92 |
|
o pkg/smooth: |
93 |
|
- remove un-necessary includes. |
94 |
|
- remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets. |
95 |
|
Those CPP options were never defined, and not necessary. |
96 |
|
o model/src: |
97 |
|
- fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi). |
98 |
|
- standard treatment of useSMOOTH. |
99 |
|
o pkg/autodiff: |
100 |
|
- add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode, |
101 |
|
useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint. |
102 |
|
o pkg/exch2: |
103 |
|
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
104 |
|
+ start to remove ALWAYS_USE_MPI in source code that TAF does not see. |
105 |
|
- make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag |
106 |
|
and tiles to process mapping. |
107 |
|
- re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h) |
108 |
|
moving /EXCH2_FILLVAL_RX/ & /W2_EXCH2_COMMFLAG/ to W2_EXCH2_TOPOLOGY.h; |
109 |
|
rename "exch2_tProc" to "W2_tileProc" and move seting of e2FillValue_RX |
110 |
|
from w2_eeboot.F to w2_readparms.F. |
111 |
|
o eesupp/src: |
112 |
|
- set exchNeedsMemsync & exchUsesBarrier according to "usingMPI" (instead of |
113 |
|
ALWAYS_USE_MPI) + moved from ini_communication_patterns.F to eeset_parms.F; |
114 |
|
also move setting of exchCollectStatistics from exch_init.F to eeset_parms.F |
115 |
|
- in eedie.F and all_proc_die.F, always call MPI_FINALIZE when ALLOW_USE_MPI |
116 |
|
is defined (remove condition on usingMPI) to match cases where MPI_INIT |
117 |
|
has been called. |
118 |
|
- fix bug I put in previous modif of exch_sm_3d_rx.template (not much used); |
119 |
|
- change default (non-MPI) value of myPid (from 1 to 0) to match MPI settings |
120 |
|
(so that on 1 proc, get same myPid independently of usingMPI) |
121 |
|
- add a stop if multi-procs but usingMPI=F ; stop also if usingMPI=T and |
122 |
|
useCubedSphereExchange with EXCH-1 (safer). |
123 |
|
- add "if usingMPI" where it was missing (+ start to remove ALWAYS_USE_MPI). |
124 |
|
o pkg/ggl90: |
125 |
|
- fix bug in filling corner mask array "mskCor" (FILL_CS_CORNER_TR_RL call) |
126 |
|
used in ALLOW_GGL90_SMOOTH code. |
127 |
|
o pkg/flt: |
128 |
|
- fix typo in FLT_WITHOUT_Y_PERIODICITY (the effect was to ignore stopping |
129 |
|
floats at the Southern end of the domain). |
130 |
|
o eesupp/inc: |
131 |
|
- add a list of CPP-options which can be set by Makefile (DEF_IN_MAKEFILE.h); |
132 |
|
but not used (and not to be used) anywhere, just for documentation. |
133 |
|
o pkg/autodiff, exf, ptracers & seaice (AD & TL output): |
134 |
|
- comment out the very nasty "writeBinaryPrec = writeStatePrec" line, since: |
135 |
|
a) can damage previously written records in any other multi-record files. |
136 |
|
b) if needed, can easily do it cleanly, by calling S/R WRITE_REC_3D_RL/S. |
137 |
|
o tools/genmake2: |
138 |
|
- define variable MAKE within Makefile and use it in place of 'make'; |
139 |
|
- update AD_CONFIG.h (if needed) before building any of the executable |
140 |
|
(forward, adjoint or tangent-lin); this involves a 2nd invocation of make; |
141 |
|
and add the usual #ifndef/#define AD_CONFIG_H in AD_CONFIG.h; |
142 |
|
- always print usual warning comment 'this file is automatically generated' |
143 |
|
from script convert_cpp_cmd2defines (+ remove this warning from genmake2). |
144 |
|
o pkg/cheapaml: |
145 |
|
- updated to correspond to the code used in accepted paper (Nico Wienders). |
146 |
|
o pkg/exf: |
147 |
|
added run time switch useAtmWind to replace ALLOW_ATM_WIND cpp switch. |
148 |
|
ALLOW_ATM_WIND now just sets the useAtmWind default (see exf_readparms.F) |
149 |
|
and force defines ALLOW_BULKFORMULAE (EXF_OPTIONS.h). |
150 |
|
o pkg/exf, autodiff, ctrl, ecco and seaice: |
151 |
|
remove ALLOW_ATM_WIND brackets, or replace them with useAtmWind ones. |
152 |
|
o pkg/ctrl, ecco: |
153 |
|
allow to compile both ALLOW_U/VSTRESS_CONTROL and ALLOW_U/VWIND_CONTROL. |
154 |
|
Depending on useAtmWind, one is inactive, and the other is active (see |
155 |
|
exf_getffields.F/exf_getsurfacefluxes.F). |
156 |
|
o tools/genmake2: |
157 |
|
- improve error msg when failing in 2nd test of check_for_broken_Ff |
158 |
|
- fix option '-makefile' short-name (-mf according to genmake2 -help) |
159 |
|
- source local config file "genmake_local" just after processing the genmake2 |
160 |
|
command arguments (previously done before processing arg). |
161 |
|
o pkg/grdchk: |
162 |
|
- add a call to TURNOFF_MODEL_IO for Tangent-Linear run (in this case, call |
163 |
|
to this routine from cost_final has been dropped in g_cost_final) |
164 |
|
- improve printed information (more explicit msg, no longer using "print *," |
165 |
|
fix fcpertminus printed value). |
166 |
|
o model/src: |
167 |
|
- move call to COST_INIT_VARIA out of packages_init_variables.F directly |
168 |
|
into initialise_varia.F (just after calling PACKAGES_INIT_VARIABLES): |
169 |
|
this prevents getting cost-funct reset in adinitialise_varia recomputations. |
170 |
|
o pkg/dic: |
171 |
|
- move initialisation of "freefe" array from from dic_biotic_forcing.F to |
172 |
|
fe_chem.F: this prevents TAF from dropping this initialisation in TLM code. |
173 |
|
o pkg/grdchk: |
174 |
- grdchk_main.F : added CALL GLOBAL_SUM_INT( ierr , myThid ) |
- grdchk_main.F : added CALL GLOBAL_SUM_INT( ierr , myThid ) |
175 |
- grdchk_getadxx.F etc. : omit I/O if ierr.EQ.0 |
- grdchk_getadxx.F etc. : omit I/O if ierr.EQ.0 |
176 |
o pkg/autodiff/ctrl/grdchk : |
o pkg/autodiff/ctrl/grdchk : |
177 |
- attempt to sort out what works and what does not, |
- attempt to sort out what works and what does not, |
178 |
with regard to I/O, and to warn/stop accordingly. |
with regard to I/O, and to warn/stop accordingly. |
179 |
o pkg/grdchk : |
o pkg/grdchk: |
180 |
- attempt to fix grdchk in the case of useSingleCpuIO. |
- attempt to fix grdchk in the case of useSingleCpuIO. |
181 |
- "if ( myProcId .EQ. grdchkwhichproc .AND. ierr .EQ. 0 )" |
- "if ( myProcId .EQ. grdchkwhichproc .AND. ierr .EQ. 0 )" |
182 |
statements were moved from grdchk_main.F and into |
statements were moved from grdchk_main.F and into |
183 |
grdchk_getadxx.F grdchk_getxx.F grdchk_setxx.F. |
grdchk_getadxx.F grdchk_getxx.F grdchk_setxx.F. |
184 |
- a global sum is applied to record numbers icvrec/layer |
- a global sum is applied to record numbers icvrec/layer |
185 |
out of grdchk_loc so that they be passed to I/O routines. |
out of grdchk_loc so that they be passed to I/O routines. |
186 |
o pkg/smooth : |
o pkg/smooth: |
187 |
- fix recomputation that appeared with nlfs : use smooth_recip_hFacC, |
- fix recomputation that appeared with nlfs : use smooth_recip_hFacC, |
188 |
smooth_hFacW, smooth_hFacS (copied at init_fixed) in 3d case. |
smooth_hFacW, smooth_hFacS (copied at init_fixed) in 3d case. |
189 |
o verification/testreport: |
o verification/testreport: |
190 |
- add option '-tlm' for Tangent-Linear test (-adm,-oad,-tlm are all exclusive); |
- add option '-tlm' for Tangent-Linear test (-adm,-oad,-tlm are all exclusive); |