4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o array initialisation in adjoint mode: |
8 |
|
1) pkg/mom_common/mom_calc_ke.F: |
9 |
|
add full array initialisation of KE inside mom_calc_ke.F (ALLOW_AUTODIFF_TAMC): |
10 |
|
The S/R which calls MOM_CALC_KE initialises KE but in some recomputation |
11 |
|
part this initialisation is gone, resulting in Floating Point Exception |
12 |
|
(caught by open64 compiler with debug option). |
13 |
|
2) model/src/convective_weights.F |
14 |
|
set output convectCount over the full array range (instead of doing |
15 |
|
an update): this fix a similar issue when called within recomputation (adjoint) |
16 |
|
which could by-pass the initialisation (normally done in the caller S/R). |
17 |
|
o pkg/seaice: |
18 |
|
- final version of turbulent flux params, as agreed at MIT ice meet: |
19 |
|
SEAICE_mcPheePiston (default is ~ 0.000875) |
20 |
|
SEAICE_mcPheeTaper (default is 0.) |
21 |
|
SEAICE_frazilFrac (defualt is 1.) |
22 |
|
SEAICE_mcPheeStepFunc (default is false) |
23 |
|
- changes results at trunction error level |
24 |
|
- ifdef SEAICE_EXTERNAL_FLUXES, disallow SEAICE_waterAlbedo |
25 |
|
o added pkg/frazil: |
26 |
|
- see frazil_description.tex for details |
27 |
|
- verification experiment is global_with_exf/input.yearly; changes output.yearly.txt |
28 |
|
o pkg/shelfice/shelfice_thermodynamics.F |
29 |
|
- fix exponents for velocity dependent exchange coefficients: change |
30 |
|
from 2/3(=0) to 0.66666666666666667 |
31 |
|
- move computation of velocity dependent exchange coefficients into |
32 |
|
separate loop, so that it applies to both thermodynamics |
33 |
|
- move some divisions by constants out of loops |
34 |
|
|
35 |
|
checkpoint63j (2012/02/16) |
36 |
|
o pkg/seaice: |
37 |
|
- overhaul of seaice_summary.F after feb 2012 clean-up of seaice_growth.F etc. |
38 |
|
- SItracer: added run time params, and allow coupling to ocn salinity. |
39 |
|
o pkg/seaice: remove (almost) all divisions by constants within loops |
40 |
|
in seaice_growth.F and seaice_solve4temp.F, this changes (only) the cg2d |
41 |
|
results of global_ocean.cs32x15.seaice from 16 to 11 digits (but only |
42 |
|
those, caused by 1/QI -> recip_QI) -> update output.seaice.txt, |
43 |
|
output_adm.seaice_dynmix.txt and also lab_sea: output_adm.evp.txt |
44 |
|
o pkg/seaice : |
45 |
|
- simplify McPhee tapering, and allow to use it with SEAICEturbFluxFormula |
46 |
|
= 1 or 2, using newly added run time parameter SEAICE_availHeatTaper. |
47 |
|
- fix d_AREAbyATM, d_AREAbyOCN, d_AREAbyICE diags I broke in r1.148. |
48 |
|
- add permanent SItflux diag that corresponds to TFLUX but includes |
49 |
|
ice+snow. Hence SItflux-TFLUX should match the ice+snow heat budget. |
50 |
|
- allow activation/testing of a fix for suspected missing term in |
51 |
|
ocn-ice heat budget (to be confirmed). To test this, you want to |
52 |
|
undef SEAICE_DISABLE_HEATCONSFIX, and then set the run time param |
53 |
|
SEAICEheatConsFix to .TRUE. that also allows the 'SIaaflux' diagnostic. |
54 |
|
- no change in results, fwd or ad. |
55 |
|
o global_ocean.cs32x15/results: 3 changes following from the pkg/seaice commit below: |
56 |
|
- switch to variable freezing point. |
57 |
|
Results change : cg2d -> 1 digits; ad -> 3-6-6 digits. |
58 |
|
- bug fix : the sublimation term that was missing is now activated. |
59 |
|
Results change : cg2d -> 2 digits; ad -> 8-6-6 digits. |
60 |
|
- bug fix : flooding sign term for SIsal0.NE.0. |
61 |
|
Result change : cg2d -> 8 digits; ad -> 11-12-9 digits. |
62 |
|
o pkg/seaice: |
63 |
|
- unified freezing point treatment : the old SEAICE_VARIABLE_FREEZING_POINT |
64 |
|
is now the default, and the old default constant freezing point is recovered |
65 |
|
with SEAICE_tempFrz0 = -1.96, |
66 |
|
SEAICE_dTempFrz_dS = 0., |
67 |
|
- retire SEAICE_freeze (= the old way of specifycing the constant freezing point) |
68 |
|
- remove ALLOW_SEAICE_FLOODING brackets; run time switch is already there. |
69 |
|
- bug fix (thanks to M. Losch) : the sublimation term that was missing is now |
70 |
|
activated. To reproduce old results with this bug define SEAICE_DISABLE_SUBLIM. |
71 |
|
- bug fix (silly me) : flooding sign term (seaice_growth.F r 1.149line 1211) |
72 |
|
was wrong for SIsal0.NE.0. Changes cs32x15 results (see above item for detail). |
73 |
|
- bug fix (thanks to O. Jahn) : area loss for melting got messed up in |
74 |
|
seaice_growth r149 for legacy branch (no results change). |
75 |
|
- introduce SEAICE_CAP_SUBLIM : caps sublimation heat flux in solve4temp (code |
76 |
|
from I. Fenty). |
77 |
|
- results did not change except for global_ocean.cs32x15, mostly due to the |
78 |
|
switch to variable freezing point (see above item for detail). |
79 |
|
o pkg/thsice: |
80 |
|
- fix and simplify interface to salt_plume pkg ; diagnose directly amount of |
81 |
|
seawater freezing in thsice_calc_thickn (not used). |
82 |
|
o pkg/seaice: turbulent flux term specification via run time params. |
83 |
|
- replace CPP switches with run time switches to facilitate testing |
84 |
|
- retired CPPs : MCPHEE_OCEAN_ICE_HEAT_FLUX, |
85 |
|
GRADIENT_MIXED_LAYER_TURBULENCE_FACTOR |
86 |
|
- added runtime parameter : SEAICEturbFluxFormula |
87 |
|
- move Mcphee constants to SEAICE_PARAMS.h |
88 |
|
- seaice_readparms.F : read turbulent flux term params (SEAICEturbFluxFormula; |
89 |
|
SEAICE_availHeatFrac/Frz, or SEAICE_gamma_t/_frz if apply); |
90 |
|
remove seaice_summary call (moved to seaice_init_fixed) |
91 |
|
- seaice_init_fixed.F : set SEAICE_availHeatFrac/Frz depending on |
92 |
|
SEAICEturbFluxFormula, and seaice_summary call (moved from seaice_readparms) |
93 |
|
- seaice_summary.F : add missing report of read turbulent flux term set up |
94 |
|
and SITRACER. |
95 |
|
- seaice_check.F : check range; inform and stop if retired CPPs are used |
96 |
|
(incl. SEAICE_AGE). |
97 |
|
- seaice_growth.F : unified use of SEAICE_availHeatFrac/Frz, without |
98 |
|
CPP switch, same computation as before for the different options. |
99 |
|
- change results at the truncation level. |
100 |
|
o pkg/seaice: |
101 |
|
- remove un-used parameters LAD & MAX_TICE ; add new run-time parameters: |
102 |
|
useMaykutSatVapPoly (default=F), postSolvTempIter (default=2) and |
103 |
|
SEAICE_wetAlbTemp (default=-1e-3). Remove option SEAICE_SOLVE4TEMP_LEGACY. |
104 |
|
- update verification/*/input*/data.seaice: |
105 |
|
to reproduce previous results with former #defined SEAICE_SOLVE4TEMP_LEGACY |
106 |
|
code, set useMaykutSatVapPoly=T & postSolvTempIter=0 ; |
107 |
|
and to reproduce previous results with former non-SOLVE4TEMP_LEGACY code, |
108 |
|
set SEAICE_wetAlbTemp=0 & SEAICE_snowThick=0. |
109 |
|
o pkg/seaice/seaice_solve4temp.F (SOLVE4TEMP_LEGACY): |
110 |
|
- remove LEGACY code for solving for tsurf (A1,A2,A3) but maintain the same |
111 |
|
algorithm (same choice: useMaykutPolySatVap=T, postSolvTempIter=0); |
112 |
|
difference in results only due to machine truncation. |
113 |
|
- remove MAX_TICE (tsurf is always =< TMELT anyway); keep MIN_TICE if using |
114 |
|
MaykutPolySatVap; keep MIN_LWDOWN. |
115 |
|
- adapt SEAICE_MODIFY_GROWTH_ADJ code (untested) to non-legacy formulation. |
116 |
|
- update output of verification exp. lab_sea (4 fwd: 11 cg2d digits except hb87, |
117 |
|
+ 3 AD: 6 digits except evp) and offline_exf_seaice.seaice (12 digits). |
118 |
|
o pkg/salt_plume: |
119 |
|
- isolate saltPlumeFlux array exch into a specific S/R called from |
120 |
|
do_oceanic_phys.F |
121 |
|
- add interface to pkg/salt_plume (filling of saltPlumeFlux) in pkg/thsice. |
122 |
|
o verification: |
123 |
|
- move untested set-up to MITgcm_contrib/verification_other. |
124 |
|
o pkg/seaice: |
125 |
|
- retire old way of SEAICE_AGE. Now replaced with ALLOW_SITRACER. |
126 |
|
o pkg/seaice: |
127 |
|
- seaice_solve4temp.F (keeping results unchanged): |
128 |
|
* add 2 future run-time params to select which saturation vapor pressure |
129 |
|
formula is used and how post-iteration fluxes are set. |
130 |
|
Temporary set these 2 params according to option SOLVE4TEMP_LEGACY; |
131 |
|
* New piece of code (not used) to update surf. atmos. heat flux F_ia using |
132 |
|
the linearized expression to stay consistent with tsurf finding. |
133 |
|
- seaice_freedrift.F avoid floating exception in sqrt(y) since y=sqrt(x*x)-x |
134 |
|
can be < 0. |
135 |
|
o pkg/seaice/seaice_solve4temp.F (SOLVE4TEMP_LEGACY undef): |
136 |
|
- remove from F_ia (and from it's derivative dFiDTs1) the contribution of |
137 |
|
conductive heat flux F_c , and add it explicitly when updating tsurf as |
138 |
|
solution of: Fc = Fia + d/dT(Fia - Fc) *delta.tsurf |
139 |
|
so that now F_ia has a consistent meaning through the entire routine. |
140 |
|
This causes differences at truncation level: update output of fwd exp. |
141 |
|
global_ocean.cs32x15.seaice. |
142 |
|
o pkg/seaice: |
143 |
|
- lots of editing/cleaning in seaice_solve4temp.F + better documentation |
144 |
|
of arrays, sign/direction of fluxes; no effect on results. |
145 |
|
- replace hard coded 273.16 (=previous value of celsius2K) by celsius2K |
146 |
|
in seaice_budget_ocean.F & seaice_solve4temp.F (SOLVE4TEMP_LEGACY part); |
147 |
|
note: this should have been done before changing celsius2K default. |
148 |
|
- to keep results unchanged, add back old value of celsius2K in verification |
149 |
|
exp. input*/data : lab_sea (AD), offline_exf_seaice (fwd+AD) & seaice_obcs |
150 |
|
- replace hard coded seawater freezing temp in seaice_solve4temp.F (part |
151 |
|
SOLVE4TEMP_LEGACY) of 271.20 (=previous value of celsius2K + default |
152 |
|
value of SEAICE_freeze) by celsius2K+SEAICE_freeze so that seawater |
153 |
|
freezing temp is consistent with value in seaice_growth.F ; this causes |
154 |
|
differences at machine truncation level: update lab_sea AD output (3/4). |
155 |
|
o pkg/seaice: |
156 |
|
- mask (in exf_init_fixed.F) atemp,aqh,evap,precip,runoff,lwflx,areamask |
157 |
|
and climsst/sss even when using seaice (to prevent calculation that might |
158 |
|
use SST on land); does not affect any verification exp. |
159 |
|
- apply mask to taux,tauy (in seaice_get_dynforcing.F); update output |
160 |
|
of lab_sea.fd & lab_sea.hb87 and global_ocean.cs32x15.seaice_dynmix. |
161 |
|
o pkg/seaice/seaice_growth.F: add mask to avoid non-zero ice thickness |
162 |
|
over land (non-legacy code) |
163 |
|
o vectorize salt_plume package: |
164 |
|
- add extra code to salt_plume_frac and salt_plume_tendency_apply_s |
165 |
|
- this code computes plumebk everywhere (also over land), thus requires |
166 |
|
code to avoid divisions by zero and catch the case of kLev=Nr. |
167 |
|
- efficiency of salt_plume_frac is still sub-optimal |
168 |
|
o tools (genmake2): |
169 |
|
- fix makefile NAME specification (option: -makefile NAME) by adding |
170 |
|
"-f $MAKEFILE" in few places where it was missing including makedepend |
171 |
|
command (contribution from Paul). |
172 |
|
|
173 |
|
checkpoint63i (2012/01/24) |
174 |
|
o model/src: |
175 |
|
- add factorized versions of some EOS code to find_rho.F, |
176 |
|
define USE_FACTORIZED_EOS to turn it on (default for TARGET_NEC_SX) |
177 |
|
o model/src: |
178 |
|
- add celsius2K to namelist PARM01; remove unused recip_rhoNil from PARAMS.h; |
179 |
|
- change default celsius2K from 273.16 to 273.15 |
180 |
|
- to keep results unchanged, add back old value of celsius2K in verification |
181 |
|
exp. input*/data : aim.5l_cs, 1D_ocean_ice_column, lab_sea (fwd), |
182 |
|
global_ocean.cs32x15(seaice) & cpl_aim+ocn(input_atm). |
183 |
|
o model/src: add a little initialisation trick to find_rho.F and find_alpha.F |
184 |
|
to make TAF generate vectorizable code |
185 |
|
o pkg/seaice/seaice_evp.F: add code (copied from CICE) that avoids underflows. |
186 |
|
Turn on by defining SEAICE_EVP_ELIMINATE_UNDERFLOWS. Most compilers |
187 |
|
have flags that do this more efficiently. |
188 |
|
o pkg/diagnostics/diagstats_calc.F |
189 |
|
- for TARGET_NEC_SX fix the treatment of the scaling factor tmpFac=scaleFact |
190 |
|
o pkg/obcs (with exch2): |
191 |
|
- derive OB indices in overlap region from OB-InsideMask (in obcs_init_fixed.F) |
192 |
|
and remove code (in obcs_readparms.F) which was based on EXCH of indices |
193 |
|
(through buffer) and did not account for exch2 (e.g., CS-grid) topology. |
194 |
|
o pkg/exf and seaice exp: |
195 |
|
- change offline_exf_seaice.seaicetd test exp. to use default DIFF1 value (=0) |
196 |
|
so that switching off area & heff advection flags does not affect results. |
197 |
|
- change default EXF_LWDOWN_WITH_EMISSIVITY to #define in EXF_OPTIONS.h |
198 |
|
- keep exp. seaice_obcs & 1D_ocean_ice_column(ad) unchanged (using #undef |
199 |
|
EXF_LWDOWN_WITH_EMISSIVITY) and, using pkg/exf default emissivities, update |
200 |
|
results of verification experiments: 1D_ocean_ice_column(fwd), |
201 |
|
global_ocean.cs32x15.seaice(fwd+ad) & seaice_dynmix(ad), lab_sea (all 8) |
202 |
|
and offline_exf_seaice (all 4). |
203 |
|
o pkg/seaice: |
204 |
|
- remove array YNEG, RIVER, TMIX (replaced by local var) from common block; |
205 |
|
remove also areaNm1 & hEffNm1 when SEAICE_GROWTH_LEGACY is undef. |
206 |
|
- fix bug: areaNm1 & hEffNm1 are needed in seaice_growth (SEAICE_GROWTH_LEGACY) |
207 |
|
but were not filled when resp. SEAICEadvArea=F & SEAICEadvHeff=F and |
208 |
|
not multi-dim advection; |
209 |
|
- fix seaice_growth.F to compile with both SEAICE_GROWTH_LEGACY and |
210 |
|
SHORTWAVE_HEATING #undef. |
211 |
o optim: make Makefile more robust (?) |
o optim: make Makefile more robust (?) |
212 |
o pkg/obcs: |
o pkg/obcs: |
213 |
* fix treatment of obcs_read_pickup for TAF |
* fix treatment of obcs_read_pickup for TAF |
214 |
o pkg/shelfice: |
o pkg/shelfice: |
215 |
* add missing initialisation of num_shifwflx |
* add missing initialisation of num_shifwflx |
216 |
* new adjoint verification exp. for isomip |
* new adjoint verification exp. for isomip |
217 |
* change Prandtl and Schmidt numbers from generic formulations |
* change Prandtl and Schmidt numbers from generic formulations |
218 |
(in terms of model diffus. and visc.) to separate runtime |
(in terms of model diffus. and visc.) to separate runtime |
219 |
parameters, with Holland and Jenkins (1999) default values. |
parameters, with Holland and Jenkins (1999) default values. |
220 |
o pkg/exf (interpolation): |
o pkg/exf (interpolation): |
221 |
- extended input field (2 rows) near the N & S poles: |
- extended input field (2 rows) near the N & S poles: |