4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/ctrl: |
8 |
|
- new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D |
9 |
|
- redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to |
10 |
|
ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC |
11 |
|
- verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL |
12 |
|
checkpoint63q (2012/07/30) |
13 |
|
o pkg/autodiff: |
14 |
|
note about monitor and snap-shot of ad-variables: |
15 |
|
a) need to apply ADEXCH before monitor or output of ad-vars to include |
16 |
|
overlap contributions (was done for adjDump but missing for monitor). |
17 |
|
b) since ADEXCH implies adding overlap values to interior array, machine |
18 |
|
truncation error is expected when adding an ADEXCH call in the middle of |
19 |
|
the time-stepping (although mathematically identical). |
20 |
|
modifs: |
21 |
|
- fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars |
22 |
|
declaration (adEddyPsiX,adEddyPsiY in adcommon.h). |
23 |
|
- add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how to |
24 |
|
apply ADEXCH before monitor or snap-shot of ad-variables: |
25 |
|
=0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy. |
26 |
|
- implement new method (copy+adexch) for snap-shot and monitor of main model |
27 |
|
ad-vars (initially not used by default -> output unchanged). |
28 |
|
- change default (set to 2) to use new method and update few output_adm.txt |
29 |
|
with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo |
30 |
|
and both tutorial_tracer_adjsens tests). |
31 |
|
- switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice) |
32 |
|
and turn off momDissip_In_AB in the 2 other (needed for stable AB-3). |
33 |
|
o pkg/ctrl: |
34 |
|
enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of |
35 |
|
generic control variables via |
36 |
|
#define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL |
37 |
|
Only required customization should be S/R ctrl_map_ini_genarr.F |
38 |
|
(routine in repository contains example) |
39 |
|
o pkg/exf: |
40 |
|
- fix and refine checking of surface-relaxation setting when using EXF |
41 |
|
o verification (adjoint exp): |
42 |
|
- reduce length of simulation by half for experiment global_ocean.cs32x15 |
43 |
|
(std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output. |
44 |
|
o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag) |
45 |
|
- replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers |
46 |
|
of KE that can occur with aggressive optimization |
47 |
|
+ put quadratic bottom drag calculation in separated loops (only done if |
48 |
|
using bottomDragQuadratic) |
49 |
|
o model/src: CG2D_NSA |
50 |
|
- clean-up: stop if cg2dNormaliseRHS=T and AUTODIFF |
51 |
|
and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE. |
52 |
|
- in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens), |
53 |
|
change cg2d residual target to be expressed in Wunits (=> do not normalise |
54 |
|
RHS ; this fix global_max Pb with TAF); update output. |
55 |
|
o verification/tutorial_tracer_adjsens: |
56 |
|
improve parameter consistency (and get rid of warnings): |
57 |
|
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
58 |
|
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
59 |
|
- use staggerTimeStep (for stability) in som81; use default rotation period. |
60 |
|
o pkg/exch2: |
61 |
|
- with empty facet: fix compact-format (W2_mapIO=1) definition (was previously |
62 |
|
reset to 0 = 1 long line in X) |
63 |
|
o pkg/mdsio: |
64 |
|
- fix reading of dimensions from meta file for large-size domain |
65 |
|
o model/src: |
66 |
|
- fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long); |
67 |
|
- to refine CS-grid check, add logical flag "hasWetCSCorners": true if using |
68 |
|
Cubed-Sphere Exch with CS-corners inside the domain; |
69 |
|
make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate |
70 |
|
globalArea and to set hasWetCSCorners. |
71 |
|
- add warning if usingCurvilinearGrid and momAdvection in flux-form (missing |
72 |
|
metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form. |
73 |
|
- re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if |
74 |
|
useCDscheme and useCubedSphereExchange). |
75 |
|
o pkg/seaice/seaice_growth.F : |
76 |
|
- compute the SEAICE_DISABLE_HEATCONSFIX term accordingly |
77 |
|
for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0) |
78 |
|
when the previous code was not correct. |
79 |
|
- in all cases diagnoze the boundary condition mismatch to SIaaflux |
80 |
|
- in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add |
81 |
|
that term to QNET (essentially to set the melt/freeze water to 0degC). |
82 |
|
when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed. |
83 |
o verification/global_ocean.cs32x15/input.seaice : |
o verification/global_ocean.cs32x15/input.seaice : |
84 |
- add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget. |
- add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget. |
85 |
- add diagnostics (commented out) for budget test using my matlab codes (gcmfaces). |
- add diagnostics (commented out) for budget test using my matlab codes (gcmfaces). |
86 |
- update results (output.seaice.txt) accordingly. |
- update results (output.seaice.txt) accordingly. |
87 |
o verification/lab_sea/input/data.seaice : |
o verification/lab_sea/input/data.seaice : |
88 |
- remove SEAICEheatConsFix, which is now be tested |
- remove SEAICEheatConsFix, which is now be tested |
89 |
in global_ocean.cs32x15. The presently coded fix |
in global_ocean.cs32x15. The presently coded fix |
90 |
is only consistent with real fresh water + nlfs. |
is only consistent with real fresh water + nlfs. |
91 |
- update results (output.txt) accordingly. |
- update results (output.txt) accordingly. |
92 |
o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd). |
o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd). |
93 |
o AD_CONFIG.h file: |
o AD_CONFIG.h file: |
94 |
- in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h; |
- in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h; |
95 |
- remove #include "AD_CONFIG.h" from all included OPTIONS files and |
- remove #include "AD_CONFIG.h" from all included OPTIONS files and |
96 |
add it explicitly in each fortran src file where it is needed. |
add it explicitly in each fortran src file where it is needed. |
97 |
motivation: header file AD_CONFIG.h is generated/modified after "make depend" |
motivation: header file AD_CONFIG.h is generated/modified after "make depend" |
98 |
thus introducing potentially wrong dependency; therefore, better to include |
thus introducing potentially wrong dependency; therefore, better to include |
99 |
it only where it's really needed, and after any other included OPTIONS file |
it only where it's really needed, and after any other included OPTIONS file |
100 |
(less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN |
(less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN |
101 |
or ALLOW_TANGENTLINEAR_RUN). |
or ALLOW_TANGENTLINEAR_RUN). |
102 |
|
|
103 |
checkpoint63p (2012/07/06) |
checkpoint63p (2012/07/06) |
104 |
o pkg/autodiff: |
o pkg/autodiff: |