4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/diagnostics: |
8 |
|
- move MNC code from diagnostics_out.F into new diagnostics_mnc_out.F (2 S/R). |
9 |
|
- rename S/R GETDIAG to DIAGNOSTICS_GET_DIAG and change type of 1rst argument |
10 |
|
(was _RL, now integer) with option = 0 to retrieve all levels. |
11 |
|
o model/src (rStar): |
12 |
|
- add rStar scaling factor in diags_phi_hyd.F (similar to calc_grad_phi_hyd.F); |
13 |
|
affect solution only if z* with full pressure in EOS; |
14 |
|
update output of test-exp global_ocean.90x40x15. |
15 |
|
o pkg/seaice: |
16 |
|
- introduce siEps=1e-5 parameter |
17 |
|
- use areaMax in AREA update (part 4), consistent with ridging step (part 2.5). |
18 |
|
- re-organize SEAICE_ADD_SUBLIMATION_TO_FWBUDGET code. |
19 |
|
- introduce ALLOW_SITRACER and seaice_tracer_phys.F to handle generic seaice tracer. |
20 |
|
For now it covers, and was tested for, ice salinity and age (attached to HEFF), |
21 |
|
as well as ice cover age and ridging index (attached to AREA). |
22 |
|
For now the run time parameters (in data.seaice/SEAICE_PARM03) are |
23 |
|
SItrName (e.g. 'age') and SItrMate ('HEFF', which is the default, or 'AREA'). |
24 |
|
Up to SItrMaxNum=3 tracers can be used simultaneously. |
25 |
|
o pkg/salt_plume: |
26 |
|
-introduce SPsalFRAC run time parameter that sets the fraction of the |
27 |
|
salt by-product of ice growth (SPsalFRAC*(1-SIsalFRAC)*salt typically) |
28 |
|
that gets vertically redistributed (fluxed down) by pkg/salt_plume. |
29 |
|
o model debug options: |
30 |
|
- Switch reading of debugMode from S/R INI_PARMS (parameter file "data", stored |
31 |
|
in PARAMS.h) to S/R EESET_PARMS (parameter file "eedata", stored in EEPARAMS.h). |
32 |
|
- Refine debug-msg printing selection (3 new levels): |
33 |
|
debugMode : controls printing of debug messages (sequence of S/R calls). |
34 |
|
debugLevel : controls printing of algorithm-relevant auxiliary/debug messages |
35 |
|
debLevZero = 0 ; /* level of disabled aux. msg printing */ |
36 |
|
debLevA = 1 ; /* level of minimum aux. msg printing */ |
37 |
|
debLevB = 2 ; /* level of low aux. print (report read-file opening)*/ |
38 |
|
debLevC = 3 ; /* level of moderate debug prt (most pkgs debug msg) */ |
39 |
|
debLevD = 4 ; /* level of enhanced debug prt (add DEBUG_STATS prt) */ |
40 |
|
debLevE = 5 ; /* level of extensive debug printing */ |
41 |
|
New debugLevel default: with default debugMode value (=F), |
42 |
|
= 2 (debLevB) or = 1 (debLevA) in case ALLOW_AUTODIFF is defined.; |
43 |
|
and if debugMode=T, default debugLevel = 4 (debLevD). |
44 |
|
Relation with previous settings: |
45 |
|
debLevB (=2) corresponds to former debLevA (=1) |
46 |
|
debLevD (=4) corresponds to former debLevB (=2) |
47 |
|
Note: |
48 |
|
a) if debugLevel=0, skip WRITE_GRID call when nIter0 > 0 (same as before); |
49 |
|
b) default debugLevel=1 is convenient in AD runs (avoid many file opening msgs); |
50 |
|
to recover previous default, set debugLevel=2 (e.g. AD-test hs94.1x64x5) |
51 |
|
- Add new parameter (printResidualFreq, read from PARM02 namelist) to print |
52 |
|
detailed CG solvers convergence; off (=0) by default, except if debugLevel=5. |
53 |
|
o pkg/obcs: |
54 |
|
- change OBCSfixTopo default from True to False (should not change the results); |
55 |
|
keep OBCSfixTopo=T in verification-exp. seaice_obcs. |
56 |
|
o pkg/thsice: |
57 |
|
- fix bug in thsice_calc_thickn.F (was introduced in version 1.18) in |
58 |
|
2nd layer seaice sublimation (unlikely to happen) |
59 |
|
- use Interior mask for OBCS in thsice_advection.F (similar to what is |
60 |
|
done in gad_advection & seaice_advection). |
61 |
|
o adjoint: |
62 |
|
bug fix spotted by Gael Forget: |
63 |
|
seaice_advection and thsice_advection still had |
64 |
|
legacy CPP options to avoid CS corner updates for adjoint |
65 |
|
o pkg/seaice: |
66 |
|
=> Change some of the defaults (2011/05/29): |
67 |
|
- change SEAICEuseFluxForm default (from False to True) |
68 |
|
- change DIFF1 default (from 0.004 m/s to 0. m/s) |
69 |
|
And print warnings if DIFF1 is not set in data.seaice and centered |
70 |
|
avection scheme is used without any diffusion. |
71 |
|
also: |
72 |
|
- fix seaice_diffusion calls in default AdvScheme part of seaice_advdiff.F; |
73 |
|
- set SEAICEdiffKh[] default in the same way as SEAICEadvSch[] |
74 |
|
- stop if DIFF1<>0 with SEAICEadvScheme <> 2, if DIFF1<>0 with any |
75 |
|
other non-zero SEAICEdiffKh[] diffusivity, if SEAICEadvSalt=T with |
76 |
|
#undef SEAICE_VARIABLE_SALINITY, if SEAICEadvAge=T with #undef SEAICE_AGE. |
77 |
|
update results of test exp.: |
78 |
|
lab_sea: output.fd (switch to AdvScheme=33 with diffKh=20) |
79 |
|
output.hb87, output_adm.evp (SEAICEuseFluxForm=T and diffKh=200) |
80 |
|
output_adm.noseaicedyn (SEAICEuseFluxForm=T) |
81 |
|
offline_exf_seaice: output.seaicetd, output_adm (SEAICEuseFluxForm=T) |
82 |
|
seaice_obcs: output (SEAICEuseFluxForm=T) |
83 |
|
and prescribe old default for SEAICEuseFluxForm (=F) and DIFF1 (=0.004) |
84 |
|
for standard fwd & AD lab_sea tests (to keep the same output). |
85 |
|
o pkg/seaice/seaice_growth.F: |
86 |
|
- use Ian Fenty's capping formulas for actual ice |
87 |
|
thickness thoughout EVOLUTION branch. |
88 |
|
- put treatment pathological case #2) in CPP brackets |
89 |
|
(ALLOW_AVOID_INFINITESIMAL_AREA, undef by default). |
90 |
|
- update global_ocean.cs32x15 and 1D_ocean_ice_colum results accordingly. |
91 |
|
o pkg/seaice: |
92 |
|
- seaice_diffusion.F : remove the min(DX,DY) factor permanently; |
93 |
|
pass the Laplacian diffusivity (in m^2/s) diffKh as a parameter; |
94 |
|
also pass fac as a param, which can be 1. (to update the tendency |
95 |
|
field) or the time step (to update the field itself). |
96 |
|
- seaice_advdiff.F: for multidim, call seaice_diffusion with |
97 |
|
e.g. SEAICEdiffKhHeff and with fac=1; for single-dim, call |
98 |
|
seaice_diffusion with e.g. SEAICEdiffKhHeff and with fac=time step. |
99 |
|
- SEAICE_PARAMS.h, seaice_readparms.F, seaice_check.F : |
100 |
|
hooks to handle SEAICEdiffKhHeff, SEAICEdiffKhArea, etc. |
101 |
|
o pkg/seaice: |
102 |
|
diffusion with centered advection scheme (diffus.F & advect.F): |
103 |
|
- simplify S/R DIFFUS (put deltaT & DIFF1 factor outside, move EXCH outside) |
104 |
|
to just compute the laplacian of input-field. |
105 |
|
- unroll k loop (harmonic,biharmonic diff) in advect.F to save 1 exch call. |
106 |
|
- fix flux-form version in diffus.F to conserve tracer. |
107 |
|
update output of lab_sea.fd & lab_sea.hb87 (1rst set of modif affects |
108 |
|
machine truncation) and lab_sea.salt_plume (conservative flux-form modif) |
109 |
|
|
110 |
|
checkpoint62y (2011/05/26) |
111 |
|
o pkg/seaice: |
112 |
|
- seaice_growth.F : in EVOLUTION branch, always include |
113 |
|
a_QSWbyATM_cover in qnet (as it should be). |
114 |
|
- verification/global_ocean.cs32x15 : update results accordingly |
115 |
|
(output.seaice.txt output_adm.seaice.txt). |
116 |
|
o pkg/seaice + obcs: |
117 |
|
- use maskInW & maskInS in multi-dim advection and biharmonic diffusion: |
118 |
|
equivalent of assuming no tracer gradient outside the OB region. |
119 |
|
update output of seaice_obcs (uses DIFF1 <>0 => biharmonic diffusion) |
120 |
|
- remove calls to OBCS_COPY_TRACER after EXCH calls (no longer needed |
121 |
|
after changes above); |
122 |
|
- obcs+seaice cleaning: apply seaice-tracer OB values to tracer field |
123 |
|
only at OB location (instead of over a band of OLx width). |
124 |
|
o pkg/seaice: |
125 |
|
- fix wrong indices in old (non Flux-Form) diffusion default S/R diffus.F |
126 |
|
(dxG(I+1, ...) changed to dxG(I, ...), no impact on Lat-Lon grid) |
127 |
|
o pkg/obcs: |
128 |
|
- split header file "OBCS.h" into 4 separated files: |
129 |
|
OBCS_PARAMS.h, OBCS_GRID.h, OBCS_FIELDS.h & OBCS_SEAICE.h |
130 |
|
Note: OBCS_PARAMS.h & OBCS_GRID.h can be included without OBCS_OPTIONS.h |
131 |
|
(contain no conditional statement which depends on OBCS options). |
132 |
|
- move "useOBCSYearlyFields" from "data.obcs" (hold in OBCS_PARAMS.h) |
133 |
|
to parameter file "data.exf", namelist EXF_NML_OBCS (in EXF_PARAM.h). |
134 |
|
o ctrl, cost, grdchk & autodiff pkgs: |
135 |
|
- make options file more standard (like other {PKG}_OPTIONS.h file but |
136 |
|
with AD_CONFIG.h); clean-up some of the included header files. |
137 |
|
o pkg/obcs: |
138 |
|
- do not mask tracer when applying OB (tracer == 0 could generate problems) |
139 |
|
- apply tracer OB values to tracer field only at OB location (instead of |
140 |
|
over a band of OLx width) |
141 |
|
- clean-up obcs_apply_w.F & obcs_apply_eta.F (since less calls to these S/R) |
142 |
|
- remove OBCS_MULTIDIM_OLD_VERSION code in gad_advection.F and remove |
143 |
|
obcs_apply_tloc.F & obcs_apply_sloc.F |
144 |
|
o obcs in model/src: |
145 |
|
- call OBCS_APPLY_W only if NonHydrostatic. |
146 |
|
- call OBCS_APPLY_ETA only if NonLinFreeSurf. |
147 |
|
- reset dEtaHdt and wVel to zero outside OB interior region ; |
148 |
|
- leave tracer unchanged outside OB interior region: This has no effect |
149 |
|
on the solution but just to prevent unrealistic tracer value outside OB. |
150 |
|
- zero out velocity outside OB interior region: This has no effect on |
151 |
|
the solution but just to prevent unrealistic velocity outside OB. |
152 |
|
o obcs and non-lin free-surf: |
153 |
|
move call to OBCS_APPLY_R_STAR from update_r_star.F to calc_r_star.F |
154 |
|
and call to OBCS_APPLY_SURF_DR from update_surf_dr.F to calc_surf_dr.F |
155 |
|
+ add argument "etaFld" to OBCS_APPLY_R_STAR & OBCS_APPLY_SURF_DR: |
156 |
|
this fixes missing EXCH + get consistent eta OB value (+ fix restart). |
157 |
|
update results of test-exp. exp4(nlfs). |
158 |
|
o exp4 (nlfs) test-exp: |
159 |
|
use OBC for Eta at Western & Eastern OB (to test prescribing Eta |
160 |
|
with NonLin-FreeSurf); update output.nlfs.txt |
161 |
|
o obcs and 2d/3d solver norm: |
162 |
|
use interior masks (maskInC) to cancel out cg2d & cg3d matrix coeff at OB |
163 |
|
and outside OB interior region (will allow to place OB further inside the |
164 |
|
domain). Depending on the domain, can affects cg2d-Norm (previous |
165 |
|
cancellation outside OB was only partial), e.g. in exp4 & obcs_ctrl, |
166 |
|
and cg3d-Norm (previous Norm was computed before canceling OB terms), |
167 |
|
e.g. in tutorial_plume_on_slope. |
168 |
|
- update output of exp.: exp4 (x2), obcs_ctrl and tutorial_plume_on_slope. |
169 |
|
o pkg rbcs: |
170 |
|
- split RBCS.h into 3 files: RBCS_SIZE.h, RBCS_PARAMS.h & RBCS_FIELDS.h |
171 |
|
- add capability to apply relaxation to horizontal velocity uVel & vVel. |
172 |
|
o pkg/grdchk: add gradient check for control variable xx_shifwflx |
173 |
|
o pkg/shelfice/shelfice_init_fixed.F |
174 |
|
fix CPP-flag combinations |
175 |
|
o pkg/seaice: Merge iceage code of Pierre Rampal |
176 |
|
* update/change/correct ice age calculations |
177 |
|
* add age updates for pathological cases |
178 |
|
Probably needs more testing... |
179 |
|
|
180 |
|
checkpoint62x (2011/05/13) |
181 |
|
o pkg/mom_vecinv: |
182 |
|
high-order vorticity scheme: use interior masks (maskInW & S) |
183 |
|
to zero-out (outside OB) gradient of vorticity. |
184 |
o verification exp.: |
o verification exp.: |
185 |
turn on "useEnergyConservingCoriolis" (better discretisation) in exp. |
turn on "useEnergyConservingCoriolis" (better discretisation) in exp. |
186 |
hs94.128x64x5 and seaice_obcs ; update results. |
hs94.128x64x5 and seaice_obcs ; update results. |