4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/autodiff: |
8 |
|
note about monitor and snap-shot of ad-variables: |
9 |
|
a) need to apply ADEXCH before monitor or output of ad-vars to include |
10 |
|
overlap contributions (was done for adjDump but missing for monitor). |
11 |
|
b) since ADEXCH implies adding overlap values to interior array, machine |
12 |
|
truncation error is expected when adding an ADEXCH call in the middle of |
13 |
|
the time-stepping (although mathematically identical). |
14 |
|
modifs: |
15 |
|
- fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars |
16 |
|
declaration (adEddyPsiX,adEddyPsiY in adcommon.h). |
17 |
|
- add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how to |
18 |
|
apply ADEXCH before monitor or snap-shot of ad-variables: |
19 |
|
=0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy. |
20 |
|
- implement new method (copy+adexch) for snap-shot and monitor of main model |
21 |
|
ad-vars (initially not used by default -> output unchanged). |
22 |
|
- change default (set to 2) to use new method and update few output_adm.txt |
23 |
|
with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo |
24 |
|
and both tutorial_tracer_adjsens tests). |
25 |
|
- switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice) |
26 |
|
and turn off momDissip_In_AB in the 2 other (needed for stable AB-3). |
27 |
|
o pkg/ctrl: |
28 |
|
enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of |
29 |
|
generic control variables via |
30 |
|
#define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL |
31 |
|
Only required customization should be S/R ctrl_map_ini_genarr.F |
32 |
|
(routine in repository contains example) |
33 |
|
o pkg/exf: |
34 |
|
- fix and refine checking of surface-relaxation setting when using EXF |
35 |
|
o verification (adjoint exp): |
36 |
|
- reduce length of simulation by half for experiment global_ocean.cs32x15 |
37 |
|
(std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output. |
38 |
|
o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag) |
39 |
|
- replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers |
40 |
|
of KE that can occur with aggressive optimization |
41 |
|
+ put quadratic bottom drag calculation in separated loops (only done if |
42 |
|
using bottomDragQuadratic) |
43 |
|
o model/src: CG2D_NSA |
44 |
|
- clean-up: stop if cg2dNormaliseRHS=T and AUTODIFF |
45 |
|
and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE. |
46 |
|
- in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens), |
47 |
|
change cg2d residual target to be expressed in Wunits (=> do not normalise |
48 |
|
RHS ; this fix global_max Pb with TAF); update output. |
49 |
|
o verification/tutorial_tracer_adjsens: |
50 |
|
improve parameter consistency (and get rid of warnings): |
51 |
|
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
52 |
|
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
53 |
|
- use staggerTimeStep (for stability) in som81; use default rotation period. |
54 |
|
o pkg/exch2: |
55 |
|
- with empty facet: fix compact-format (W2_mapIO=1) definition (was previously |
56 |
|
reset to 0 = 1 long line in X) |
57 |
|
o pkg/mdsio: |
58 |
|
- fix reading of dimensions from meta file for large-size domain |
59 |
o model/src: |
o model/src: |
60 |
- fix S/R UPDATE_CG2D for ALLOW_DEPTH_CONTROL case (was empty before); |
- fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long); |
61 |
|
- to refine CS-grid check, add logical flag "hasWetCSCorners": true if using |
62 |
|
Cubed-Sphere Exch with CS-corners inside the domain; |
63 |
|
make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate |
64 |
|
globalArea and to set hasWetCSCorners. |
65 |
|
- add warning if usingCurvilinearGrid and momAdvection in flux-form (missing |
66 |
|
metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form. |
67 |
|
- re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if |
68 |
|
useCDscheme and useCubedSphereExchange). |
69 |
|
o pkg/seaice/seaice_growth.F : |
70 |
|
- compute the SEAICE_DISABLE_HEATCONSFIX term accordingly |
71 |
|
for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0) |
72 |
|
when the previous code was not correct. |
73 |
|
- in all cases diagnoze the boundary condition mismatch to SIaaflux |
74 |
|
- in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add |
75 |
|
that term to QNET (essentially to set the melt/freeze water to 0degC). |
76 |
|
when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed. |
77 |
|
o verification/global_ocean.cs32x15/input.seaice : |
78 |
|
- add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget. |
79 |
|
- add diagnostics (commented out) for budget test using my matlab codes (gcmfaces). |
80 |
|
- update results (output.seaice.txt) accordingly. |
81 |
|
o verification/lab_sea/input/data.seaice : |
82 |
|
- remove SEAICEheatConsFix, which is now be tested |
83 |
|
in global_ocean.cs32x15. The presently coded fix |
84 |
|
is only consistent with real fresh water + nlfs. |
85 |
|
- update results (output.txt) accordingly. |
86 |
|
o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd). |
87 |
|
o AD_CONFIG.h file: |
88 |
|
- in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h; |
89 |
|
- remove #include "AD_CONFIG.h" from all included OPTIONS files and |
90 |
|
add it explicitly in each fortran src file where it is needed. |
91 |
|
motivation: header file AD_CONFIG.h is generated/modified after "make depend" |
92 |
|
thus introducing potentially wrong dependency; therefore, better to include |
93 |
|
it only where it's really needed, and after any other included OPTIONS file |
94 |
|
(less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN |
95 |
|
or ALLOW_TANGENTLINEAR_RUN). |
96 |
|
|
97 |
|
checkpoint63p (2012/07/06) |
98 |
|
o pkg/autodiff: |
99 |
|
- rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ; |
100 |
|
- create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters |
101 |
|
which are now read from new parameter file "data.autodiff" (inAdExact |
102 |
|
previously in "data", use{KPP/GMRedi/SEAICE}inAdMode previously in data.pkg) |
103 |
|
- add file "data.autodiff" in all verification/*/input_ad/ directories. |
104 |
|
- add run-time parameter to turn On/Off SEAICEuseFREEDRIFT in adjoint/forward |
105 |
|
mode (used in global_ocean.cs32x15.seaice_dynmix test exp.) |
106 |
|
o verification/tutorial_tracer_adjsens/ |
107 |
|
- add extra sub-verification which uses "SOM" advection scheme |
108 |
|
(2nd Order-Moment Advection Scheme, Prather Limiter) with |
109 |
|
#define GAD_ALLOW_TS_SOM_ADV in GAD_OPTIONS.h |
110 |
|
and in data: |
111 |
|
multiDimAdvection=.TRUE., |
112 |
|
tempAdvScheme=81, |
113 |
|
saltAdvScheme=81, |
114 |
|
o model/src: |
115 |
|
- introduce ALLOW_BALANCE_RELAX which allow the removal |
116 |
|
of the global mean of relaxation terms by setting |
117 |
|
balanceThetaClimRelax and balanceSaltClimRelax |
118 |
|
- disable balanceEmPmR and balanceQnet in the case when useSeaice. |
119 |
|
This case is now treated appropriately in seaice_growth.F |
120 |
|
o pkg/seaice: |
121 |
|
- do balanceEmPmR and balanceQnet based on the net fluxes |
122 |
|
(SItflux) that enter the ocean+ice system rather than QNET |
123 |
|
and EMPMR. Works best in real fresh water. |
124 |
|
- SIatmFW, SIatmQnet, and SItflux computations had to be moved |
125 |
|
out of the diagnotics bloc, and stored in global arrays. |
126 |
|
|
127 |
|
checkpoint63o (2012/06/29) |
128 |
|
o vertical mixing schemes: |
129 |
|
- remove unused S/R CALC_BUOYANCY (left from branch-atmos merging) |
130 |
|
- replace computation of density (in Function STATE1, opps_calc.F) by a call |
131 |
|
to S/R FIND_RHO_SCALAR |
132 |
|
- pass sigmaR to S/R PP81_CALC, MY82_CALC (but not yet used) and to GGL90_CALC |
133 |
|
and use it for N^2 calculation in ggl90_calc.F (save 2 density computations); |
134 |
|
affects output (vermix.ggl90) at truncation level. |
135 |
|
o testreport: |
136 |
|
- change adjustment of SIZE.h for mpi+mth testing: preserve enough tiles |
137 |
|
(nSx,nSy) for the number of threads (from eedata.mth) |
138 |
|
o model/src: |
139 |
|
- remove 2nd set of calls at the top of initialise_varia.F (Adjoint part) |
140 |
|
related to Non_Lin Free-Surf or Bottom-Control (but not longer necessary). |
141 |
|
o verification/tutorial_tracer_adjsens/ |
142 |
|
- compile with ALLOW_CG2D_NSA |
143 |
|
- run with nonlinFreeSurf=3 |
144 |
|
- update reference output_adm.txt |
145 |
|
o tools/genmake2: |
146 |
|
- add "-DHAVE_NETCDF" to the DEFINES list when NetCDF is available ; |
147 |
|
refine usePROFILES switching off (only when NetCDF is not available). |
148 |
|
o verification (atmospheric set-up): |
149 |
|
- change eosType='IDEALGAS' to eosType='IDEALG' to match variable declaration |
150 |
|
o pkg/profiles : refine profiles and files handling. |
151 |
|
o model/src and pkg/ecco : introduce run-time switch usePROFILES. |
152 |
|
o model/src/the_main_loop.F, forward_step.F and pkg/exf/EXF_OPTIONS.h : |
153 |
|
- changes to use model/src/the_main_loop.F rather than the ecco version |
154 |
|
in ecco type adjoint runs. |
155 |
|
o model/src: |
156 |
|
- move computation of recip of grid distance & area from INI_MASKS_ETC to INI_GRID |
157 |
|
- move setting of h0Fac[C,W,S] from INI_LINEAR_PHISURF to INI_MASKS_ETC |
158 |
|
- update_masks_etc.F: rename SMOOTH*_R4,R8 function to the corresponding type (RS,RL) |
159 |
|
o model/src: |
160 |
|
- fix S/R UPDATE_CG2D for ALLOW_DEPTH_CONTROL case (was empty before); |
161 |
update output of test experiment bottom_ctrl_5x5. |
update output of test experiment bottom_ctrl_5x5. |
162 |
o pkg/generic_advdiff: |
o pkg/generic_advdiff: |
163 |
- implement vertical bi-harmonic diffusion (for now, only for T & S and |
- implement vertical bi-harmonic diffusion (for now, only for T & S and |