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