4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o model/src: move balancing of relaxation terms to new S/R balance_relax.F. |
8 |
|
o pkg/autodiff: |
9 |
|
re-write active I/O high-level (control) S/R: |
10 |
|
- rename S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL |
11 |
|
- add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R. |
12 |
|
- use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ and |
13 |
|
MDS_READ/WRITE_FIELD); change loops to multi-threads. |
14 |
|
- update and merge active_file_control_slice.flow into active_file_control.flow |
15 |
|
- update the calls in lower level S/R (active_file.F, active_file_g.F and |
16 |
|
active_file_ad.F) keeping the argument list and function unchanged. |
17 |
|
- also update lower-level "_LOC" version (call same S/R with "useCurrentDir |
18 |
|
=.TRUE.") and remove high-level (control) _loc version (not called anymore). |
19 |
|
- new low-level active I/O routines, one for each type (RL/RS), for active var |
20 |
|
of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr); |
21 |
|
fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the |
22 |
|
right type. |
23 |
|
o autodiff and RS=real*4: |
24 |
|
- call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf |
25 |
|
ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ; |
26 |
|
- change argument type of 3-D mask argument to _RS to match type in the call |
27 |
|
(in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued. |
28 |
|
o pkg/thsice: |
29 |
|
- re-anable balanceEmPmR when useSEAICE=T with useThSIce=T. |
30 |
|
- option to correct ocean fresh-water flux for imbalance of Atmos+Land |
31 |
|
fresh-water flux: uniform correction or proportional to local precip. |
32 |
|
o pkg/ctrl: |
33 |
|
- new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D |
34 |
|
- redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to |
35 |
|
ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC |
36 |
|
- verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL |
37 |
|
|
38 |
|
checkpoint63q (2012/07/30) |
39 |
|
o pkg/autodiff: |
40 |
|
note about monitor and snap-shot of ad-variables: |
41 |
|
a) need to apply ADEXCH before monitor or output of ad-vars to include |
42 |
|
overlap contributions (was done for adjDump but missing for monitor). |
43 |
|
b) since ADEXCH implies adding overlap values to interior array, machine |
44 |
|
truncation error is expected when adding an ADEXCH call in the middle of |
45 |
|
the time-stepping (although mathematically identical). |
46 |
|
modifs: |
47 |
|
- fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars |
48 |
|
declaration (adEddyPsiX,adEddyPsiY in adcommon.h). |
49 |
|
- add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how to |
50 |
|
apply ADEXCH before monitor or snap-shot of ad-variables: |
51 |
|
=0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy. |
52 |
|
- implement new method (copy+adexch) for snap-shot and monitor of main model |
53 |
|
ad-vars (initially not used by default -> output unchanged). |
54 |
|
- change default (set to 2) to use new method and update few output_adm.txt |
55 |
|
with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo |
56 |
|
and both tutorial_tracer_adjsens tests). |
57 |
|
- switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice) |
58 |
|
and turn off momDissip_In_AB in the 2 other (needed for stable AB-3). |
59 |
|
o pkg/ctrl: |
60 |
|
enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of |
61 |
|
generic control variables via |
62 |
|
#define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL |
63 |
|
Only required customization should be S/R ctrl_map_ini_genarr.F |
64 |
|
(routine in repository contains example) |
65 |
|
o pkg/exf: |
66 |
|
- fix and refine checking of surface-relaxation setting when using EXF |
67 |
|
o verification (adjoint exp): |
68 |
|
- reduce length of simulation by half for experiment global_ocean.cs32x15 |
69 |
|
(std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output. |
70 |
|
o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag) |
71 |
|
- replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers |
72 |
|
of KE that can occur with aggressive optimization |
73 |
|
+ put quadratic bottom drag calculation in separated loops (only done if |
74 |
|
using bottomDragQuadratic) |
75 |
|
o model/src: CG2D_NSA |
76 |
|
- clean-up: stop if cg2dNormaliseRHS=T and AUTODIFF |
77 |
|
and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE. |
78 |
|
- in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens), |
79 |
|
change cg2d residual target to be expressed in Wunits (=> do not normalise |
80 |
|
RHS ; this fix global_max Pb with TAF); update output. |
81 |
o verification/tutorial_tracer_adjsens: |
o verification/tutorial_tracer_adjsens: |
82 |
improve parameter consistencyi (and get rid of warnings): |
improve parameter consistency (and get rid of warnings): |
83 |
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
- use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf); |
84 |
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
- switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical) |
85 |
- use staggerTimeStep (for stability) in som81; use default rotation period. |
- use staggerTimeStep (for stability) in som81; use default rotation period. |