4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o fix CPP-flag REAL4_IS_SLOW, when _RS expands into real*4 |
8 |
|
(#undef REAL4_IS_SLOW) |
9 |
|
- pkg/mnc/mnc_cw_cvars.F: write _RS-grid variable as netcdf-real*4 |
10 |
|
coordinate variable |
11 |
|
- pkg/monitor/monitor.F: call mon_printstats_rs for _RS variables |
12 |
|
(surface forcing fields), removes some of the functionality |
13 |
|
- model/src/write_grid.F: write _RS variables as RS-netcdf variables |
14 |
|
- model/src/diags_oceanic_surf_flux.F: fix a few diagnostics, but |
15 |
|
probably not all: copy _RS surface flux fields to RL field before |
16 |
|
calling DIAGNOSTICS_FILL |
17 |
|
- model/inc/CPP_EEMACROS.h: make the _EXCH_*_RS macros expand into |
18 |
|
real*4 (CALL EXCH_*_RS) versions. |
19 |
|
- tested in 2 experiments: inverted_barometer & solid-body.cs-32x32x1 |
20 |
|
(generate new output). |
21 |
|
|
22 |
|
checkpoint61e |
23 |
|
o gmredi (Visbeck-variable-K): |
24 |
|
- fix the "OLD_VISBECK_CALC" option + move the #undef to GMREDI_OPTIONS.h |
25 |
|
- change computation of Visbeck-K where Slope > Smax : |
26 |
|
now: N*min(Slope,Smax) (similar to OLD_VISBECK_CALC with gkw91 taperFct) |
27 |
|
previously was: M*sqrt(min(Slope,Smax)) ; update ideal_2D_oce output. |
28 |
|
o bottom-drag in P-coord.: change units of bottomDragLinear & bottomDragQuadratic |
29 |
|
to be the same as with Z-coord. (i.e., m/s & no-units respectively). |
30 |
|
o calc_viscosity: fix index range (was wrong for CD-Scheme & explicit Visc) |
31 |
|
o pkg gmredi, linear & fm07 tapering: put an upper limit on Slope^2 so that Kwz |
32 |
|
does not become too large (to avoid precision problems in implicit-diffusion |
33 |
|
solver); update ideal_2D_oce output. |
34 |
|
o pkg ggl90: |
35 |
|
- in ggl90_cal.F: compute only one set of visc/diff, used to |
36 |
|
step forward TKE/T/S/momentum |
37 |
|
- default value of GGL90viscMax/GGL90diffMax larger and equal (to |
38 |
|
have Prandlt =1) |
39 |
|
o gmredi (fm07): |
40 |
|
- add lower limit on Transition layer thickness + lower limit on 1/lambda |
41 |
|
- allow to set few more params from data.gmredi |
42 |
|
o pkg ggl90: |
43 |
|
- add missing sqrt(2) factor in computation of mixing length |
44 |
|
scale in ggl90_calc.F |
45 |
|
(see Eq. (2.35) in Blanke and Delecluse, JPO, 1993) |
46 |
|
|
47 |
|
checkpoint61d |
48 |
|
o adjoint modifs |
49 |
|
- adapt to new field rhoInSitu |
50 |
|
- allow to revert from StoreDynVars2D, StoreDynVars3D |
51 |
|
to individual fields |
52 |
|
(switches AUTODIFF_USE_OLDSTORE_2D, AUTODIFF_USE_OLDSTORE_3D) |
53 |
|
o store 3-D (in-situ) density in commom block (DYNVARS.h) |
54 |
|
- save 1 rho computation. |
55 |
|
- no longer modify T & S inland when using down_slope pkg. |
56 |
|
o gad_som : allow to switch to SOM advection for T & S without corresponding |
57 |
|
pickup files (using new S/R: MDS_CHECK4FILE). |
58 |
|
o keep removing _BEGIN/_END_MASTER between MDSIO S/R call |
59 |
|
(for useSingleCpuIO to work in multi-threaded) |
60 |
|
o pkg/shelfice: |
61 |
|
- disentangle parameters: retire shelfIceFile in data/PARM05 and substitute |
62 |
|
with SHELFICEtopoFile in data.shelfice |
63 |
|
- move code for reading ice shelf topography and modifying hFacC into separate |
64 |
|
subroutines of the shelfice package |
65 |
|
- separate initialisation of "fixed" and "variable" variables |
66 |
|
- kTopC is not (yet) replaced by kSurfC, although this is possible |
67 |
|
o fix broken diagnostic SIatmFW and changed the units from m/s to kg/m^2/s |
68 |
|
o add initialisation of deepFac if using Pcoords (new S/R set_grid_factors) |
69 |
|
and rename: |
70 |
|
ini_phiref.F --> set_ref_state.F (+ set anelastic factors) |
71 |
|
ini_reference_state.F --> load_ref_files.F (- set anelastic factors) |
72 |
|
o change FIND_RHO_SCALAR : return rho (instead of rho - rhoConst) |
73 |
|
|
74 |
|
checkpoint61c |
75 |
|
o add option ALLOW_ADDFLUID and run-time selector "selectAddFluid" |
76 |
|
to add mass source/sink of fluid in the interior (3-D generalisation |
77 |
|
of oceanic real-fresh water flux). |
78 |
|
o pkg/monitor: fix recip_dr argument in mon_advcflw2 call (-> advcfl_W_hf_max) |
79 |
|
o vermix test experiment: switch from LINEAR EOS to MDJWF (not tested before) |
80 |
|
o new pkg: down_slope |
81 |
|
density-driven downsloping flow parameterisation (Tellus, 1999, 412-430). |
82 |
|
- presently, modify T & S inland (dwnslp_calc_rho.F). |
83 |
|
can be avoided if rho was stored in common bloc and used in calc_phi_hyd. |
84 |
|
- implementation for ocean in P-coords not tested. |
85 |
|
- add secondary test to global_ocean.90x40x15 (input.dwnslp) to check this pkg. |
86 |
|
o move kSurfC,kSurfW & kSurfS from SURFACE.h to GRID.h (next to kLowC) |
87 |
|
(to facilitate conversion of oceanic pkg to p-coordinate). |
88 |
|
o change FIND_RHO to FIND_RHO_2D : |
89 |
|
pass arguments tFld & sFld as local (tile) 2D-arrays ; +fix EOS_CHECK. |
90 |
|
o new pkg: cheapaml |
91 |
|
|
92 |
|
checkpoint61b |
93 |
|
o exch2: |
94 |
|
change index bounds in rx2_cube exchanges (new S/R: EXCH2_GET_UV_BOUNDS) |
95 |
|
- no longer depend on the order sequence (N,S,E,W). |
96 |
|
- 3rd exchange no longer needed (tested with 24 tiles). |
97 |
|
- same modif to hand-written adjoint S/R (global_ocean.cs32x15: zero diff) |
98 |
|
- exch_UV_A-grid readily available (but not yet tested). |
99 |
|
comment out 3rd exch call and remove copy of V to U at SE & NE face-corners |
100 |
|
(both are no longer needed) in exch_uv: no effect in forward run; but |
101 |
|
get truncation error differences with adjoint exch. |
102 |
|
o exch2: |
103 |
|
- change index-bounds storage (moved from target to local tile, |
104 |
|
more intuitive this way) ; rename/remove some variables. |
105 |
|
- change utils/exch2/matlab-topology-generator & code_mods accordingly. |
106 |
|
|
107 |
|
checkpoint61a |
108 |
|
o exch2/matlab-topology-generator: |
109 |
|
fix bug in index bounds for N-S internal exchange (hard to tell if this |
110 |
|
had any effect on the solution). |
111 |
|
o pkg/mnc: small fix in mnc_handle_err: make sure that length of msgbuf |
112 |
|
is exceeded |
113 |
|
o testreport: modify syntax of awk, so that it works also with |
114 |
|
awk, and not only with nawk and gawk |
115 |
|
|
116 |
|
checkpoint61 |
117 |
|
o autodiff |
118 |
|
Change default for TAF usage by removing argument '-nonew_arg' |
119 |
|
This changes TAF subroutine argument list (ordering of active var.) |
120 |
|
Omission of this flag leads to incompatibility w.r.t. TAMC |
121 |
|
To restore TAMC-compatibility, need following modifs: |
122 |
|
* use adoptfile tools/adjoint_options/adjoint_tamc_compatibility |
123 |
|
* use CPP option #define AUTODIFF_TAMC_COMPATIBILITY |
124 |
|
Tested TAF version is 1.9.22 |
125 |
|
N.B.: exch2 hand-written adjoint code currently not TAMC compatible |
126 |
|
|
127 |
|
checkpoint60 |
128 |
|
--->>> This is the last checkpoint for which generating the adjoint |
129 |
|
--->>> is done via the TAMC-compatibility TAF-flag "-nonewarg" |
130 |
|
--->>> by default. |
131 |
|
--->>> Future checkpoints will ommit this flag by default. |
132 |
|
o pkg/generic_advdiff, os7mp: simplify and avoid division by zero. |
133 |
|
o pkg/grdchk: Add gradient check to etan0 perturbations. |
134 |
|
o pkg/exf: read ice area from file (#ifdef ALLOW_ICE_AREAMASK). |
135 |
|
o pkg/autodiff: more flexibility in zeroadj. |
136 |
|
model/src: modifying do_oceanic_phys.F accordingly. |
137 |
|
o pkg/ctrl: Bounds for (kapgm,kapredi,eddypsi) parameter estimation. |
138 |
|
o model/src and pkg/gmredi: GMREDI_WITH_STABLE_ADJOINT CPP option |
139 |
|
special setup of gmredi for which the adjoint is stable |
140 |
|
enough for parameter optimization. |
141 |
|
o bridging the gap between eddy stress and GM. |
142 |
|
-> eddyTau is replaced with eddyPsi (eddyTau = f x rho0 x eddyPsi) |
143 |
|
along with a change in CPP option (now ALLOW_EDDYPSI). |
144 |
|
-> when using GM w/ GM_AdvForm: |
145 |
|
The total eddy streamfunction (Psi = eddyPsi + K x Slope) |
146 |
|
is applied either in the tracer Eq. or in momentum Eq. |
147 |
|
depending on data.gmredi (intro. GM_InMomAsStress). |
148 |
|
-> ALLOW_EDDYPSI_CONTROL for estimation purpose. |
149 |
|
The key modifications are in model/src/taueddy_external_forcing.F |
150 |
|
pkg/gmredi/gmredi_calc_*F pkg/gmredi/gmredi_*transport.F |
151 |
|
|
152 |
|
checkpoint59r |
153 |
|
o new S/R (pkg/mdsio/mdsio_facef_read.F) reading of sNx+1 x sNy+1 array |
154 |
|
from per-face file (take S/R READSYMTILE_RS out of ini_curvilinear_grid.F); |
155 |
|
fix option to read coriolis(@ cell-corner) from files with CS-grid. |
156 |
|
o pkg/mnc: add some attributes to standard 1D-coordinate variables |
157 |
|
o pkg/diagnostics: enforce missing_value attribute for scalar variables at |
158 |
|
mass points, when using mnc for output |
159 |
|
- add runtime parameter (missing_value, missing_value_int) to override |
160 |
|
default (which is the value of getcon('UNDEF')) |
161 |
|
o pkg/mnc: prepare mnc for the actual use of missing values with the |
162 |
|
diagnostics package: small fix in mnc_cw_readwrite.template and more |
163 |
|
initialisation of never used fields |
164 |
|
- replace mnc_common.h and mnc_id_header.h with corresponding upper case |
165 |
|
versions |
166 |
|
o pkg/thsice/thsice_ini_vars.F added default initial values so that |
167 |
|
thermodynamics sea ice solver does not blow up when some initial fields |
168 |
|
are missing. |
169 |
|
o move from external_forcing_surf.F to ini_forcing.F |
170 |
|
the p-coord. hack consisting in using pLoad to set phi0surf ; |
171 |
|
update output of tutorial_global_oce_in_p (affected @ truncation level). |
172 |
|
o Freshen up a bit hs94.1x64x5, notably: |
173 |
|
remove rotationPeriod and tRef=5*0. (adjoint only), and add |
174 |
|
exactConserv=.TRUE. |
175 |
|
o pkg/generic_advdiff: |
176 |
|
change option GAD_ALLOW_SOM_ADVECT to GAD_ALLOW_TS_SOM_ADV which only |
177 |
|
applies to files where Temperature & Salinity 2nd Order moments are used. |
178 |
|
o pkg/ptracers: add second-order moment advection schemes (80 and 81); |
179 |
|
this uses a dynamically allocated internal state data structure |
180 |
|
(#define PTRACERS_ALLOW_DYN_STATE in PTRACERS_OPTIONS.h) |
181 |
|
and requires a fortran 90 compiler |
182 |
|
|
183 |
|
checkpoint59q |
184 |
|
o pkg/mom_vecinv: Add energy & enstrophy conserving scheme (selectVortScheme=3) |
185 |
|
(from Sadourny, described by Burridge & Haseler, ECMWF Rep.4, 1977) |
186 |
|
o Refresh tutorial_global_oce_biogeo, notably: |
187 |
|
- change bathymetry (put back seamounts in ACC, use hFacs) |
188 |
|
- change EOS (POLY3 --> JMD95Z) |
189 |
|
- use Bryan-Lewis vertical diffusivity |
190 |
|
- use multidimensional advection |
191 |
|
- remove old virtual virtual in dic pkg, now done through ptracer pkg |
192 |
|
- change a couple of parameters in dic pkg |
193 |
|
o pkg/ctrl: change formula in adctrl_bound.F and add a parameter to ctrl_map_ini_gen.F |
194 |
|
o pkg/obcs: change default to OBCSfixTopo = .true., |
195 |
|
- set OBCSfixTopo=.false. in exp4/input/data.obcs to reproduce old result |
196 |
|
- replace "debugMode" with "debugLevel .GE. debLevB" |
197 |
|
o implementation of TAF directives for gchem,cfc,dic |
198 |
|
o remove "exp5" (replaced by tutorial_deep_convection). |
199 |
|
o pkg/obcs: add code to fix topography gradients normal to open boundaries; |
200 |
|
this requires computing the index fields OB_Jn/Js/Ie/Iw in obcs_readparms; |
201 |
|
the code can be turned on by setting OBCSfixTopo = .true. in data.obcs |
202 |
|
--> changes results in exp4, seaice_obcs |
203 |
|
o tutorial_deep_convection : |
204 |
|
update the set-up and increase resolution and domain size ; start |
205 |
|
from pseudo initial conditions = output at t=120mn in order to see |
206 |
|
something happening when running testreport. |
207 |
|
o pkg/seaice: add os7mp as an advection scheme |
208 |
|
add check for advection schemes |
209 |
|
add a flag for restoring T and S underneath sea ice |
210 |
|
o pkg/my82: add netcdf-support and diagnostics |
211 |
|
o thsice pkg: |
212 |
|
- Now hsMax limits snow height by turning it into ice following |
213 |
|
flooding scheme (and now conserving energy) |
214 |
|
- Slight rewriting of the formula in thsice_calc_thick.F |
215 |
|
- Parameter rhowi eliminated to be replaced by floodFac = (rhosw-rhoi)/rhos |
216 |
|
--> changes results of global_ocean.cs32x15.icedyn and global_ocean.cs32x15.thsice |
217 |
|
|
218 |
|
checkpoint59p |
219 |
|
o gchem / dic / cfc : |
220 |
|
- add useDIC, useCFC , read from "data.gchem" (& hold in GCHEM.h); |
221 |
|
- add new parameter files: "data.dic" & "data.cfc" ; |
222 |
|
- various re-arrangement in initialisation & header file ; |
223 |
|
- fix tutorial_global_oce_biogeo for multi-threaded test. |
224 |
|
o pkg/dic: test for "pickup_dic" file when restarting ; |
225 |
|
if no pickup-file, can restart with a re-initialised pH (same as it did |
226 |
|
before) providing pickupStrictlyMatch is set to False. |
227 |
|
o change argument list of S/R PTRACERS_WRITE_PICKUP & MYPACKAGE_WRITE_PICKUP |
228 |
|
+ fix call to S/R GGL90_WRITE_PICKUP & DIC_WRITE_PICKUP |
229 |
|
o add a "warning" (to Error msg file) when an Active Tracer is not using AB-2 |
230 |
|
and staggerTimeStep is off (needed for stability of Internal-wave dynamics). |
231 |
|
o move out of PARAMS.h & data the last pieces of old-ptracer code: tauTr1ClimRelax, |
232 |
|
& lambdaTr1ClimRelax ; put those 2 params in PTRACERS_PARAMS.h & data.ptracers |
233 |
|
(note: not clear to me what lambdaTr1ClimRelax is still used for ...) |
234 |
|
o pkg/mom_vecinv: - new parameter "selectVortScheme" to select which |
235 |
|
scheme to use for vorticty-term ; |
236 |
|
- compute upwindVorticity=T case within mom_vi_u/v_coriolis_c4.F |
237 |
|
(with default selectVortScheme, return to original discretisation) |
238 |
|
- remove weird combination (e.g.: upwindVorticity & highOrderVorticity) |
239 |
|
o pkg/seaice: add a line to the summary to indicate grid type (B/C) |
240 |
|
o in mom_calc_visc, fix average value of viscAh_W & viscA4_W next to the |
241 |
|
bottom ; only used with variable horizontal viscosity and non-hydrostatic. |
242 |
|
also fix diagnostics VISCAHW & VISCA4W. |
243 |
|
|
244 |
checkpoint59o |
checkpoint59o |
245 |
o dome/code/obcs_calc.F: avoid division by zero (detected using gfortran). |
o dome/code/obcs_calc.F: avoid division by zero (detected using gfortran). |
246 |
o change the loop ordering in most gad_*_adv_x.F to improve vectorization: |
o change the loop ordering in most gad_*_adv_x.F to improve vectorization: |