4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
o pkg/obcs: modify Stevens boundary conditions so that S/R obcs_calc_stevens |
o vectorize salt_plume package: |
8 |
computes tendency for temperature and salinity that is then applied to update |
- add extra code to salt_plume_frac and salt_plume_tendency_apply_s |
9 |
theta and salt in S/R obcs_apply_ts; this requires proper masking of all |
- this code computes plumebk everywhere (also over land), thus requires |
10 |
horizontal advection and diffusion contributions on the boundary (in |
code to avoid divisions by zero and catch the case of kLev=Nr. |
11 |
S/Rs gad_advection, gad_calc_rhs, gmredi_rtransport, gmredi_calc_diff), and |
- efficiency of salt_plume_frac is still sub-optimal |
12 |
removing the mask in S/R timestep_tracer. The advantage of this approach is |
o tools (genmake2): |
13 |
that the updated tracer values include contributions from the surface |
- fix makefile NAME specification (option: -makefile NAME) by adding |
14 |
forcing and vertical diffusion. |
"-f $MAKEFILE" in few places where it was missing including makedepend |
15 |
|
command (contribution from Paul). |
16 |
|
|
17 |
|
checkpoint63i (2012/01/24) |
18 |
|
o model/src: |
19 |
|
- add factorized versions of some EOS code to find_rho.F, |
20 |
|
define USE_FACTORIZED_EOS to turn it on (default for TARGET_NEC_SX) |
21 |
|
o model/src: |
22 |
|
- add celsius2K to namelist PARM01; remove unused recip_rhoNil from PARAMS.h; |
23 |
|
- change default celsius2K from 273.16 to 273.15 |
24 |
|
- to keep results unchanged, add back old value of celsius2K in verification |
25 |
|
exp. input*/data : aim.5l_cs, 1D_ocean_ice_column, lab_sea (fwd), |
26 |
|
global_ocean.cs32x15(seaice) & cpl_aim+ocn(input_atm). |
27 |
|
o model/src: add a little initialisation trick to find_rho.F and find_alpha.F |
28 |
|
to make TAF generate vectorizable code |
29 |
|
o pkg/seaice/seaice_evp.F: add code (copied from CICE) that avoids underflows. |
30 |
|
Turn on by defining SEAICE_EVP_ELIMINATE_UNDERFLOWS. Most compilers |
31 |
|
have flags that do this more efficiently. |
32 |
|
o pkg/diagnostics/diagstats_calc.F |
33 |
|
- for TARGET_NEC_SX fix the treatment of the scaling factor tmpFac=scaleFact |
34 |
|
o pkg/obcs (with exch2): |
35 |
|
- derive OB indices in overlap region from OB-InsideMask (in obcs_init_fixed.F) |
36 |
|
and remove code (in obcs_readparms.F) which was based on EXCH of indices |
37 |
|
(through buffer) and did not account for exch2 (e.g., CS-grid) topology. |
38 |
|
o pkg/exf and seaice exp: |
39 |
|
- change offline_exf_seaice.seaicetd test exp. to use default DIFF1 value (=0) |
40 |
|
so that switching off area & heff advection flags does not affect results. |
41 |
|
- change default EXF_LWDOWN_WITH_EMISSIVITY to #define in EXF_OPTIONS.h |
42 |
|
- keep exp. seaice_obcs & 1D_ocean_ice_column(ad) unchanged (using #undef |
43 |
|
EXF_LWDOWN_WITH_EMISSIVITY) and, using pkg/exf default emissivities, update |
44 |
|
results of verification experiments: 1D_ocean_ice_column(fwd), |
45 |
|
global_ocean.cs32x15.seaice(fwd+ad) & seaice_dynmix(ad), lab_sea (all 8) |
46 |
|
and offline_exf_seaice (all 4). |
47 |
|
o pkg/seaice: |
48 |
|
- remove array YNEG, RIVER, TMIX (replaced by local var) from common block; |
49 |
|
remove also areaNm1 & hEffNm1 when SEAICE_GROWTH_LEGACY is undef. |
50 |
|
- fix bug: areaNm1 & hEffNm1 are needed in seaice_growth (SEAICE_GROWTH_LEGACY) |
51 |
|
but were not filled when resp. SEAICEadvArea=F & SEAICEadvHeff=F and |
52 |
|
not multi-dim advection; |
53 |
|
- fix seaice_growth.F to compile with both SEAICE_GROWTH_LEGACY and |
54 |
|
SHORTWAVE_HEATING #undef. |
55 |
|
o optim: make Makefile more robust (?) |
56 |
|
o pkg/obcs: |
57 |
|
* fix treatment of obcs_read_pickup for TAF |
58 |
|
o pkg/shelfice: |
59 |
|
* add missing initialisation of num_shifwflx |
60 |
|
* new adjoint verification exp. for isomip |
61 |
|
* change Prandtl and Schmidt numbers from generic formulations |
62 |
|
(in terms of model diffus. and visc.) to separate runtime |
63 |
|
parameters, with Holland and Jenkins (1999) default values. |
64 |
|
o pkg/exf (interpolation): |
65 |
|
- extended input field (2 rows) near the N & S poles: |
66 |
|
* fill in with the symetric value (when even Nb of data in longitude) |
67 |
|
* add average value at the poles only for scalar quantities ; for vector |
68 |
|
component interpolation, skip the averaging and keep duplicated values, |
69 |
|
unless the 2 components have same location (uvInterp=T) in which case |
70 |
|
interpolate the 2 components together using S/R EXF_INTERP_UV. |
71 |
|
- new S/R EXF_INTERP_UV to interpolate the 2 components of a vector field |
72 |
|
together: this allows to account properly for local orientation when |
73 |
|
averaging at N & S pole. |
74 |
|
- add CPP option EXF_USE_OLD_INTERP_POLE to recover old results regarding |
75 |
|
exf-interpolation near N & S poles. Undef by default. |
76 |
|
- add debug check/print on 1rst iter if debugLevel >=2. |
77 |
|
o pkg/exf: |
78 |
|
- change masking flags definition (no longer "parameter"), put them in |
79 |
|
common block and set them in S/R EXF_INIT_FIXED. |
80 |
|
- change recognized masking flag from s,u,v to c,w,s since the mask |
81 |
|
to use (maskC,W,S) depends on position on model grid and has little to |
82 |
|
do with scalar/vector difference; fix masking if using P-coordinates. |
83 |
|
- fix masking of wind-stress (was wrong if interpolated or read on A-grid) |
84 |
|
and update results of exp. global_with_exf (x2). |
85 |
|
- fix setting of zenith-angle table when SHORTWAVE_HEATING is undef. |
86 |
|
o pkg/obcs |
87 |
|
- S/R obcs_calc_stevens: fix a small bug (gammat -> gammas where appropriate) |
88 |
|
o pkg/exf (interpolation): |
89 |
|
- assume periodicity in X only if input field cover full longitude range. |
90 |
|
- improve search for lat. index (supposed to be faster, in ~log2(ny) steps, |
91 |
|
and should vectorise). |
92 |
|
- fix input lat of the 2 added row (in case we provide N.pole data). |
93 |
|
|
94 |
|
checkpoint63h (2011/12/30) |
95 |
|
o pkg/seaice: |
96 |
|
- change declaration of UVM from _RL to _RS in order to get B-grid |
97 |
|
uIce,vIce monitor when _RS = real*4 |
98 |
|
o pkg/offline: |
99 |
|
- new S/R OFFLINE_RESET_PARMS for resetting main-model params (switch off flags); |
100 |
|
- compute vertical velocity if not read from file (switch on exactConserv |
101 |
|
& staggerTimeStep); |
102 |
|
- fix output of ptracer monitor iter & time for default PTRACERS_monitorFreq. |
103 |
|
o verification: |
104 |
|
- update grid-files (in tutorial_held_suarez_cs/input and fizhi-cs-32x32x40/input) |
105 |
|
with grid-angle generated using "utils/matlab/cs_grid/cubeCalcAngle.m": |
106 |
|
fix Pb in yG definition @ 2 missing corners (previously yG was averaged); |
107 |
|
- update output of exp. global_ocean.cs32x15.viscA4 after changing |
108 |
|
grid-file angles (used here for coriolis-3d); |
109 |
|
- remove (or gzip) few files not needed to run fizhi-cs experiments. |
110 |
|
o pkg/exf (vector interpolation): |
111 |
|
- rotate vector component toward local grid-axis orientation using grid-angles |
112 |
|
(stored in GRID.h) instead of locally computed rotation angle; keep old code |
113 |
|
available with exf option EXF_USE_OLD_VEC_ROTATION (undef by default). |
114 |
|
o pkg/seaice: |
115 |
|
- allow to compile with exf options ALLOW_ATM_TEMP or ALLOW_DOWNWARD_RADIATION |
116 |
|
undefined. Fix and remove the stop when ALLOW_RUNOFF is undefined. |
117 |
|
o pkg/PKG_OPTIONS.h files: |
118 |
|
- move #include "CPP_OPTIONS.h" just after #include "PACKAGES_CONFIG.h", |
119 |
|
outside of the #ifdef ALLOW_THISPKG / #endif block. |
120 |
|
- update verification/*/code/PKG_OPTIONS.h files. |
121 |
|
o add a verification experiment (offline_exf_seaice/input.seaice) that test |
122 |
|
the B-grid LSOR solver |
123 |
|
o pkg/seaice: sort out emissivity and long wave radiation step 2: |
124 |
|
- add emissivity for snow and ice as new run-time parameters |
125 |
|
(unfortunately) that default to the corresponding exf values; this |
126 |
|
changes results in most verification experiments so that for backward |
127 |
|
compatibility these parameter have to be set explicitly to inconsistent |
128 |
|
values (ugly); |
129 |
|
- the exf-flag EXF_LWDOWN_WITH_EMISSIVITY then gets rid off the hard-wired |
130 |
|
emissivities of 0.97 associated with lwdownloc in S/R seaice_solve4temp |
131 |
|
until we agree how to handle this bug properly |
132 |
|
o pkg/exf (interpolation): |
133 |
|
- add a set of run-time param ({inputfield}_interpMethod), one for |
134 |
|
each interpolated input field, to select the interpolation method |
135 |
|
with a value of zero switching off the interpolation; |
136 |
|
- print interpolation parameters to standard output; |
137 |
|
- refine exf_check.F accordingly ; stop if USE_NO_INTERP_RUNOFF is defined |
138 |
|
(to use instead runoff_interpMethod=0 in data.exf). |
139 |
|
- simplify default setting of interpolation parameters (for all fields, |
140 |
|
set position to match model grid cell-center position, leading to trivial |
141 |
|
interpolation in case of regular Lat-Lon grid) and fix for the case of |
142 |
|
non-uniform delY. |
143 |
|
o pkg/exf/exf_radiation.F: add the factor ocean_emissivity to lwdown, for |
144 |
|
within #ifdef EXF_LWDOWN_WITH_EMISSIVITY/#endif. Unless ocean_emissivity=1. |
145 |
|
this factor is absolutely required, because the lw exitance (= out-going |
146 |
|
long wave radiation) is emissivity*stefanBoltzmann*T^4 + rho*lwdown, |
147 |
|
where the reflectivity rho = 1-emissivity for conservation reasons. Once |
148 |
|
this is established, we can remove the CPP-Flag (if we want to). |
149 |
|
o pkg/seaice: |
150 |
|
- qualify a stop statement in S/R seaice_check: EXF_READ_EVAP and |
151 |
|
ALLOW_BULKFORMULAE are only required if SEAICE_EXTERNAL_FLUXES is defined |
152 |
|
- sort out emissivity and long wave radiation, step 1: make SEAICE_emissivity |
153 |
|
what the name implies (and not emissivity*BoltzmannConstant), this means |
154 |
|
the old default value of 5.5e-8 now means |
155 |
|
5.5e-8/5.670e-8 = 0.97001763668430343479 as ocean_emissivity in |
156 |
|
S/R exf_readparms |
157 |
|
- FV-discretization of the B-grid LSOR solver, turn on with |
158 |
|
SEAICE_LSRBNEW. This new solver also involves a slight re-organization |
159 |
|
of the calling routine dynsolver, so that B and C-grid code look a |
160 |
|
little more alike. |
161 |
|
- fix index bugs in ostres.F (B-grid code) |
162 |
|
o pkg/seaice/seaice_ocean_budget.F: change (unused) code to make it look better |
163 |
|
o pkg/seaice/seaice_readparms.F: make ocean_emissivity*stefanBoltzmann the |
164 |
|
default for SEAICE_emissivity, if useEXF; requires setting a wrong |
165 |
|
parameter value in global_ocean.cs32x15/input.seaice/data.seaice for |
166 |
|
backward compatiblity |
167 |
|
o model/src: use sigmaR in calc_ivdc |
168 |
|
|
169 |
|
checkpoint63g (2011/12/16) |
170 |
|
o pkg/seaice/seaice_growth.F: |
171 |
|
fix heat conservation of the coupled ocean-seaice system. |
172 |
|
when SEAICE_HEAT_CONSERV_FIX is defined, the mismatch of |
173 |
|
solid vs liquid water treatment is resolved via QNET. |
174 |
|
o pkg/seaice/seaice_growth.F: |
175 |
|
add missing term for sublimation in saltFlux, which was breaking conservation. |
176 |
|
o pkg/seaice/seaice_model.F: |
177 |
|
Remove this patholigical case treatment in evolution branch, |
178 |
|
where it is un-necessary and breaks conservation. |
179 |
|
Update global_ocean.cs32x15/results accordingly for |
180 |
|
output.seaice.txt output_adm.seaice.txt and output_adm.seaice_dynmix.txt |
181 |
|
o model/src: |
182 |
|
useRealFreshWaterFlux: remove masking of EmPmP (using maskInC) in |
183 |
|
external_forcing_surf.F and apply mask directly in S/R SOLVE_FOR_PRESSURE. |
184 |
|
o pkg/obcs: |
185 |
|
modify Stevens boundary conditions so that S/R obcs_calc_stevens computes |
186 |
|
tendency for temperature and salinity that is then applied to update |
187 |
|
theta and salt in S/R obcs_apply_ts; this requires proper masking of all |
188 |
|
horizontal advection and diffusion contributions on the boundary (in |
189 |
|
S/Rs gad_advection, gad_calc_rhs, gmredi_rtransport, gmredi_calc_diff), and |
190 |
|
removing the mask in S/R timestep_tracer. The advantage of this approach is |
191 |
|
that the updated tracer values include contributions from the surface |
192 |
|
forcing and vertical diffusion. |
193 |
This modification changes exp4.stevens because of vertical diffusion. |
This modification changes exp4.stevens because of vertical diffusion. |
194 |
o model/src: |
o model/src: |
195 |
change non-curvilinear grid setting to also work with exch2 + blank tiles: |
change non-curvilinear grid setting to also work with exch2 + blank tiles: |
202 |
- split the domain in many more tiles (9x4 tiles of 10x10 each); |
- split the domain in many more tiles (9x4 tiles of 10x10 each); |
203 |
- switch to exch2 and remove 1 blank-tile (but only for MPI test). |
- switch to exch2 and remove 1 blank-tile (but only for MPI test). |
204 |
- update results of both test (std & dwnslp). |
- update results of both test (std & dwnslp). |
205 |
o pkg/diagnostics/diagstat_calc.F: fix problem with non-initialised halos in |
o pkg/diagnostics/diagstat_calc.F: fix problem with non-initialised halos in |
206 |
tmp-fields for TARGET_NEC_SX at the cost of extra loops and less vectorisation |
tmp-fields for TARGET_NEC_SX at the cost of extra loops and less vectorisation |
207 |
o model/src: |
o model/src: |
208 |
- take sigma-coords related code out of update_etah.F into new S/R UPDATE_ETAWS |
- take sigma-coords related code out of update_etah.F into new S/R UPDATE_ETAWS |