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 |
|
- add pieces of code to compute velocity potential at each level (new diagnostics |
12 |
|
PhiVEL, works only when UVELMASS & VVELMASS are also turned on); |
13 |
|
for now, using same params as CG2D (target-resisual, max Nb of iter ...). |
14 |
|
o model/src (rStar): |
15 |
|
- add rStar scaling factor in diags_phi_hyd.F (similar to calc_grad_phi_hyd.F); |
16 |
|
affect solution only if z* with full pressure in EOS; |
17 |
|
update output of test-exp global_ocean.90x40x15. |
18 |
|
o pkg/seaice: |
19 |
|
- introduce siEps=1e-5 parameter |
20 |
|
- use areaMax in AREA update (part 4), consistent with ridging step (part 2.5). |
21 |
|
- re-organize SEAICE_ADD_SUBLIMATION_TO_FWBUDGET code. |
22 |
|
- introduce ALLOW_SITRACER and seaice_tracer_phys.F to handle generic seaice tracer. |
23 |
|
For now it covers, and was tested for, ice salinity and age (attached to HEFF), |
24 |
|
as well as ice cover age and ridging index (attached to AREA). |
25 |
|
For now the run time parameters (in data.seaice/SEAICE_PARM03) are |
26 |
|
SItrName (e.g. 'age') and SItrMate ('HEFF', which is the default, or 'AREA'). |
27 |
|
Up to SItrMaxNum=3 tracers can be used simultaneously. |
28 |
|
o pkg/salt_plume: |
29 |
|
-introduce SPsalFRAC run time parameter that sets the fraction of the |
30 |
|
salt by-product of ice growth (SPsalFRAC*(1-SIsalFRAC)*salt typically) |
31 |
|
that gets vertically redistributed (fluxed down) by pkg/salt_plume. |
32 |
|
o model debug options: |
33 |
|
- Switch reading of debugMode from S/R INI_PARMS (parameter file "data", stored |
34 |
|
in PARAMS.h) to S/R EESET_PARMS (parameter file "eedata", stored in EEPARAMS.h). |
35 |
|
- Refine debug-msg printing selection (3 new levels): |
36 |
|
debugMode : controls printing of debug messages (sequence of S/R calls). |
37 |
|
debugLevel : controls printing of algorithm-relevant auxiliary/debug messages |
38 |
|
debLevZero = 0 ; /* level of disabled aux. msg printing */ |
39 |
|
debLevA = 1 ; /* level of minimum aux. msg printing */ |
40 |
|
debLevB = 2 ; /* level of low aux. print (report read-file opening)*/ |
41 |
|
debLevC = 3 ; /* level of moderate debug prt (most pkgs debug msg) */ |
42 |
|
debLevD = 4 ; /* level of enhanced debug prt (add DEBUG_STATS prt) */ |
43 |
|
debLevE = 5 ; /* level of extensive debug printing */ |
44 |
|
New debugLevel default: with default debugMode value (=F), |
45 |
|
= 2 (debLevB) or = 1 (debLevA) in case ALLOW_AUTODIFF is defined.; |
46 |
|
and if debugMode=T, default debugLevel = 4 (debLevD). |
47 |
|
Relation with previous settings: |
48 |
|
debLevB (=2) corresponds to former debLevA (=1) |
49 |
|
debLevD (=4) corresponds to former debLevB (=2) |
50 |
|
Note: |
51 |
|
a) if debugLevel=0, skip WRITE_GRID call when nIter0 > 0 (same as before); |
52 |
|
b) default debugLevel=1 is convenient in AD runs (avoid many file opening msgs); |
53 |
|
to recover previous default, set debugLevel=2 (e.g. AD-test hs94.1x64x5) |
54 |
|
- Add new parameter (printResidualFreq, read from PARM02 namelist) to print |
55 |
|
detailed CG solvers convergence; off (=0) by default, except if debugLevel=5. |
56 |
|
o pkg/obcs: |
57 |
|
- change OBCSfixTopo default from True to False (should not change the results); |
58 |
|
keep OBCSfixTopo=T in verification-exp. seaice_obcs. |
59 |
|
o pkg/thsice: |
60 |
|
- fix bug in thsice_calc_thickn.F (was introduced in version 1.18) in |
61 |
|
2nd layer seaice sublimation (unlikely to happen) |
62 |
|
- use Interior mask for OBCS in thsice_advection.F (similar to what is |
63 |
|
done in gad_advection & seaice_advection). |
64 |
|
o adjoint: |
65 |
|
bug fix spotted by Gael Forget: |
66 |
|
seaice_advection and thsice_advection still had |
67 |
|
legacy CPP options to avoid CS corner updates for adjoint |
68 |
|
o pkg/seaice: |
69 |
|
=> Change some of the defaults (2011/05/29): |
70 |
|
- change SEAICEuseFluxForm default (from False to True) |
71 |
|
- change DIFF1 default (from 0.004 m/s to 0. m/s) |
72 |
|
And print warnings if DIFF1 is not set in data.seaice and centered |
73 |
|
avection scheme is used without any diffusion. |
74 |
|
also: |
75 |
|
- fix seaice_diffusion calls in default AdvScheme part of seaice_advdiff.F; |
76 |
|
- set SEAICEdiffKh[] default in the same way as SEAICEadvSch[] |
77 |
|
- stop if DIFF1<>0 with SEAICEadvScheme <> 2, if DIFF1<>0 with any |
78 |
|
other non-zero SEAICEdiffKh[] diffusivity, if SEAICEadvSalt=T with |
79 |
|
#undef SEAICE_VARIABLE_SALINITY, if SEAICEadvAge=T with #undef SEAICE_AGE. |
80 |
|
update results of test exp.: |
81 |
|
lab_sea: output.fd (switch to AdvScheme=33 with diffKh=20) |
82 |
|
output.hb87, output_adm.evp (SEAICEuseFluxForm=T and diffKh=200) |
83 |
|
output_adm.noseaicedyn (SEAICEuseFluxForm=T) |
84 |
|
offline_exf_seaice: output.seaicetd, output_adm (SEAICEuseFluxForm=T) |
85 |
|
seaice_obcs: output (SEAICEuseFluxForm=T) |
86 |
|
and prescribe old default for SEAICEuseFluxForm (=F) and DIFF1 (=0.004) |
87 |
|
for standard fwd & AD lab_sea tests (to keep the same output). |
88 |
o pkg/seaice/seaice_growth.F: |
o pkg/seaice/seaice_growth.F: |
89 |
- use Ian Fenty's capping formulas for actual ice |
- use Ian Fenty's capping formulas for actual ice |
90 |
thickness thoughout EVOLUTION branch. |
thickness thoughout EVOLUTION branch. |
91 |
- put treatment pathological case #2) in CPP brackets |
- put treatment pathological case #2) in CPP brackets |
92 |
(ALLOW_AVOID_INFINITESIMAL_AREA, undef by default). |
(ALLOW_AVOID_INFINITESIMAL_AREA, undef by default). |
93 |
- update global_ocean.cs32x15 and 1D_ocean_ice_colum results accordingly. |
- update global_ocean.cs32x15 and 1D_ocean_ice_colum results accordingly. |
94 |
o pkg/seaice: |
o pkg/seaice: |
95 |
- seaice_diffusion.F : remove the min(DX,DY) factor permanently; |
- seaice_diffusion.F : remove the min(DX,DY) factor permanently; |
96 |
pass the Laplacian diffusivity (in m/s2) diffKh as a parameter; |
pass the Laplacian diffusivity (in m^2/s) diffKh as a parameter; |
97 |
also pass fac as a param, which can be 1. (to update the tendency |
also pass fac as a param, which can be 1. (to update the tendency |
98 |
field) or the time step (to update the field itself). |
field) or the time step (to update the field itself). |
99 |
- seaice_advdiff.F: for multidim, call seaice_diffusion with |
- seaice_advdiff.F: for multidim, call seaice_diffusion with |
100 |
e.g. SEAICEdiffKhHeff and with fac=1; for single-dim, call |
e.g. SEAICEdiffKhHeff and with fac=1; for single-dim, call |
101 |
seaice_diffusion with e.g. SEAICEdiffKhHeff and with fac=time step. |
seaice_diffusion with e.g. SEAICEdiffKhHeff and with fac=time step. |
102 |
- SEAICE_PARAMS.h, seaice_readparms.F, seaice_check.F : |
- SEAICE_PARAMS.h, seaice_readparms.F, seaice_check.F : |
103 |
hooks to handle SEAICEdiffKhHeff, SEAICEdiffKhArea, etc. |
hooks to handle SEAICEdiffKhHeff, SEAICEdiffKhArea, etc. |
|
- note: if any of SEAICEdiffKhHeff, SEAICEdiffKhArea, etc. |
|
|
is specified to be >0, then DIFF1 is set to 0. |
|
104 |
o pkg/seaice: |
o pkg/seaice: |
105 |
diffusion with centered advection scheme (diffus.F & advect.F): |
diffusion with centered advection scheme (diffus.F & advect.F): |
106 |
- simplify S/R DIFFUS (put deltaT & DIFF1 factor outside, move EXCH outside) |
- simplify S/R DIFFUS (put deltaT & DIFF1 factor outside, move EXCH outside) |