4 |
Notes on tags used in MITgcmUV |
Notes on tags used in MITgcmUV |
5 |
============================== |
============================== |
6 |
|
|
7 |
|
o pkg/ctrl (pack & unpack): |
8 |
|
- in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable |
9 |
|
(locally defined) for different variables (+ remove the variable-specific |
10 |
|
file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL |
11 |
|
(to be extended to other local file names in ctrl.h). |
12 |
|
o pkg/flt: |
13 |
|
- add a FLT_Iter0 option (similar to PTRACERS_Iter0). |
14 |
|
o pkg/mdsio: |
15 |
|
- fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing |
16 |
|
o tools/genmake2: |
17 |
|
- add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE |
18 |
|
(added by Alistair in version 1.51 for building without make depend); |
19 |
|
- remove Header files list (H_SRC_FILES) from the dependence of targets |
20 |
|
ad_input_code.f & ftl_input_code.f (not clear why it was added in the first |
21 |
|
place in version 1.23): this save going through staf when unrelated header |
22 |
|
file has been modified. |
23 |
|
Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without |
24 |
|
"make depend" step, still need to do "make links" before "make adtaf". |
25 |
|
o eesupp/src (+ few pkg src files) & genmake2: |
26 |
|
- finish to remove ALWAYS_USE_MPI in source code that TAF does not see; |
27 |
|
- no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2). |
28 |
|
- improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish |
29 |
|
upper/lower case ; account for space between "#" and undef/define) |
30 |
|
o pkg/flt (with exch2): |
31 |
|
- cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F; |
32 |
|
- simplify threads synchronisation; fix (many issues) multi-threaded with MPI. |
33 |
|
|
34 |
|
checkpoint63s (2012/09/05) |
35 |
|
o pkg/ecco: |
36 |
|
- remove #ifdef ALLOW_SMOOTH_CORREL3D brackets. |
37 |
|
- add more relevant #ifdef ALLOW_SMOOTH ones. |
38 |
|
- sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D. |
39 |
|
o pkg/ctrl: |
40 |
|
- CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D, |
41 |
|
ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D. |
42 |
|
- ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag, |
43 |
|
doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and |
44 |
|
ctrlSmoothCorrel3D (new). |
45 |
|
The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP. |
46 |
|
- ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist. |
47 |
|
- ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress |
48 |
|
controls when useAtmWind, and vice versa. |
49 |
|
- ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers. |
50 |
|
- ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with |
51 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH. |
52 |
|
- ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with |
53 |
|
#ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH. |
54 |
|
- ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F: |
55 |
|
replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D. |
56 |
|
o pkg/smooth: |
57 |
|
- remove un-necessary includes. |
58 |
|
- remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets. |
59 |
|
Those CPP options were never defined, and not necessary. |
60 |
|
o model/src: |
61 |
|
- fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi). |
62 |
|
- standard treatment of useSMOOTH. |
63 |
|
o pkg/autodiff: |
64 |
|
- add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode, |
65 |
|
useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint. |
66 |
|
o pkg/exch2: |
67 |
|
- add "if usingMPI" where it was missing (in exch2_rx?_cube*.template) |
68 |
|
+ start to remove ALWAYS_USE_MPI in source code that TAF does not see. |
69 |
|
- make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag |
70 |
|
and tiles to process mapping. |
71 |
|
- re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h) |
72 |
|
moving /EXCH2_FILLVAL_RX/ & /W2_EXCH2_COMMFLAG/ to W2_EXCH2_TOPOLOGY.h; |
73 |
|
rename "exch2_tProc" to "W2_tileProc" and move seting of e2FillValue_RX |
74 |
|
from w2_eeboot.F to w2_readparms.F. |
75 |
|
o eesupp/src: |
76 |
|
- set exchNeedsMemsync & exchUsesBarrier according to "usingMPI" (instead of |
77 |
|
ALWAYS_USE_MPI) + moved from ini_communication_patterns.F to eeset_parms.F; |
78 |
|
also move setting of exchCollectStatistics from exch_init.F to eeset_parms.F |
79 |
|
- in eedie.F and all_proc_die.F, always call MPI_FINALIZE when ALLOW_USE_MPI |
80 |
|
is defined (remove condition on usingMPI) to match cases where MPI_INIT |
81 |
|
has been called. |
82 |
|
- fix bug I put in previous modif of exch_sm_3d_rx.template (not much used); |
83 |
|
- change default (non-MPI) value of myPid (from 1 to 0) to match MPI settings |
84 |
|
(so that on 1 proc, get same myPid independently of usingMPI) |
85 |
|
- add a stop if multi-procs but usingMPI=F ; stop also if usingMPI=T and |
86 |
|
useCubedSphereExchange with EXCH-1 (safer). |
87 |
|
- add "if usingMPI" where it was missing (+ start to remove ALWAYS_USE_MPI). |
88 |
|
o pkg/ggl90: |
89 |
|
- fix bug in filling corner mask array "mskCor" (FILL_CS_CORNER_TR_RL call) |
90 |
|
used in ALLOW_GGL90_SMOOTH code. |
91 |
|
o pkg/flt: |
92 |
|
- fix typo in FLT_WITHOUT_Y_PERIODICITY (the effect was to ignore stopping |
93 |
|
floats at the Southern end of the domain). |
94 |
|
o eesupp/inc: |
95 |
|
- add a list of CPP-options which can be set by Makefile (DEF_IN_MAKEFILE.h); |
96 |
|
but not used (and not to be used) anywhere, just for documentation. |
97 |
|
o pkg/autodiff, exf, ptracers & seaice (AD & TL output): |
98 |
|
- comment out the very nasty "writeBinaryPrec = writeStatePrec" line, since: |
99 |
|
a) can damage previously written records in any other multi-record files. |
100 |
|
b) if needed, can easily do it cleanly, by calling S/R WRITE_REC_3D_RL/S. |
101 |
|
o tools/genmake2: |
102 |
|
- define variable MAKE within Makefile and use it in place of 'make'; |
103 |
|
- update AD_CONFIG.h (if needed) before building any of the executable |
104 |
|
(forward, adjoint or tangent-lin); this involves a 2nd invocation of make; |
105 |
|
and add the usual #ifndef/#define AD_CONFIG_H in AD_CONFIG.h; |
106 |
|
- always print usual warning comment 'this file is automatically generated' |
107 |
|
from script convert_cpp_cmd2defines (+ remove this warning from genmake2). |
108 |
|
o pkg/cheapaml: |
109 |
|
- updated to correspond to the code used in accepted paper (Nico Wienders). |
110 |
|
o pkg/exf: |
111 |
|
added run time switch useAtmWind to replace ALLOW_ATM_WIND cpp switch. |
112 |
|
ALLOW_ATM_WIND now just sets the useAtmWind default (see exf_readparms.F) |
113 |
|
and force defines ALLOW_BULKFORMULAE (EXF_OPTIONS.h). |
114 |
|
o pkg/exf, autodiff, ctrl, ecco and seaice: |
115 |
|
remove ALLOW_ATM_WIND brackets, or replace them with useAtmWind ones. |
116 |
|
o pkg/ctrl, ecco: |
117 |
|
allow to compile both ALLOW_U/VSTRESS_CONTROL and ALLOW_U/VWIND_CONTROL. |
118 |
|
Depending on useAtmWind, one is inactive, and the other is active (see |
119 |
|
exf_getffields.F/exf_getsurfacefluxes.F). |
120 |
o tools/genmake2: |
o tools/genmake2: |
121 |
- improve error msg when failing in 2nd test of check_for_broken_Ff |
- improve error msg when failing in 2nd test of check_for_broken_Ff |
122 |
- fix option '-makefile' short-name (-mf according to genmake2 -help) |
- fix option '-makefile' short-name (-mf according to genmake2 -help) |