/[MITgcm]/MITgcm/doc/tag-index
ViewVC logotype

Diff of /MITgcm/doc/tag-index

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1574 by jmc, Mon Jan 16 23:53:58 2012 UTC revision 1.1836 by jmc, Mon Mar 4 19:08:25 2013 UTC
# Line 4  $Name$ Line 4  $Name$
4      Notes on tags used in MITgcmUV      Notes on tags used in MITgcmUV
5      ==============================      ==============================
6    
7    o pkg/generic_advdiff:
8      - implement compressible flow method for multi-dim advection (similar to
9        gad_som_advect.F); add new option "GAD_MULTIDIM_COMPRESSIBLE" (since
10        TAF generates many recomputations) to use it; no yet coded with implicit
11        vertical advection.
12      - change experiment advect_cs (new output) and advect_xy (same output)
13        to test compressible flow multi-dim advection.
14    o pkg/generic_advdiff:
15      - fix SOM advection for unusual cases (linear Free-Surf in r*, other
16        cases where linear Free-Surf is not @ k=1, e.g., useShelfIce)
17    o pkg/seaice:
18      - fix bug in the no-slip implementation in seaice_calc_strainrates.F, this
19        bug affects two verification experiments (lab_sea and lab_sea.hb87),
20        recover old (wrong) results by setting noSlipFac = 2. in
21        seaice_calc_strainrates.F;
22      - add another averaging method for etaZ (etaZmethod=3), a mix of 2 and 0
23      - add runtime parameter SEAICE_JFNKepsilon for that finite difference
24        gradient in the Jacobian times vector operation (s/r seaice_jacvec)
25      - fix line search in seaice_jfnk.F (s/r seaice_jfnk_update)
26    o pkg/seaice: reorganize seaice_lsr.F to be able to reuse more code:
27      - new subroutines seaice_lsr_tridiagu/v
28      - introduce loop bounds i/jmin/max to be able to use a restricted
29        additive Schwarz method, but not used for now.
30      - rename SEAICE_CALC_LSR_COEFFS into SEAICE_LSR_CALC_COEFFS
31      - use new subroutines seaice_lsr_tridiagu/v in s/r seaice_preconditioner
32    o OpenAD support
33      Reorganize S/R call for overall time-stepping loop to facilitate
34      OpenAD revolve loop replacement
35      (new S/R main_do_loop.F)
36    o model/src:
37      - add 3-D array 3rd dimension to argument list of S/R ADAMS_BASHFORTH2/3;
38      - pkg/cheapaml: remove local S/R ADAMS2d and use instead standard S/R
39        ADAMS_BASHFORTH2.
40    o pkg/cheapaml:
41      - add new parameter (default=F, same as before) to disable full domain
42        (including land) periodicity in X & Y dir.
43      - new S/R CHEAPAML_COPY_EDGES to copy relaxation field into edges of
44        prognostics field ; merge the 2 S/R cycle_2d_tracer and timestep_2d_tracer
45        into single S/R CHEAPAML_TIMESTEP.
46    
47    checkpoint64d (2013/02/17)
48    o pkg/monitor (angular momentum):
49      - do not add Eta contribution to the total AM if using rigid-lid;
50      - correct for Adams-Bashforth in zonal-wind part (instead of in AM_eta).
51      - horizontal discretisation: compute Zonal wind contribution separately for
52        each component (instead of from cell centered averaged) and use the 4
53        grid-cell corner averaged value of Omega*(R*cos_Phi)^2 in AM_eta part.
54      - Check that AM is conserved with linear dynamics (momAdvection=F and linear
55        FreeSurf) if using vectorInvariant momentum.
56    o model/src (horizontal grid):
57      - move initialisation of all horizontal grid arrays to null value
58        from specific horizontal grid S/R to main S/R INI_GRID;
59      - add 2 new arrays to project model C-grid velocity on to zonal direction
60        (similar to AngleCosC & -AngleSinC but at U and V point location) and
61        compute them in S/R CALC_GRID_ANGLES.
62    o pkg/seaice: replace a hard coded parameter by a runtime parameter
63        SEAICE_JFNK_tolIter
64    o pkg/seaice: introduce a restricted additive Schwarz (RAS) method in
65        preconditioner for JFNK (run LSR into the overlaps as far as possible,
66        i.e OLx/y-2, but overwrite the solution in the overlaps)
67      - extend loop range in seaice_calc_viscosity
68      - add new parameters SEAICE_OLx/y (default = OLx/y-2)
69      - add flexible loop ranges to seaice_preconditioner, seaice_calc_lsr_coeffs
70      - slightly modify loops in tridiagonal solver lsr-preconditioner
71      - by default remove the extra exchange in seaice_preconditioner with a
72        replacement of an undocumented CPP flag by SEAICE_PRECOND_EXTRA_EXCHANGE
73      - modify offline_exf_seaice so that old results without RAS are reproduced
74        for output.dyn_jfnk.txt
75      in seaice_fgmres.F (unrelated to RAS)
76      - add a cpp-flag option for a re-ordered mapping (potentially more
77        efficient), but because this changes the results, turn it off by
78        default
79      - replace the save statement by local common blocks
80    o utils/matlab:
81      - fix tile-offset in rdmnc.m when output was produced using EXCH2.
82      - update cs_grid/bk_line scripts to use load_grid.m (in utils/matlab)
83        instead of local script "load_cs.m".
84    o pkg/seaice:
85      - fix a serious bug in seaice_fgmres.F, s/r seaice_scalprod, connected
86        to the scalarProductMetric and the unrolling. By chance this does not
87        change the verification experiment, because of the particular domain
88        decomposition
89    o pkg/diagnostics:
90      - change default missing_value from UNSET_RL to -999.
91    o pkg/layers: improve vectorization of layers_fluxcalc.F
92      - step 1: split loops, make TatU/V 2D arrays. This alone reduces the cpu
93        time spent in this routine by more than a factor of 3 on an NEC-SX8
94      - step 2: replace search algorithm by a bisection algorithm found in
95        Press et al. Numerical Recipes in Fortran. This algorithm can be
96        vectorized and finds the correct bin in approx. log2(Nlayers) steps.
97        For now, use this algorithm only for TARGET_NEC_SX defined.
98      - moved the search algorithm into a separate subroutine, that is kept
99        within the same file for automatic inlining.
100      - modified catching potential errors
101    o pkg/ecco:
102      - add compile switches ALLOW_SHALLOW_ALTIMETRY and ALLOW_HIGHLAT_ALTIMETRY.
103    o model/src, pkg/autodiff, pkg/ctrl, pkg/grdchk :
104      - modifications for ALLOW_GENTIM2D_CONTROL
105      -- forward_step.F, the_main_loop.F : pass options and arrays for adjoint tapes.
106      -- load_fields_driver.F : add call to CTRL_MAP_GENTIM2D( myTime, myIter, myThid )
107      -- add xx_gentim2d0/1 in ctrl_ad_check_lev1_dir.h checkpoint_lev1_directives.h etc
108      -- use ctrl_swapffields.F (new) instead of exf_SwapFFields.F in ctrl_get_gen.F
109    o model/src:
110      - account for moist thermodynamics in (dry) potential temperature equation;
111        update results of experiments: aim.5l_cs (x2), fizhi-cs (std + aqualev)
112        and cpl_aim+ocn.
113      - also switch to standard compiler (gfortran, was using ifort previously)
114        for fizhi-cs experiments reference output.
115    o pkg/ctrl:
116      - 1st step toward generic time-varying control variable (2D) via CPP option
117        ALLOW_GENTIM2D_CONTROL
118      - note new namelist ctrl_nml_genarr in data.ctrl
119    o verification/global_ocean.cs32x15:
120      - switch off OLD_THSICE_CALL_SEQUENCE (both forward and AD code) to use new
121        thsice calling sequence and update "output.icedyn.txt" output file.
122    o pkg/ptracers:
123      - from Ryan A.: code to allow to restart a tracer at regular time interval
124        specifying a reset frequency and a reset-phase (for each tracers).
125    o pkg/thsice:
126      - implement new sequence of calls for thsice+seaice:
127          previously:   ice-Dyn,ice-Advect,ice-Thermo(thsice)
128          new sequence: ice-Thermo(thsice),ice-Dyn,ice-Advect
129      - allows (with temporary CPP option "#define OLD_THSICE_CALL_SEQUENCE"
130        in CPP_OPTIONS.h) to recover old sequence;
131      - update diagnostics for Intermediate State thsice diagnostics: now filled
132        just before advection (instead of just after advection in old sequence);
133      - update output of experiment offline_exf_seaice (standard test);
134      - in global_ocean.cs32x15 exp., postpone output.icedyn.txt update
135        by setting #define OLD_THSICE_CALL_SEQUENCE in CPP_OPTIONS.h
136    o pkg/aim_v23:
137      - use tiled array for aim_CO2 and surface wind speed for export to coupler;
138      - use standard pkg/mdsio routines to read & write CO2 pickup file;
139      - in-line S/R AIM_AIM2DYN_EXCHANGES in aim_do_physics.F;
140      - Implement new sequence of calls for seaice advection (with thsice and
141        seaice diffusion): do ice advection after ice-Thermodynamic (previously
142        was done before); change aim_do_physics.F (split the bi,bj loops block);
143      - use same CPP option (OLD_THSICE_CALL_SEQUENCE) to recover old sequence;
144    o pkg/thsice:
145      - add a missing EXCH of sIceLoad in thsice_main.F (ocean set-up) for the case
146        where just seaice diffusion is used without seaice-dynamics.
147    
148    checkpoint64c (2013/01/18)
149    o pkg/seaice:
150      - add a parameter JFNKres_tFac that can replace JFNKres_t
151        (= JFNKres_tFac*JFNKresidual before JFNK solver)
152      - add a line search option to the JFNK solver
153      - move update of u/vIce and computation of initial residual into a separate
154        routine (same file); makes the code a little easier to read (?)
155      - the line search requires computation of the residual and for some reason
156        I cannot do the update of u/vIce at the beginning of the Newton loop
157        without changing the results, so we move computation of the new residual
158        also to the end of the Newton loop, even without the line search
159    o pkg/mdsio:
160      - write missing value (corresponding to undefined array value) to meta files;
161        skip this if missing value is one (UNSET_RL would be a better value for the
162        case of undefined missing value but it's current the default missing-value);
163        Also update mdsio_read_meta.F (reading timeInterval & missing-value).
164    o pkg/exf & thsice:
165      - for diagnostics purpose, fill-up and update Qsw array (+ fill the
166        diagnostics) even when SHORTWAVE_HEATING is #undef;
167    o verification/cfc_example:
168      - turn on pkg/layers with pkg/diagnostics (to test pkg/layers and to
169        illustrate how to use it).
170    o verification/offline_exf_seaice:
171      in input: add SEAICErestoreUnderIce=.TRUE., and reduce size of forcing
172        files to only one time-record.
173      in input.thermo: narrow the 2 bands of low initial ice-concentration near
174        N & S edges; switch on SEAICErestoreUnderIce=T; use pkg/diagnostics for
175        snapshot output; same mcPheePiston value as in thsice with
176        surf-current=0.2m/s.
177      in input.thsice: similar set-up as in input.thermo (channel with same seaice
178        initial conditions).
179    o verification/cfc_example:
180      - update file "data" with more standard choice (default rotationPeriod,
181        exactConserv=T, reduce ivdc_kappa to 10, remove multiDimAdvection=F,
182        set deltaTFreeSurf to deltaTtracer) and update the output.
183    o pkg/layers:
184      - fix bolus part so that it compiles with #undef GM_BOLUS_ADVEC;
185      - ensure that "layers_bolus" is switched to False when useGMRedi=False.
186    o verification/offline_exf_seaice:
187      - set all {field}period to zero for constant-in-time forcing (not tested
188        anywhere else).
189    o verification/offline_exf_seaice:
190      - dyn_lsr  : use pkg/seaice S/R (instead of pkg/thsice) to advect sea-ice;
191      - dyn_jfnk : use pkg/thsice S/R (instead of pkg/seaice) to advect sea-ice.
192    o model/src:
193      - implement Finite-Volume method for (hydrostatic) presure gradient
194        from S.-J. Lin (QJRMS 1997), for atmosphere using sigma-coordinate.
195    o pkg/seaice: implement EVP* by Lemieux et al. (2012).
196      - In order to be compatible with the default EVP code, this requires changing
197        the EVP code around a little; and because any small change immediately
198        breaks the lab_sea.hb87 verification experiment, the reference output is
199        updated two times (each time the remaining aggrement was only 2 digits):
200        - after replacing 1/dt by 1*recip_dt with a precomputed recip_dt
201        - after replacing 1/(1+0.5*dt/tau) by a/(a+1), with a=2*tau/dt
202        The adjoint test lab_sea.evp also needed to be updated.
203      - Turn on EVP* by setting SEAICE_deltaTevp as before, and setting
204        SEAICEuseEVPstar=.true.; for EVP* SEAICE_deltaTevp does not need to be
205        a factor of SEAICE_deltaTdyn, and you can set the number of EVP steps
206        explicitly with SEAICEnEVPstarSteps (thereby overriding the default of
207        INT(SEAICE_deltaTdyn/SEAICE_deltaTevp)). Controlling EVP* is deliberately
208        kept obscure, because I need to test it a little more.
209    o pkg/cheapaml:
210      - fix few incorrect type (_RL/_RS) in subroutine calls.
211    o pkg/seaice:
212      - new S/R SEAICE_MAP_RS2VEC (similar to SEAICE_MAP2VEC) to map _RS arrays
213        to _RL vector; this fixes JFNK code when compiling with "-use_r4" option.
214    o model/src:
215      - add a warning if using select_rStar=2 with nonlinFreeSurf <> 4;
216        change (in input_ad*/data) select_rStar from 2 to 1 for AD verification
217        experiments global_ocean.cs32x15 & tutorial_tracer_adjsens (+ update output)
218    o pkg/cheapaml:
219      - replace "273.1 _d 0" by celsius2K in pkg/cheapaml/cheapaml.F and
220        update output of experiment cheapAML_box.
221      - store in CHEAPAML.h coeffs ssq[0:2] for saturation specific humidity,
222        and set them only in one place (cheapaml_readparms.F).
223      - replace "273.16 _d 0" by celsius2K & replace "3.14159 _d 0" by constant "PI"
224      - remove re-setting of main-model parameter "celsius2K" (in cheapaml_readparms)
225        and re-setting of cheapAML params "lath" & "p0" (in cheapaml_init_varia).
226    o model/src/the_main_loop.F:
227      - fix revision 129 : need both ALLOW_ECCO and ALLOW_ECCO_EVOLUTION.
228    o pkg/seaice:
229      - remove legacy branch code.
230      - retire SEAICE_GROWTH_LEGACY and SEAICE_CAP_HEFF accordingly.
231    o verification/*/code*/SEAICE_OPTIONS.h:
232      - remove documentation for retired CPP flags (SEAICE_GROWTH_LEGACY,
233        SEAICE_CAP_HEFF).
234    o pkg/cheapaml:
235      - use standard routine (S/R GET_PERIODIC_INTERVAL) to decide when it is time
236        to load new forcing fields.
237      - add missing "_d 0" where it's needed; + some editing (improve indentation).
238      - remove switch to "-r8" compiler option (no longer needed) in verification
239        cheapAML_box, keep same output (small trucation error differences).
240    o verification/offline_exf_seaice:
241      - add thermodynamics only test.
242    o verification/cheapAML_box:
243      - split the domain in 8 (2x4) tiles; add MPI and multi-threaded test;
244        keep same output (same 14 digits for cg2d).
245      - switch on "-r8" compiler option (some numerical values are missing
246        the "_d 0") and update output (only 6 digits for cg2d were preserved).
247    
248    checkpoint64b (2012/12/24)
249    o pkg/cheapaml:
250      - remove un-used variables (Qnet,EmPmR) from pickup files.
251      - store tendency of advected variables into cheapaml pickup file
252        and fix the AB-2 restart.
253    o verification/offline_exf_seaice and lab_sea adjoint:
254      - switch to new code (#undef SEAICE_GROWTH_LEGACY).
255      - switch to 4 time steps in offline, consistent with lab_sea.
256      - match parameters from SEAICE_GROWTH_LEGACY branch in data.seaice.
257      - update results after change of experiment seaice.
258    o pkg/seaice:
259      - remove option SEAICE_MULTICATEGORY; has been replaced with run-time
260        parameter SEAICE_multDim. Issue a warning if SEAICE_MULTICATEGORY is
261        still defined since SEAICE_multDim needs to be set to MULTDIM value (from
262        SEAICE_SIZE.h) to recover previous #define SEAICE_MULTICATEGORY default.
263    o model/src:
264      - add run-time parameter to select CG2D solver minimum-residual solution
265        (in case of a poor convergence).
266    o pkg/seaice/seaice_lsr.F
267      - move calculation of matrix coefficients into new
268        S/R SEAICE_CALC_LSR_COEFFS; for now this routine remains in the same
269        file; the main purpose of this change is to be able to reuse the code
270        in S/R SEAICE_PRECONDITIONER
271      - modify the computation of the residual so that the mass of sea-ice
272        is not used twice; this simplifies the calculations, but since
273        the residual is never used except when LSR_mixIniGuess.ge.4---and this is
274        not tested in testreport---this does not affect the testreport results.
275    o verification/seaice_obcs:
276      - disable SEAICE_GROWTH_LEGACY; reset input files to match those of
277        verification/lab_sea/input.salt_plume; changes results/output.txt*
278    o model/src:
279      - adapt quasi-hydrostatic formulation to work with p or p* coordinate.
280    o pkg/seaice:
281      - improve description of parameters in seaice_fgmres.F and start
282        cleaning up the code
283      - change name of SCALPROD to SEAICE_SCALPROD and modify meaning of
284        second argument
285      - add a metric based on grid cell area to SEAICE_SCALPROD; update
286        results of offline_exf_seaice.dyn_jfnk
287      - compute initial residual norm in seaice_jfnk based on SEAICE_SCALPROD
288    o pkg/aim_v23:
289      - fix an other bug in dissipation heating (grid-cell area was missing).
290    o model/src + pkg/seaice:
291      - add global (multi-tile) linear solver for pair of tri-diagonal system
292        along X and Y lines, respectively for U and V component.
293        Note: 1) MPI and cube-exchange not yet coded.
294            2) probably not accurate for poorly conditioned / large size problem.
295      - add option for SEAICE_LSR to use global (multi-tile) tri-diagonal solver;
296        default: not compiled and not used.
297    o pkg/seaice:
298      - first attempt at a multi-threaded fgmres solver for the JFNK solver:
299        introduce bi/bj loops and use global_sum_tile_rl instead of
300        mpi_allreduce in seaice_fgmres.F
301      - improve diagnostics output for fgmres solver (seaice_fgmres.F)
302      - replace a few unnecessary goto statements by if-blocks  (seaice_fgmres.F)
303      - add a verification experiment for JFNK in offline_exf_seaice
304    o verification:
305      - change (for now, only fwd test) offline_exf_seaice experiment:
306        use a re-entrant channel with idealized coastline (trapezoidal shape)
307        at southern boundary to explore seaice dynamics and thermodynamics
308        with simple forcing. Main set-up has dynamics+thermo and SST relaxation;
309        secondary test (input.thsice) use thermodynamics only with SST relaxation.
310      - add seaice-dynamics only secondary test using LSR and pkg/thsice advection.
311    o pkg/exf:
312      - disable "sstExtrapol" when Nr=1
313    o verification:
314      - add new experiment "cheapAML_box" (simple 1 layer set-up from Bruno Deremble)
315        to test pkg/cheapaml.
316    o pkg/aim_v23 & pkg/shap_filt:
317      - fix dissipation heating (erroneous gravity multiplication factor).
318    o pkg/seaice:
319      - remove unused field pressPre from jfnk solver
320      - rename two subroutines in seaice_preconditioner.F
321    o eesupp/src:
322       - S/R MDSFINDUNIT avoids reserved unit numbers (scrUnit1, eeDataUnit ...)
323    o pkg/seaice/seaice_preconditioner.F: fix preconditioner once again
324       - remove wrong parts of the rhs and the lhs (were in there
325         because I did not understand the concept of this preconditioner)
326       - add an exchange between u- and v-sweep. This increases communication
327         by a factor of two but improves the convergence of jfnk. Ideally,
328         one would like the u- and v-sweep to be independent. So far within
329         undocumented ifdefs
330       - reorganize the extra computations for printing the residuals
331    o tools/genmake2:
332      - comment out the "mpif.h" include in NetCDF test programm (for MPI built)
333        since it's not necessary (and was preventing to use MNC in some cases).
334    
335    checkpoint64a (2012/11/16)
336    o pkg/autodiff:
337      - improve pkg-internal logical parameter switch (inAd/inFwd mode) so that
338        autodiff_readparms.F no longer depends on calling order (within
339        packages_readparms.F) and no longer requires to include ${PKG}_PARMS.h):
340        rename param turnFreeDriftInAdMode to SEAICEuseFREEDRIFTswitchInAd
341        and change param SEAICEuseDYNAMICSinAdMode to SEAICEuseDYNAMICSswitchInAd.
342    o pkg/obcs:
343      - adding tidal velocity forcing capability to obcs
344        for usage example, see verification/seaice_obcs/input.tides
345    o pkg/seaice:
346      - turn the LSR-relaxation parameters WFAU/V into runtime parameters
347        SEAICE_LSRrelaxU/V
348      - introduce runtime parameter SEAICEetaZmethod (=0 by default)
349    o pkg/aim_v23:
350      - implement heating from friction (bottom friction and stratospheric drag).
351    o pkg/shap_filt:
352      - fix diagnostic "SHAP_dKE" (was 2 time smaller); implement heating from
353        dissipation but only for Shap_funct=2, active when addFrictionHeating=T.
354    o model/src:
355      - move AddMass common block from DYNVARS.h to FFIELDS.h; allow to read-in
356        time-constant addMass field from file (addMassFile);
357      - support for heating due to friction (and Kinetic Energy dissipation):
358        add option, run-time switch and 3-D field array + support code ; each pkg
359        or S/R can add heating contribution (if there is a sink of KE); the sum is
360        accounted for as a Temperature tendency term (EXTERNAL_FORCING_T).
361    o pkg/seaice:
362      - complete merge of ITD code into seaice_growth.F
363        from MITgcm_contrib/torge/itd/code/
364        no verification so far, but Torge Martin tested
365        "1-D test case and Beaufort set up;
366        deliver okay results after 1 model year."
367      - complete merge of SEAICE_SIZE.h into all relevant routines
368      - move computation of eta at Z-points into calc_viscosities
369        + introduce global field etaZ
370        + add different methods for computing etaZ, for now the old
371          method (simple averages of eta to Z-points) is hardwired
372        + replace etaMeanZ by etaZ in seaice_lsr, seaice_calc_residual,
373          seaice_preconditioner
374      - simplify computations for SEAICE_ZETA_SMOOTHREG
375      - seaice_preconditioner:
376        + replace one remaining press by pressLoc (mistake)
377        + adjust printing of residuals
378      - improve I/O of diagnostics of JFNK in seaice_jfnk.F:
379        + add (SEAICE.h) and rename some counters (initiliased in
380          seaice_init_fixed.F)
381        + add _BEGIN/END_MASTER (myThid)  around print statements
382        + print total number of iterations and failures over SEAICE_monFreq
383          interval to STDOUT
384      - move control over output-messages by fgmres to seaice_jfnk to save
385        some operations
386      - move resetting initial guess for fgmres outside of seaice_fgmres_driver
387        in order to make restarts with sol .ne. zero (fgmres with restarts)
388        (seaice_jfnk.F, seaice_fgmres.F)
389      - seaice_calc_l/rhs.F: replace maskW/S by maskInW/S; this fixes
390        a serious convergence problem when open boundaries are involved
391    o pkg/ggl90: fix computation of control volumes for the case of
392      ALLOW_GGL90_HORIZDIFF (probably not used very often): move control volumes
393      up half a grid cell from C-centered to W-centered (pointed out by C. Eden)
394    o pkg/seaice: simplify seaice_evp by avoiding use of extra fields u/vIceC
395    o pkg/autodiff
396      - Add inAdMode switch for SEAICEuseDYNAMICS:
397        SEAICEuseDYNAMICSinAdMode
398        (extend logic in ADAUTODIFF_INADMODE_SET)
399    o pkg/seaice
400      - Step 1 of merging ice-thickness distribution (ITD) code from
401        MITgcm_contrib/torge/itd/ (author: Torge Martin)
402        The code implements concept laid out in Thorndike et al. (1975);
403        code is enabled via CPP flag SEAICE_ITD
404        nITD (in SEAICE_SIZE.h) defines number of ice thickness categories;
405        code is not complete yet!!
406      - SEAICE_SIZE.h now included in almost all seaice routines
407    o verification (using seaice):
408      - switch back seaice-dynamics (+ lower SOLV_MAX_ITERS) in ADM exp.
409        global_ocean.cs32x15.seaice ; update results.
410      - compile B-grid dynamics in FW test exp 1D_ocean_ice_column ;
411      - compile C-grid dynamics with #define SEAICE_ALLOW_JFNK in FW test exp
412        offline_exf_seaice (previously compiling B-grid).
413    o pkg/exf:
414      - fix some STOP conditions in exf_check.F (from Aug 28, modifs did not allow
415        to specify neither just 1 comp of wind or wind-stress, nor no surface momentum
416        forcing): just replace CPP option ALLOW_ATM_WIND with run-time param useAtmWind.
417    o pkg/layers (adjust changes from Sept 19):
418      - do snap-shot output and fill diagnostics from inside iLa loop (layers_calc.F)
419        this allows to remove "layers_maxNum" dimension from all layers arrays.
420    o pkg/layers (adjust changes from Sept 19):
421      - remove ALLOW_LAYERS_OUTPUT ; fix snap-shot and time-ave output ;
422      - snap-shot extended to all type of layers (not just the 1rst type);
423      - remove layers variables when corresponding CPP option is undef.
424    o pkg/layers:
425      - rename pkg/layers variable and add new output (layer exist & un-weighted
426        velocity in layer)
427    o pkg/seaice:
428      - simplify (?) ocean-drag coefficent computations by using
429        the same routine in all three solvers (saves some code lines)
430      - remove global fields DRAGA and DRAGS from C-grid code and
431        declare them locally in lsr.F (the only place where they are
432        still used)
433      - update AD output of lab_sea.evp (very sensitive anyway).
434    o pkg/seaice: add Jacobian-free Newton Krylov solver for ice dynamics
435      (Lemieux et al. 2010, 2012). Turn on with the usual SEAICE_ALLOW_JFNK
436      and SEAICEuseJFNK=.true. A few things to note:
437      - involves a FGMRES, that is parallel but very inefficient,
438        because of many scalar products (global sums) in the Gram-Schmidt
439        orthogonalization method. Needs to be replaced. Original code
440        from J.-F. Lemieux
441      - preconditioner for FGMRES is a stripped down version of LSOR
442      - SOLV_MAX_ITERS is now used for LSOR as a solver and as a
443        preconditioner. For the preconditioner, the default is set to 10.
444      - Jacobian times vector is computed with finite differences
445      - marginally related to JFNK-solver: add a smooth regularization for
446        zeta with tanh that will improve convergence (Lemieux and Tremblay,
447        2009) for any implicit solver (not implemented for EVP because EVP
448        does not need this regularization in the first place). Define
449        SEAICE_ZETA_SMOOTHREG in SEAICE_OPTIONS.h to use.
450    o eesupp/src:
451      - check in genmake2 that intrinsic S/R flush is available.
452      - add S/R to flush IO unit (if intrinsic S/R flush is available)
453      - flush standard & error msg unit before MPI termination
454      - if debugMode, flush IO unit after printing msg
455    o pkg/ctrl:
456      - ctrl_unpack.F, ALLOW_GENARR3D_CONTROL code: fix missing argument in call
457        to ctrl_set_unpack_xyz.
458    
459    checkpoint64 (2012/10/09)
460    o pkg/shelfice
461      - in mom_fluxform.F, mom_vecinv.F:
462        CALL SHELFICE_V_DRAG(bi,bj,k,vFld,KE,KappaRU,vF,myThid)
463        Bug fix KappaRU -> KappaRV
464        does not change verification/isomip but may change other setups
465        (presumably constant KappaRU=KappaRV)
466      - fix diagnostics SHIU/Vdrag (thanks to Tom Millgate)
467    o pkg/obcs:
468      - fixed some indexing bugs in obcs_seaice_sponge.F
469      - added obcs relaxation subroutines for HSALT and HSNOW
470      - changes verification/seaice_obcs/results/obcs_seaice_sponge.F
471    o pkg/seaice:
472      - add "multicategory" parameterization for snow in analogy to ice,
473        default is off for now.
474    o pkg/obcs:
475      - added obcs_seaice_sponge.F for obcs relaxation of seaice variables;
476        see verification/seaice_obcs/input.seaiceSponge for example application.
477      - remove local commom bloc "OBCS_GLOBAL" in obcs_readparms.F and do all the OB
478        index setting by master-thread. This fix multi-threads Pb in previous modifs.
479    o pkg/layers :
480      - add diagnostics to pkg/layers
481      - move the meat of pkg/layers from layers_calc.F to layers_fluxcalc.F
482        (from R.Tulloch). Layers_calc.F now calls layers_fluxcalc.F accordingly.
483    o pkg/generic_advdiff/gad_implicit_r.F :
484      - fix ADVr diagnostics in case of both implicit vertical advection and diffusion.
485    o pkg/seaice/seaice_growth.F:
486      - fix SItflux diagnostics in virtual salt flux + balanceEmpmr case.
487    o pkg/obcs:
488      - change default setting of OBCS_UVICE_OLD from defined to undef;
489      - use new parameter OB_indexNone for null index value (instead of hard-coded 0)
490        in all pkg/obcs code and in other pkgs; remove k loop in obcs_check_depths.F;
491      - pass OB_indexNone as (new) argument to S/R CTRL_MASK_SET_[X,Y]Z;
492      - change OB null index value (OB_indexNone) to -99 ; this fix the problem
493        with Southern & Western OB at a tile edge (at least in a simple set-up).
494    o pkg/obcs:
495      - change settings of OB index in case OB coincides with tile edge (shared by
496        2 tiles), so that common OB location is registered by both tiles (instead of
497        only 1). However, for Southern and Western OB, index value = 0 is not
498        recognized as valid OB index (=default null value) and needs to be fixed.
499      - modify accordingly OBCS_BALANCE_FLOW and OBCS_MONITOR (avoid double counting)
500      - new parameter "OB_indexNone" for null index value (for now, still zero)
501        to replace hard-coded null index value of zero.
502    o pkg/exch2:
503      - improve W2_USE_E2_SAFEMODE (faster) and W2_E2_DEBUG_ON:
504        always check buffer-size (but outside the loop); move checking for valid
505        index from W2_USE_E2_SAFEMODE to W2_E2_DEBUG_ON; in W2_E2_DEBUG_ON,
506        print each tile and point connection only if |W2_printMsg|>= 2 and 3.
507    o pkg/ctrl (pack & unpack):
508      - in ctrl_pack.F & ctrl_unpack.F, use the same local file-name variable
509        (locally defined) for different variables (+ remove the variable-specific
510        file name in CTRL_GENARR.h). For now, only implemented for GENARR2/3D_CONTROL
511        (to be extended to other local file names in ctrl.h).
512    o pkg/flt:
513      - add a FLT_Iter0 option (similar to PTRACERS_Iter0).
514    o pkg/mdsio:
515      - fix missing STOP in mdsio_readvec_loc.F (case ioUnit=0) when file is missing
516    o tools/genmake2:
517      - add similar dependences for target EXE_AD & EXE_FTL as we have for EXECUTABLE
518        (added by Alistair in version 1.51 for building without make depend);
519      - remove Header files list (H_SRC_FILES) from the dependence of targets
520         ad_input_code.f & ftl_input_code.f (not clear why it was added in the first
521        place in version 1.23): this save going through staf when unrelated header
522        file has been modified.
523       Note: for an intermediate target (e.g., ad_input_code.f or adtaf) without
524        "make depend" step, still need to do "make links" before "make adtaf".
525    o eesupp/src (+ few pkg src files) & genmake2:
526      - finish to remove ALWAYS_USE_MPI in source code that TAF does not see;
527      - no longer set ALWAYS_USE_MPI in Makefile (was done by genmake2).
528      - improve genmake2 checking for ALLOW_${PKG} in CPP_OPTIONS.h files (distinguish
529         upper/lower case ; account for space between "#" and undef/define)
530    o pkg/flt (with exch2):
531      - cleaning: fix so that it compiles; move remaining MPI calls out of flt_exch2.F;
532      - simplify threads synchronisation; fix (many issues) multi-threaded with MPI.
533    
534    checkpoint63s (2012/09/05)
535    o pkg/ecco:
536      - remove #ifdef ALLOW_SMOOTH_CORREL3D brackets.
537      - add more relevant #ifdef ALLOW_SMOOTH ones.
538      - sort out useAtmWind, useSMOOTH, ctrlSmoothCorrel2D.
539    o pkg/ctrl:
540      - CTRL_OPTIONS.h : document CPPs related to smoothing; ALLOW_SMOOTH_CORREL2D/3D,
541        ALLOW_CTRL_SMOOTH, ALLOW_SMOOTH_CTRL2D, ALLOW_SMOOTH_CTRL3D.
542      - ctrl.h : document run time params doInitXX, doMainPack, doMainUnpack, doPackDiag,
543        doSinglePrecTapelev (audodiff param!), ctrlSmoothCorrel2D (new) and
544        ctrlSmoothCorrel3D (new).
545        The added ctrlSmoothCorrel2D/3D replace the old ALLOW_SMOOTH_CORREL2D/3D CPP.
546      - ctrl_readparms.F : initialise ctrlSmoothCorrel2D/3D and read from namelist.
547      - ctrl_init.F ctrl_pack.F ctrl_unpack.F : switch off ustress/vstress
548        controls when useAtmWind, and vice versa.
549      - ctrl_map_ini_ecco.F : UVEL0, VVEL0, edtaux, edtauy cannot be smoothed as tracers.
550      - ctrl_get_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL2D with
551          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel2D, IF useSMOOTH.
552      - ctrl_map_ini_gen.F : replace #ifdef ALLOW_SMOOTH_CORREL3D with
553          #ifdef ALLOW_SMOOTH, IF ctrlSmoothCorrel3D, IF useSMOOTH.
554      - ctrl_set_pack_xy[z].F, ctrl_set_unpack_xy[z].F:
555        replace ALLOW_SMOOTH_CORREL2D/3D brackets with ctrlSmoothCorrel2D/3D.
556    o pkg/smooth:
557      - remove un-necessary includes.
558      - remove ALLOW_SMOOTH*D and ALLOW_SMOOTH_CORREL*D brakets.
559        Those CPP options were never defined, and not necessary.
560    o model/src:
561      - fix CPP brackets in ini_mixing.F (GM_background_K belongs to gmredi).
562      - standard treatment of useSMOOTH.
563    o pkg/autodiff:
564      - add LOGICAL useGGL90inAdMode, useGGL90inFwdMode, useSALT_PLUMEinAdMode,
565        useSALT_PLUMEInFwdMode allowing to switch off ggl90 and salt_plume adjoint.
566    o pkg/exch2:
567      - add "if usingMPI" where it was missing (in exch2_rx?_cube*.template)
568        + start to remove ALWAYS_USE_MPI in source code that TAF does not see.
569      - make new S/R W2_MAP_PROCS out of w2_eeboot.F to setup exch2 CommonFlag
570        and tiles to process mapping.
571      - re-arrange 3 header files (W2_EXCH2_PARAMS.h, _BUFFER.h & _TOPOLOGY.h)
572        moving /EXCH2_FILLVAL_RX/ & /W2_EXCH2_COMMFLAG/ to W2_EXCH2_TOPOLOGY.h;
573        rename "exch2_tProc" to "W2_tileProc" and move seting of e2FillValue_RX
574        from w2_eeboot.F to w2_readparms.F.
575    o eesupp/src:
576      - set exchNeedsMemsync & exchUsesBarrier according to "usingMPI" (instead of
577        ALWAYS_USE_MPI) + moved from ini_communication_patterns.F to eeset_parms.F;
578        also move setting of exchCollectStatistics from exch_init.F to eeset_parms.F
579      - in eedie.F and all_proc_die.F, always call MPI_FINALIZE when ALLOW_USE_MPI
580        is defined (remove condition on usingMPI) to match cases where MPI_INIT
581        has been called.
582      - fix bug I put in previous modif of exch_sm_3d_rx.template (not much used);
583      - change default (non-MPI) value of myPid (from 1 to 0) to match MPI settings
584        (so that on 1 proc, get same myPid independently of usingMPI)
585      - add a stop if multi-procs but usingMPI=F ; stop also if usingMPI=T and
586        useCubedSphereExchange with EXCH-1 (safer).
587      - add "if usingMPI" where it was missing (+ start to remove ALWAYS_USE_MPI).
588    o pkg/ggl90:
589      - fix bug in filling corner mask array "mskCor" (FILL_CS_CORNER_TR_RL call)
590        used in ALLOW_GGL90_SMOOTH code.
591    o pkg/flt:
592      - fix typo in FLT_WITHOUT_Y_PERIODICITY (the effect was to ignore stopping
593        floats at the Southern end of the domain).
594    o eesupp/inc:
595      - add a list of CPP-options which can be set by Makefile (DEF_IN_MAKEFILE.h);
596        but not used (and not to be used) anywhere, just for documentation.
597    o pkg/autodiff, exf, ptracers & seaice (AD & TL output):
598      - comment out the very nasty "writeBinaryPrec = writeStatePrec" line, since:
599        a) can damage previously written records in any other multi-record files.
600        b) if needed, can easily do it cleanly, by calling S/R WRITE_REC_3D_RL/S.
601    o tools/genmake2:
602      - define variable MAKE within Makefile and use it in place of 'make';
603      - update AD_CONFIG.h (if needed) before building any of the executable
604        (forward, adjoint or tangent-lin); this involves a 2nd invocation of make;
605        and add the usual #ifndef/#define AD_CONFIG_H in AD_CONFIG.h;
606      - always print usual warning comment 'this file is automatically generated'
607        from script convert_cpp_cmd2defines (+ remove this warning from genmake2).
608    o pkg/cheapaml:
609      - updated to correspond to the code used in accepted paper (Nico Wienders).
610    o pkg/exf:
611        added run time switch useAtmWind to replace ALLOW_ATM_WIND cpp switch.
612        ALLOW_ATM_WIND now just sets the useAtmWind default (see exf_readparms.F)
613        and force defines ALLOW_BULKFORMULAE (EXF_OPTIONS.h).
614    o pkg/exf, autodiff, ctrl, ecco and seaice:
615        remove ALLOW_ATM_WIND brackets, or replace them with useAtmWind ones.
616    o pkg/ctrl, ecco:
617        allow to compile both ALLOW_U/VSTRESS_CONTROL and ALLOW_U/VWIND_CONTROL.
618        Depending on useAtmWind, one is inactive, and the other is active (see
619        exf_getffields.F/exf_getsurfacefluxes.F).
620    o tools/genmake2:
621      - improve error msg when failing in 2nd test of check_for_broken_Ff
622      - fix option '-makefile' short-name (-mf according to genmake2 -help)
623      - source local config file "genmake_local" just after processing the genmake2
624        command arguments (previously done before processing arg).
625    o pkg/grdchk:
626      - add a call to TURNOFF_MODEL_IO for Tangent-Linear run (in this case, call
627        to this routine from cost_final has been dropped in g_cost_final)
628      - improve printed information (more explicit msg, no longer using "print *,"
629         fix fcpertminus printed value).
630    o model/src:
631      - move call to COST_INIT_VARIA out of packages_init_variables.F directly
632        into initialise_varia.F (just after calling PACKAGES_INIT_VARIABLES):
633        this prevents getting cost-funct reset in adinitialise_varia recomputations.
634    o pkg/dic:
635      - move initialisation of "freefe" array from from dic_biotic_forcing.F to
636        fe_chem.F: this prevents TAF from dropping this initialisation in TLM code.
637    o pkg/grdchk:
638      - grdchk_main.F : added CALL GLOBAL_SUM_INT( ierr , myThid )
639      - grdchk_getadxx.F etc. : omit I/O if ierr.EQ.0
640    o pkg/autodiff/ctrl/grdchk :
641      - attempt to sort out what works and what does not,
642        with regard to I/O, and to warn/stop accordingly.
643    o pkg/grdchk:
644      - attempt to fix grdchk in the case of useSingleCpuIO.
645      - "if ( myProcId .EQ. grdchkwhichproc .AND. ierr .EQ. 0 )"
646       statements were moved from grdchk_main.F and into
647       grdchk_getadxx.F grdchk_getxx.F grdchk_setxx.F.
648      - a global sum is applied to record numbers icvrec/layer
649       out of grdchk_loc so that they be passed to I/O routines.
650    o pkg/smooth:
651      - fix recomputation that appeared with nlfs : use smooth_recip_hFacC,
652        smooth_hFacW, smooth_hFacS (copied at init_fixed) in 3d case.
653    o verification/testreport:
654      - add option '-tlm' for Tangent-Linear test (-adm,-oad,-tlm are all exclusive);
655      - can also use compressed (gzip) reference output file;
656      - change format (in pkg/grdchk) of TLM output (+ add forward gradient)
657        to be easier to collect by testreport.
658      - update existing TLM output (half out-of-date by more than 3 yrs).
659      - report NETCDF & LAPACK settings (from genmake2) in output dir.
660      - report run-time in each individual summary (previously only for AD test);
661        for TLM test, add also TAF version.
662      - add daily TLM test on (old) aces cluster + weekly test on baudelaire.
663    
664    checkpoint63r (2012/08/15)
665    o tools/genmake2:
666      - fix Makefile for target ftlall (+ update files to clean after make ftlall)
667    o pkg/ecco/ecco_cost_final.F :
668      - fix fc print statements (to stdout and costfunction0000) so
669        that the printed value is always after the global sum.
670    o pkg/seaice/seaice_dynsolver.F :
671      - fix ice strength assymptote at SEAICE_area_max<1
672        (no change for the standard case of SEAICE_area_max=1)
673    o some cleaning:
674      - pkg source files: ensure that all *.F files from each pkg included the
675        corresponding ${PKG}_OPTIONS.h file (except stand-alone src file which
676        only includes CPP_EEOPTIONS.h); fix S/R CTRL_SMOOTH ; update AD experiment
677        code_ad/*.F src files; add new option-file in pkg/admtlm + corresponding
678        includes;
679      - model/src: add PACKAGES_CONFIG.h wherever ALLOW_AUTODIFF[_TAMC] is used.
680      - ALLOW_DIFFKR_CONTROL: add a stop in S/R CTRL_CHECK in case ALLOW_3D_DIFFKR
681        is undef; also define /DYNVARS_DIFFKR/ common block in DYNVARS.h when
682        ALLOW_DIFFKR_CONTROL is defined, to allow to compile and reach this stop.
683      - update option-file CPP_OPTIONS.h of all AD experiments:
684        * no longer include PACKAGES_CONFIG.h ;
685        * includes ECCO_CPPOPTIONS.h if PACKAGES_CONFIG.h has been included ;
686        * def/undef ALLOW_3D_DIFFKR independently of ALLOW_DIFFKR_CONTROL (before
687          including ECCO_CPPOPTIONS.h).
688    o pkg/cost, pkg/ctrl, pkg/ecco option-file:
689      - clean-up and split content of old pkg/ecco/ECCO_CPPOPTIONS.h file into
690        separated pkg option-file (done according to old doc from ECCO_CPPOPTIONS.h,
691        not necessary accurate).
692      - add a template for option-file ECCO_CPPOPTIONS.h, mostly empty, in
693        pkg/autodiff, i.e., the 1rst pkg to compile for adjoint built, with lines to
694        deliberately break compilation (a remainder that it needs to be customized)
695      - in pkg/ecco, includes ECCO_OPTIONS.h instead of COST_OPTIONS.h
696      - rename COST_CPPOPTIONS.h to COST_OPTIONS.h
697      - rename CTRL_CPPOPTIONS.h to CTRL_OPTIONS.h
698    o tools/genamke2:
699      - check for lapack.
700    o pkg/cost and pkg/ecco : attempt to sort out some of the limiting intricacies.
701      - pkg/cost.cost_final.F : allow for use of pkg/ecco and pkg/cost cost functions
702        jointly. The exclusive ifdefs were removed, to add costs terms (when defined)
703        from both packages.
704      - the fc global sum in pkg/ecco/ecco_cost_final.F was removed accordingly.
705      - for objf_atl we use either the pkg/ecco or the pkg/cost term depending on CPPs.
706      - pkg/ecco and model/src : add CPP brackets around pkg/cost and pkg/ctrl includes
707        of "CTRL_SIZE.h" "ctrl.h" "ctrl_dummy.h" "optim.h" / "cost.h" accordingly.
708    o pkg/cost : add comments to explain special and/or untested setups.
709    o pkg/exf:
710      - use EXF_OPTIONS.h to set pkg/exf options except if done in ECCO_CPPOPTIONS.h
711        (previously, ALLOW_AUTODIFF_TAMC was controling this switch).
712    o verification/*/code_ad:
713      mimimal cleaning of AD experiments ECCO_CPPOPTIONS.h option-file:
714      - reccord when this file is included (define ECCO_CPPOPTIONS_H)
715      - remove the most obvious obsolete features (e.g., #define ALLOW_COST not
716        allowed since Oct 2003 in any option-file except in PACKAGES_CONFIG.h)
717    o pkg/seaice :
718      - added possibility to change ice strength/PRESS0 relationship to
719        HEFF, according to the following run time parameters
720        SEAICEpresPow0 :: HEFF exponent for ice strength below SEAICEpresH0 (integer, >0)
721        SEAICEpresPow1 :: HEFF exponent for ice strength above SEAICEpresH0 (integer, >0)
722        SEAICEpresH0   :: HEFF threshold for ice strength            (m)
723    o pkg/ggl90 :
724      - added run time flag mxlSurfFlag to include the code that ensure
725        mixing between first and second level (previously included as a comment)
726    o verification/1D_ocean_ice_column/input_ad/data.autodiff :
727      - add test of newly added dumpAdByRec=T option where
728        we write all records to one file per variable.
729    o verification/global_ocean.cs32x15/code_ad/CPP_OPTIONS.h :
730      - switch to #define ALLOW_BALANCE_RELAX and ALLOW_BALANCE_FLUXES
731        to check that this code is ok with taf and compiles in adjoint.
732    o pkg/autodiff :
733      - added run time param dumpAdByRec : ad dump format switch.
734        If true then write all records to one file per variable.
735        Else write one file per record (remains the default).
736      - revise seaice_ad_dump.F and exf_adjoint_snapshots_ad.F accordingly.
737    o pkg/seaice:
738     - Added SEAICEuseTILT run time switch : if set to
739       false then omit the tilt term in seaice dynamics.
740     - Fix free drift calculation.
741    o pkg/shelfice:
742      When initializing SHELFICEDragQuadratic, set default to be
743      consistent with shiCdrag in case SHELFICEuseGammaFrict is used,
744      but retain option to set it independently
745      (inconsistenty spotted by Veronique Dansereau)
746    o eesupp/inc:
747      - in EEPARAMS.h, add real-type constant for some frequently used simple number
748         (0,1,2,1/2), with name explicitly referring to RS/RL type.
749    o model/src:
750      - move balancing of relaxation terms to new S/R balance_relax.F.
751    o pkg/autodiff:
752      re-write active I/O high-level (control) S/R:
753      - rename  S/R ACTIVE_READ/WRITE_RL to ACTIVE_READ/WRITE_3D_RL
754      - add 1 more argument (useCurrentDir) to replace the "_LOC" 2nd set of S/R.
755      - use standard pkg/mdsio I/O routines (MDS_READ/WRITE_SEC_XZ/YZ  and
756        MDS_READ/WRITE_FIELD); change loops to multi-threads.
757      - update and merge active_file_control_slice.flow into active_file_control.flow
758      - update the calls in lower level S/R (active_file.F, active_file_g.F and
759        active_file_ad.F) keeping the argument list and function unchanged.
760      - also update lower-level "_LOC" version (call same S/R with "useCurrentDir
761        =.TRUE.") and remove high-level (control) _loc version (not called anymore).
762      - new low-level active I/O routines, one for each type (RL/RS), for active var
763        of various (XY,XZ,YZ) shape and level number (arguments: arrShape, myNr);
764        fix ctrl_init_wet.F & ecco_cost_weights.F by calling the new S/R with the
765        right type.
766    o autodiff and RS=real*4:
767      - call the right type (_RS instead of _RL) of S/R in few output S/R (pkg/exf
768        ad-monitor and snapshots); disable arrType='RS' in mdsio_gl*.F ;
769      - change argument type of 3-D mask argument to _RS to match type in the call
770        (in seaice_cost*.F, ctrl_*_gen.F and *ctrl_bound.F); to be continued.
771    o pkg/thsice:
772      - re-anable balanceEmPmR when useSEAICE=T with useThSIce=T.
773      - option to correct ocean fresh-water flux for imbalance of Atmos+Land
774        fresh-water flux: uniform correction or proportional to local precip.
775    o pkg/ctrl:
776      - new header file CTRL_SIZE.h for parameters maxCtrlArr2D, maxCtrlArr3D
777      - redefine CPP option ALLOW_BOTTOMDRAG_CONTROL to
778                            ALLOW_BOTTOMDRAG_CONTROL_NONGENERIC
779      - verification/hs94.1x64x5/ tests ALLOW_GENARR{2D,3D}_CONTROL
780    
781    checkpoint63q (2012/07/30)
782    o pkg/autodiff:
783      note about monitor and snap-shot of ad-variables:
784      a) need to apply ADEXCH before monitor or output of ad-vars to include
785       overlap contributions (was done for adjDump but missing for monitor).
786      b) since ADEXCH implies adding overlap values to interior array, machine
787       truncation error is expected when adding an ADEXCH call in the middle of
788       the time-stepping (although mathematically identical).
789      modifs:
790      - fix some incorrect type (RL/RS, UV/scalar) in ADEXCH calls and ad-vars
791        declaration (adEddyPsiX,adEddyPsiY in adcommon.h).
792      - add new run-time params (dumpAdVarExch & mon_AdVarExch) to select how  to
793        apply ADEXCH before monitor or snap-shot of ad-variables:
794           =0 : no ADEXCH ; =1 : do ADEXCH ; =2 : apply ADEXCH on a local copy.
795      - implement new method (copy+adexch) for snap-shot and monitor of main model
796        ad-vars (initially not used by default -> output unchanged).
797      - change default (set to 2) to use new method and update few output_adm.txt
798        with accurate ad-monitor (global_ocean.90x40x15, tutorial_global_oce_biogeo
799        and both tutorial_tracer_adjsens tests).
800      - switch 2 global_ocean.cs32x15 AD-tests to AB-2 (seaice_dynmix & thsice)
801        and turn off momDissip_In_AB in the 2 other (needed for stable AB-3).
802    o pkg/ctrl:
803      enable the use of a variable number (maxCtrlArr2D, maxCtrlArr3D) of
804      generic control variables via
805      #define ALLOW_GENARR2D_CONTROL and/or #define ALLOW_GENARR3D_CONTROL
806      Only required customization should be S/R ctrl_map_ini_genarr.F
807      (routine in repository contains example)
808    o pkg/exf:
809      - fix and refine checking of surface-relaxation setting when using EXF
810    o verification (adjoint exp):
811      - reduce length of simulation by half for experiment global_ocean.cs32x15
812        (std, seaice & seaice_dynmix) and exp tutorial_dic_adjoffline; update output.
813    o pkg/mom_common (mom_u/v_bottomdrag), pkg/shelfice (shelfice_u/v_drag)
814      - replace if statements KE.ne.0 with KE.gt.0 to avoid sqrt of negative numbers
815        of KE that can occur with aggressive optimization
816      + put quadratic bottom drag calculation in separated loops (only done if
817        using bottomDragQuadratic)
818    o model/src: CG2D_NSA
819      - clean-up:  stop if cg2dNormaliseRHS=T and AUTODIFF
820         and replace GLOBAL_SUM calls with GLOBAL_SUM_TILE.
821      - in test-exp that uses CG2D_NSA (bottom_ctrl & tutorial_tracer_adjsens),
822         change cg2d residual target to be expressed in Wunits (=> do not normalise
823         RHS ; this fix global_max Pb with TAF); update output.
824    o verification/tutorial_tracer_adjsens:
825       improve parameter consistency (and get rid of warnings):
826       - use deltaTFreeSurf=deltaTtracer (better with NonLin FreeSurf);
827       - switch Temp Adv Scheme from 81 to 80 (no limiter since theta < 0 is physical)
828       - use staggerTimeStep (for stability) in som81; use default rotation period.
829    o pkg/exch2:
830      - with empty facet: fix compact-format (W2_mapIO=1) definition (was previously
831        reset to 0 = 1 long line in X)
832    o pkg/mdsio:
833      - fix reading of dimensions from meta file for large-size domain
834    o model/src:
835      - fix saltIsActiveTr setting for IdealGas eosType (eosType is 6 character long);
836      - to refine CS-grid check, add logical flag "hasWetCSCorners": true if using
837        Cubed-Sphere Exch with CS-corners inside the domain;
838        make new S/R INI_GLOBAL_DOMAIN from code in ini_linear_phisurf.F to calculate
839        globalArea and to set hasWetCSCorners.
840      - add warning if usingCurvilinearGrid and momAdvection in flux-form (missing
841        metric terms); stop if hasWetCSCorners=T and momAdvection in flux-form.
842      - re-activate the stop if useCDscheme and hasWetCSCorners=T (previously if
843        useCDscheme and useCubedSphereExchange).
844    o pkg/seaice/seaice_growth.F :
845      - compute the SEAICE_DISABLE_HEATCONSFIX term accordingly
846        for the (.NOT.useRealFreshWaterFlux).OR.(nonlinFreeSurf.EQ.0)
847        when the previous code was not correct.
848      - in all cases diagnoze the boundary condition mismatch to SIaaflux
849      - in the case of useRealFreshWaterFlux.AND.(nonlinFreeSurf.GT.0) add
850        that term to QNET (essentially to set the melt/freeze water to 0degC).
851        when SEAICEheatConsFix is true, so that the ocean+ice budget heat is closed.
852    o verification/global_ocean.cs32x15/input.seaice :
853      - add SEAICEheatConsFix in data.seaice, ensuring closed ocean+ice heat budget.
854      - add diagnostics (commented out) for budget test using my matlab codes (gcmfaces).
855      - update results (output.seaice.txt) accordingly.
856    o verification/lab_sea/input/data.seaice :
857      - remove SEAICEheatConsFix, which is now be tested
858        in global_ocean.cs32x15. The presently coded fix
859        is only consistent with real fresh water + nlfs.
860      - update results (output.txt) accordingly.
861    o pkg/salt_plume: added diagnotic for salt tendency (oceSPtnd).
862    o AD_CONFIG.h file:
863      - in genmake2: remove "#undef ALLOW_ECCO_OPTIMIZATION" from AD_CONFIG.h;
864      - remove #include "AD_CONFIG.h" from all included OPTIONS files and
865        add it explicitly in each fortran src file where it is needed.
866        motivation: header file AD_CONFIG.h is generated/modified after "make depend"
867        thus introducing potentially wrong dependency; therefore, better to include
868        it only where it's really needed, and after any other included OPTIONS file
869        (less tempting to bring conditional includes according to ALLOW_ADJOINT_RUN
870        or ALLOW_TANGENTLINEAR_RUN).
871    
872    checkpoint63p (2012/07/06)
873    o pkg/autodiff:
874      - rename S/R INI_AUTODIFF to AUTODIFF_INIT_VARIA ;
875      - create new header file "AUTODIFF_PARAMS.h" for pkg/autodiff parameters
876        which are now read from new parameter file "data.autodiff" (inAdExact
877        previously in "data", use{KPP/GMRedi/SEAICE}inAdMode previously in data.pkg)
878      - add file "data.autodiff" in all verification/*/input_ad/ directories.
879      - add run-time parameter to turn On/Off SEAICEuseFREEDRIFT in adjoint/forward
880        mode (used in global_ocean.cs32x15.seaice_dynmix test exp.)
881    o verification/tutorial_tracer_adjsens/
882      - add extra sub-verification which uses "SOM" advection scheme
883        (2nd Order-Moment Advection Scheme, Prather Limiter) with
884          #define GAD_ALLOW_TS_SOM_ADV in GAD_OPTIONS.h
885        and in data:
886          multiDimAdvection=.TRUE.,
887          tempAdvScheme=81,
888          saltAdvScheme=81,
889    o model/src:
890      - introduce ALLOW_BALANCE_RELAX which allow the removal
891       of the global mean of relaxation terms by setting
892       balanceThetaClimRelax and balanceSaltClimRelax
893      - disable balanceEmPmR and balanceQnet in the case when useSeaice.
894       This case is now treated appropriately in seaice_growth.F
895    o pkg/seaice:
896      - do balanceEmPmR and balanceQnet based on the net fluxes
897        (SItflux) that enter the ocean+ice system rather than QNET
898        and EMPMR. Works best in real fresh water.
899      - SIatmFW, SIatmQnet, and SItflux computations had to be moved
900        out of the diagnotics bloc, and stored in global arrays.
901    
902    checkpoint63o (2012/06/29)
903    o vertical mixing schemes:
904      - remove unused S/R CALC_BUOYANCY (left from branch-atmos merging)
905      - replace computation of density (in Function STATE1, opps_calc.F) by a call
906        to S/R FIND_RHO_SCALAR
907      - pass sigmaR to S/R PP81_CALC, MY82_CALC (but not yet used) and to GGL90_CALC
908        and use it for N^2 calculation in ggl90_calc.F (save 2 density computations);
909        affects output (vermix.ggl90) at truncation level.
910    o testreport:
911      - change adjustment of SIZE.h for mpi+mth testing: preserve enough tiles
912        (nSx,nSy) for the number of threads (from eedata.mth)
913    o model/src:
914      - remove 2nd set of calls at the top of initialise_varia.F (Adjoint part)
915        related to Non_Lin Free-Surf or Bottom-Control (but not longer necessary).
916    o verification/tutorial_tracer_adjsens/
917      - compile with ALLOW_CG2D_NSA
918      - run with nonlinFreeSurf=3
919      - update reference output_adm.txt
920    o tools/genmake2:
921      - add "-DHAVE_NETCDF" to the DEFINES list when NetCDF is available ;
922        refine usePROFILES switching off (only when NetCDF is not available).
923    o verification (atmospheric set-up):
924      - change eosType='IDEALGAS' to eosType='IDEALG' to match variable declaration
925    o pkg/profiles : refine profiles and files handling.
926    o model/src and pkg/ecco : introduce run-time switch usePROFILES.
927    o model/src/the_main_loop.F, forward_step.F and pkg/exf/EXF_OPTIONS.h :
928      - changes to use model/src/the_main_loop.F rather than the ecco version
929        in ecco type adjoint runs.
930    o model/src:
931      - move computation of recip of grid distance & area from INI_MASKS_ETC to INI_GRID
932      - move setting of h0Fac[C,W,S] from INI_LINEAR_PHISURF to INI_MASKS_ETC
933      - update_masks_etc.F: rename SMOOTH*_R4,R8 function to the corresponding type (RS,RL)
934    o model/src:
935      - fix S/R UPDATE_CG2D for ALLOW_DEPTH_CONTROL case (was empty before);
936        update output of test experiment bottom_ctrl_5x5.
937    o pkg/generic_advdiff:
938      - implement vertical bi-harmonic diffusion (for now, only for T & S and
939        only explicitly).
940    o verification/bottom_ctrl_5x5/
941      update reference output (results changed quite some time ago,
942      not sure when; but new reference results look ok in terms of grdchk)
943    o verification/1D_ocean_ice_column/
944      For verification purposes, the exact adjoint rather than an approx.
945      should be used (e.g., to comare against F.D. or TLM).
946      removed autodiff_inadmode*_ad.F routines in code_ad/
947      Update results/ accordingly.
948    o pkg/cal:
949      - change cal_getdate.F so that output date is function of input time only
950        (less ambiguous, not mixed up with input iteration number).
951      - fix calendarDumps for non-zero phase-lag (S/R CAL_TIME2DUMP).
952    o pkg/diagnostics:
953      - implement calendarDumps also for stats-diags
954      - implement calendarDumps also for snap-shot output (negative freq)
955      - for now, ignores calendarDumps if non-zero phase-lag.
956    
957    checkpoint63n (2012/06/04)
958    o model/src:
959      - recompute rSurfW & S to ensure consistent column thickness (needed for rStar)
960        between Sum_k(hFac*drF) and rSurf-rLow, for now only when using pkg/shelfice;
961      - use h0FacC, W & S to compute hFac_surfC, W & S in calc_surf_dr.F (more
962        similar to calc_r_star.F); update results of experiment internal_wave and
963        tutorial_global_oce_in_p (affected @ truncation level).
964    o pkg/shelfice:
965      - add parameterisation of advective-diffusive flux into the ice shelf
966        according to Holland and Jenkins (1999), eq.22-33, as suggested by Jan De Ryd
967      - simply eps3/3a computation
968    o eesupp:
969     - add new CPP option (DISCONNECTED_TILES) to disconnect tiles (no exchange
970       between tiles, just fill-in edges assuming locally periodic subdomain) and
971       add corresponding exchange subroutines (EXCH0);
972     - new CG-solver version (_EX0) for disconnected-tiles special case.
973    o model/src (CG-solvers):
974     - modify Single-Reduction version (CG2D_SR) in case cg2dMaxIters is reached
975       (similar final residual output and max-Iter number as with standard version);
976     - allows to store and use lowest-residual solution (standard & _SR versions);
977     - cleaning up (remove old, commented out code, LETS_MAKE_JAM ...).
978     - by default, also compile CG2D_SR version (define ALLOW_SRCG in CPP_OPTIONS.h)
979    o eesup/src:
980     - global_vec_sum.F cleaning: add a BARRIER ; update comments ; remove ndef
981       ALWAYS_USE_MPI (no longer needed after fixing usingMPI settings - March 2012)
982    o pkg/salt_plume added to lab_sea/input_ad.noseaicedyn
983    
984    checkpoint63m (2012/04/27)
985    o pkg/shelfice:
986     - account for partical cells in surface level below ice-shelf for hydrostatic
987       pressure calculion (set uniformFreeSurfLev to F); update isomip experiments.
988    o ad test experiments:
989     - update and rename to "ad_optfile.local" local AD-optfile specific to a
990       particular adjoint verification experiment (in verification/*/code_ad/)
991    o pkg/seaice & pkg/exf:
992     - Part two of ECCO-CLIVAR code merges.
993       Completes merge of seaice area relax. code.
994       Requires unified CPP option EXF_ALLOW_SEAICE_RELAX
995       to be set in EXF_OPTIONS.h since this pkg controls its I/O
996       (and avoids second CPP option in SEAICE_OPTIONS.h)
997     - change default value of costIceStart & costIceEnd to a valid date.
998     - add snowPrecip to HSNOW in seaice_growth
999    o pkg/ptracers:
1000     - move ptracers summary and setup check into separated S/R ; add a check for
1001       valid PTRACERS_Iter0 value (error+stop or just warning).
1002    o pkg/cal (+ pkg/ecco):
1003     - avoid calling a S/R with 2 times the same arg (FWD: unless both are only used
1004       as input; and for AD, unless both are not differentiable (e.g., k index)).
1005    o model/src:
1006     - define internal flag "uniformFreeSurfLev" (=T when free-surface level-index
1007       is everywhere k=1) to speed-up some calculations (by pass kSurf reference);
1008       temporary set to usingZCoords value (to be changed to F when using shelfice).
1009     - hydrostatic pressure: implement partial cell near the surface also for
1010       Z-coordinates (for the case where uniformFreeSurfLev=F); replace test on
1011       usingZCoords with test on uniformFreeSurfLev where needed (in NonHyd code).
1012    o pkg/ctrl/ctrl_init.F:
1013     - add a formal parameter to s/r ctrl_init_rec to print
1014       xx_$(ctrl_valiable)_file for easier debugging
1015     - move call of cal_* routines into the if-block where they are really
1016       needed so that xx_$(ctrl_variable)_period can be 0 or -12 without having
1017       to specify a startdate
1018    o pkg/seaice:
1019     - update comments in SEAICE_OPTIONS.h (+ similar update of lab_sea/code and
1020       global_ocean.cs32x15/code versions).
1021     - turn on seaice Multi-category (in data.seaice, SEAICE_multDim=7) for
1022       verification experiment global_ocean.cs32x15.seaice and update results.
1023    o pkg/exf:
1024     - new S/R EXF_GETFIELD_START to return starting-time of a forcing field
1025       (according to useExfYearlyFields).
1026    o pkg/cal:
1027     - move calendar setting & summary (previously in cal_readparams.F) into new
1028       S/R CAL_INIT_FIXED to be called later in the initialisation process, once
1029       length of the simulation is set (after SET_PARMS call); This is an attempt
1030       to fix Pb when, e.g.: pkg/longstep, modifies the length of the run.
1031     - For safety: keep a record of pkg/cal parameter settings status
1032               to allow to STOP if one pkg/cal S/R is called too early.
1033     - add a stop in all basic pkg/cal subroutines if called before setting is done.
1034     - modify cal_getdate.F: stop when nothing was returned;
1035       if called with myIter=-1, simply retrun modelBaseDate (1,2 = startDate_1,_2);
1036       this allows to remove "cal.h" from seaice_read_parms.F & init_mnc_vars.F.
1037    
1038    checkpoint63l (2012/04/04)
1039    o pkg/bbl:
1040      - fix call to FIND_RHO_2D in bbl_calc_rho.F (case multi-tiles per proc);
1041        update global_with_exf output.yearly.txt file.
1042    o pkg/cal:
1043      - start to clean-up cal_set.F ; fix for the case where baseTime is non-zero.
1044      - remove 2 unsused and very short (1 line only) functions ;
1045      - remove unsused subroutines from AD-Diff list.
1046    o model/src:
1047      - start to implement clean wait to stop in initialization S/R (config_check.F,
1048         packages_check.F, ini_parms.F and pkg/obcs/obcs_check.F + pkg/mypackage)
1049    o folowing PRINT_MESSAGE changes:
1050      - remove reminder multiple print to the same file (STDOUT) when multi-threads.
1051    o pkg/bbl:
1052      - modification so it can work with z*
1053      - replace deltaT with dTtracerLev(k) for asynchronous time stepping
1054      - global_with_exf/input.yearly verification; changes output.yearly.txt
1055    o eesupp/src:
1056      - PRINT_MESSAGE: use OpenMP critical instruction (similar to PRINT_ERROR);
1057        writing to unit 0 (if unit=errorMessageUnit) extended to the case myThid=1
1058      - CHECK_THREADS: specific code if using OpenMP threading: improve checking of
1059        # of threads across processors (e.g., different env OMP_NUM_THREADS setting)
1060      - improve special preliminary call to EESET_PARMS (if eedata is read 2 times).
1061      - when using MPI, always set usingMPI=T ; set default accordingly and stop
1062        if not consistent.
1063      - ALL_PROC_DIE: add a BARRIER after MPI_FINALIZE call ; skip this when thread
1064        argument is zero (in case called within single-thread section).
1065    o pkg/fizhi:
1066        clean-up turbulence cold-start switch: decided in fizhi_init_vars.F, stored
1067        in common bloc (fizhi_coms.h) and then passed as argument up to S/R TURBIO.
1068    o pkg/exch2:
1069      - add argument "updateCorners" to S/R exch2_get_uv_bounds (enable to
1070        activate EXCH_IGNORE_CORNERS in vector EXCH S/R).
1071      - switch 1rst EXCH call to IGNORE_CORNERS (instead of UPDATE_CORNERS)
1072        but keep the 2nd with UPDATE_CORNERS: this prevents overwriting good data
1073        with bad ones coming from a not-yet-updated halo.
1074        This should fix the problem when sNx <> sNy and GCD(sNx,sNy) < 2*Olx.
1075    o pkg/frazil:
1076        move FrzForcT diag from frazil_diagnostics_state.F to frazil_calc_rhs.F
1077        http://mitgcm.org/pipermail/mitgcm-devel/2012-March/005384.html
1078    o model/src/config_check.F: add a check for OLx>sNx/OLy>sNy
1079    o verification/lab_sea
1080      * #undef SEAICE_EXCLUDE_FOR_EXACT_AD_TESTING
1081      * #define ALLOW_SST_CONTROL & ALLOW_SST_CONTROL
1082      * nTimeSteps 3 -> 4
1083      * changed reference output accordingly
1084    o pkg/ctrl:
1085      * fix ctrl_get_gen for xx_sst, xx_sss
1086    o pkg/fizhi:
1087      - fix 2 calls to S/R GRD2MSC (argument igrd) in update_earth_exports.F
1088        update results of exp. fizhi-cs-32x32x40 (fail with only 6 digits for cg2d)
1089      - by default, use new version of S/R GETPWHERE (#define TRY_NEW_GETPWHERE);
1090        fix few out-of-bounds indices in referencing vars (initialise igrd to 1);
1091        clean-up fizhi_turb.F (remove unused & uninitialised qdiaglsm array).
1092    o pkg/gmredi:
1093      - add diagnostic of Redi (main diagnonal) vertical diffusive flux of Temp
1094    o pkg/fizhi:
1095      - fix few initialisation and multi-tile Pb: aqualev & gridalt now pass the
1096        (old)aces open64 tuv test.
1097    o pkg/icefront: fix bug and reorder loop in icefront_init_varia.F
1098    o pkg/mom_vecinv:
1099      - fix 1 loop range in mom_vecinv.F to be like all the other loops which
1100        set/update gu,gv/Diss (fix Pb of uninitialised fVerUkp in admom_vecinv
1101        with non-lin free-surf).
1102    o model/src: move k-loop outside of i/j-loops when (re-)computing R_low
1103      in ini/update_masks_etc.F in order to avoid -O3 optimization problems with
1104      some compilers (gfortran 4.6.0 on MacOS)
1105    o momentum:
1106      - separate fVer?(:,:,kUp) & fVer?(:,:,kDown) in argument list of MOM_FLUXFORM
1107        & MOM_VECINV subroutines (to help TAF). This fixes Pb of uninitialised
1108        fVer?(kUp) in admom_fluxform with non-lin free-surf or bottom control.
1109    
1110    checkpoint63k (2012/03/17)
1111    o model/src:
1112       - selectAddFluid (ALLOW_ADDFLUID): add missing term in horizontal momentum
1113         flux-form (mom_fluxform.F) and vertical momentum (calc_gw.F) equations.
1114       - SOLVE_DIAGONAL: switch default to use adjoinable & vectorized version
1115         (#undef SOLVE_DIAGONAL_LOWMEMORY); update output of exp. front_relax.bvp.
1116    o model/src: solve_*diagonal.F
1117       - replace division with multiplication by inverse (similar to original version)
1118         update output of AD exp. global_ocean.90x40x15.
1119       - fix pkg/gmredi/gmredi_calc_psi_bvp.F & pkg/ggl90/ggl90_calc.F
1120         to enable the use of the vectorized & differentiable solve_tridiagonal.F
1121       - test exp. global_ocean.90x40x15/input_ad: switch to advection scheme 20 for
1122         vertical advection (to get solve_tridiagonal tested in AD mode).
1123    o pkg/seaice: ECCO-CLIVAR merge:
1124      1. seaice AREA relaxation
1125         * CPP option: SEAICE_ALLOW_AREA_RELAXATION
1126         * runtime flag: SEAICE_tauAreaObsRelax
1127      2. modified global mean cost imbalance code: CPP option
1128          ALLOW_SSH_GLOBMEAN_COST_CONTRIBUTION
1129    o another iteration on solve_*diagonal.F
1130       Make choices independent of AUTODIFF
1131       Default will be the adjoinable vectorized version.
1132       Alternative choices are:
1133       * non-adjoinable original version with low memory footprint:
1134         #define SOLVE_DIAGONAL_LOWMEMORY
1135       * still adjoinable but does not vectorize (k as inner-most loop):
1136         #define SOLVE_DIAGONAL_KINNER (keeping SOLVE_DIAGONAL_LOWMEMORY undef)
1137    o testreport
1138     - add option to use a home made wrapper around "make"
1139     - remove MITGCM_IEEE env. variable (no longer active)
1140    o pkg/shelfice
1141     - improve computation of friction velocity for velocity dependent
1142       exchange coefficients: include velocities into SHELFICEBoundaryLayer
1143       block to average velocities vertically
1144     - add TAF store directives for SHI_ALLOW_GAMMAFRICT
1145    o Modify diagonal solvers, now three versions (upon request):
1146      #ifndef SOLVE_DIAGONAL_AUTODIFF
1147        1. default version (dating back a while ago)
1148      #else /* def SOLVE_DIAGONAL_AUTODIFF */
1149      # ifdef SOLVE_DIAGONAL_KINNER
1150        2. adjoinable version with k-innermost loop (G. Forget)
1151      # else
1152        3. adjoinable vectorized version of 2.
1153      # endif
1154      #endif /* SOLVE_DIAGONAL_AUTODIFF */
1155      All flags are currently set within routines, but could/should be moved to CPP-options.
1156      Array bounds for 1. are as before, for 2.,3. cover the entire domain
1157      (could be changed for 1. too).
1158    o verification/lab_sea (fwd):
1159      - update the 4 fwd lab_sea test experiment: no longer SEAICE_GROWTH_LEGACY,
1160        use 7 categories (except hb87), new solve4temp params (except salt_plume),
1161        constant salinity (=4) or variable salinity (salt_plume) done through
1162        SItracer.
1163    o pkg/seaice:
1164      - rename parameters: SIsalFrac to SEAICE_saltFrac & SIsal0 to SEAICE_salt0;
1165      - remove old parameters ( SEAICE_freeze, SEAICEturbFluxFormula, SEAICE_gamma_t,
1166         SEAICE_gamma_t_frz, SEAICE_availHeatTaper & SEAICE_availHeatFracFrz)
1167        from SEAICE_PARMS.h ; still need to fix seaice_cost_sst.F (broken when
1168        SEAICE_freeze got retired) but already better than previously with
1169        SEAICE_freeze=123456.7 deg.C;
1170      - move setting of facOpenGrow/Melt from SEAICE_INIT_FIXED to SEAICE_READPARMS
1171        (safer multi-threaded setting); always set SEAICEuseEVP;
1172      - setting of ocean-ice turb. flux coeff: moved from SEAICE_CHECK to
1173        SEAICE_READPARMS & SEAICE_INIT_FIXED (this fixes wrong summary report);
1174        stop if multiple specifications for the same coeff; make sure default
1175        SEAICE_mcPheePiston is compatible with drF(1) & deltaT.
1176    o pkg/obcs:
1177      - allow to switch to upwind 1rst order advection scheme for the advective
1178        flux computation at the open-boundary; disabled for adjoint built.
1179    o pkg/ptracers:
1180      - rename PTRACERS_RESTART.h -> PTRACERS_START.h
1181      - rename ptracers_fields_blocking_exchanges.F -> ptracers_fields_blocking_exch.F
1182      - add parameter to decide when to start a tracer; use internal flag to
1183        know which tracer to step-forward; switch this internal flag at the top
1184        of forward_step.F (new S/R PTRACERS_SWITCH_ONOFF); for now, not enabled
1185        for adjoint built.
1186    o pkg/seaice:
1187      - add SEAICE_SIZE.h anywhere in the code where SEAICE.h is included ;
1188      - move MULTDIM declaration and setting from SEAICE.h to SEAICE_SIZE.h ;
1189      - keep experiment offline_exf_seaice truly single category (set MULTDIM=1).
1190    o pkg/ecco:
1191      - fix writing of output file DiagnosCost_ClimSalt/Theta
1192        and DiagnosCost_DriftSalt/Theta (if multi-tiles per proc).
1193    o pkg/seaice:
1194      - add missing initialisation of COR_ICE array in dynsolver.F
1195      - merging SEAICE_MULTICATEGORY define and undef cases. Now the same code is
1196        compiled either way, and is tested in all exps (multidim was only tested
1197        in lab_sea ad before).
1198      - cosmetic change to prepare for future addition of ITD. no change to results.
1199        no defaults change.
1200      - added run time param SEAICE_multDim (7 for SEAICE_MULTICATEGORY, 1 otherwise).
1201      - by lack of adequate verification experiments, I further used custom versions
1202        of global_ocean.cs32x15 to test multicat or not, with pickup or not. All
1203        should be correct.
1204      - avoid recomputations in ad.
1205    o array initialisation in adjoint mode:
1206      1) pkg/mom_common/mom_calc_ke.F:
1207        add full array initialisation of KE inside mom_calc_ke.F (ALLOW_AUTODIFF_TAMC):
1208        The S/R which calls MOM_CALC_KE initialises KE but in some recomputation
1209        part this initialisation is gone, resulting in Floating Point Exception
1210        (caught by open64 compiler with debug option).
1211      2) model/src/convective_weights.F
1212        set output convectCount over the full array range (instead of doing
1213        an update): this fix a similar issue when called within recomputation (adjoint)
1214        which could by-pass the initialisation (normally done in the caller S/R).
1215    o pkg/seaice:
1216      - final version of turbulent flux params, as agreed at MIT ice meet:
1217           SEAICE_mcPheePiston (default is ~ 0.000875)
1218           SEAICE_mcPheeTaper (default is 0.)
1219           SEAICE_frazilFrac (defualt is 1.)
1220           SEAICE_mcPheeStepFunc (default is false)
1221      - changes results at trunction error level
1222      - ifdef SEAICE_EXTERNAL_FLUXES, disallow SEAICE_waterAlbedo
1223    o added pkg/frazil:
1224      - see frazil_description.tex for details
1225      - verification experiment is global_with_exf/input.yearly; changes output.yearly.txt
1226    o pkg/shelfice/shelfice_thermodynamics.F
1227      - fix exponents for velocity dependent exchange coefficients: change
1228        from 2/3(=0) to 0.66666666666666667
1229      - move computation of velocity dependent exchange coefficients into
1230        separate loop, so that it applies to both thermodynamics
1231      - move some divisions by constants out of loops
1232    
1233    checkpoint63j (2012/02/16)
1234    o pkg/seaice:
1235      - overhaul of seaice_summary.F after feb 2012 clean-up of seaice_growth.F etc.
1236      - SItracer:  added run time params, and allow coupling to ocn salinity.
1237    o pkg/seaice: remove (almost) all divisions by constants within loops
1238      in seaice_growth.F and seaice_solve4temp.F, this changes (only) the cg2d
1239      results of global_ocean.cs32x15.seaice from 16 to 11 digits (but only
1240      those, caused by 1/QI -> recip_QI) -> update output.seaice.txt,
1241      output_adm.seaice_dynmix.txt and also lab_sea: output_adm.evp.txt
1242    o pkg/seaice :
1243      - simplify McPhee tapering, and allow to use it with SEAICEturbFluxFormula
1244        = 1 or 2, using newly added run time parameter SEAICE_availHeatTaper.
1245      - fix d_AREAbyATM, d_AREAbyOCN, d_AREAbyICE diags I broke in r1.148.
1246      - add permanent SItflux diag that corresponds to TFLUX but includes
1247        ice+snow. Hence SItflux-TFLUX should match the ice+snow heat budget.
1248      - allow activation/testing of a fix for suspected missing term in
1249        ocn-ice heat budget (to be confirmed). To test this, you want to
1250        undef SEAICE_DISABLE_HEATCONSFIX, and then set the run time param
1251        SEAICEheatConsFix to .TRUE. that also allows the 'SIaaflux' diagnostic.
1252      - no change in results, fwd or ad.
1253    o global_ocean.cs32x15/results: 3 changes following from the pkg/seaice commit below:
1254      - switch to variable freezing point.
1255           Results change : cg2d -> 1 digits; ad -> 3-6-6 digits.
1256      - bug fix : the sublimation term that was missing is now activated.
1257           Results change : cg2d -> 2 digits; ad -> 8-6-6 digits.
1258      - bug fix : flooding sign term for SIsal0.NE.0.
1259           Result change : cg2d -> 8 digits; ad -> 11-12-9 digits.
1260    o pkg/seaice:
1261      - unified freezing point treatment : the old SEAICE_VARIABLE_FREEZING_POINT
1262        is now the default, and the old default constant freezing point is recovered
1263        with SEAICE_tempFrz0    = -1.96,
1264             SEAICE_dTempFrz_dS = 0.,
1265      - retire SEAICE_freeze (= the old way of specifycing the constant freezing point)
1266      - remove ALLOW_SEAICE_FLOODING brackets; run time switch is already there.
1267      - bug fix (thanks to M. Losch) : the sublimation term that was missing is now
1268        activated. To reproduce old results with this bug define SEAICE_DISABLE_SUBLIM.
1269      - bug fix (silly me) : flooding sign term (seaice_growth.F r 1.149line 1211)
1270        was wrong for SIsal0.NE.0. Changes cs32x15 results (see above item for detail).
1271      - bug fix (thanks to O. Jahn) : area loss for melting  got messed up in
1272        seaice_growth r149 for legacy branch (no results change).
1273      - introduce SEAICE_CAP_SUBLIM : caps sublimation heat flux in solve4temp (code
1274        from I. Fenty).
1275      - results did not change except for global_ocean.cs32x15, mostly due to the
1276        switch to variable freezing point (see above item for detail).
1277    o pkg/thsice:
1278      - fix and simplify interface to salt_plume pkg ; diagnose directly amount of
1279        seawater freezing in thsice_calc_thickn (not used).
1280    o pkg/seaice: turbulent flux term specification via run time params.
1281      - replace CPP switches with run time switches to facilitate testing
1282      - retired CPPs : MCPHEE_OCEAN_ICE_HEAT_FLUX,
1283                       GRADIENT_MIXED_LAYER_TURBULENCE_FACTOR
1284      - added runtime parameter : SEAICEturbFluxFormula
1285      - move Mcphee constants to SEAICE_PARAMS.h
1286      - seaice_readparms.F : read turbulent flux term params (SEAICEturbFluxFormula;
1287                 SEAICE_availHeatFrac/Frz, or SEAICE_gamma_t/_frz if apply);
1288                 remove seaice_summary call (moved to seaice_init_fixed)
1289      - seaice_init_fixed.F : set SEAICE_availHeatFrac/Frz depending on
1290        SEAICEturbFluxFormula, and seaice_summary call (moved from seaice_readparms)
1291      - seaice_summary.F : add missing report of read turbulent flux term set up
1292                           and SITRACER.
1293      - seaice_check.F : check range; inform and stop if retired CPPs are used
1294                         (incl. SEAICE_AGE).
1295      - seaice_growth.F : unified use of SEAICE_availHeatFrac/Frz, without
1296             CPP switch, same computation as before for the different options.
1297      - change results at the truncation level.
1298    o pkg/seaice:
1299      - remove un-used parameters LAD & MAX_TICE ; add new run-time parameters:
1300        useMaykutSatVapPoly (default=F), postSolvTempIter (default=2) and
1301        SEAICE_wetAlbTemp (default=-1e-3). Remove option SEAICE_SOLVE4TEMP_LEGACY.
1302      - update verification/*/input*/data.seaice:
1303        to reproduce previous results with former #defined SEAICE_SOLVE4TEMP_LEGACY
1304        code, set useMaykutSatVapPoly=T & postSolvTempIter=0 ;
1305        and to reproduce previous results with former non-SOLVE4TEMP_LEGACY code,
1306        set SEAICE_wetAlbTemp=0 & SEAICE_snowThick=0.
1307    o pkg/seaice/seaice_solve4temp.F (SOLVE4TEMP_LEGACY):
1308      - remove LEGACY code for solving for tsurf (A1,A2,A3) but maintain the same
1309        algorithm (same choice: useMaykutPolySatVap=T, postSolvTempIter=0);
1310        difference in results only due to machine truncation.
1311      - remove MAX_TICE (tsurf is always =< TMELT anyway); keep MIN_TICE if using
1312        MaykutPolySatVap; keep MIN_LWDOWN.
1313      - adapt SEAICE_MODIFY_GROWTH_ADJ code (untested) to non-legacy formulation.
1314      - update output of verification exp. lab_sea (4 fwd: 11 cg2d digits except hb87,
1315        + 3 AD: 6 digits except evp) and offline_exf_seaice.seaice (12 digits).
1316    o pkg/salt_plume:
1317      - isolate saltPlumeFlux array exch into a specific S/R called from
1318        do_oceanic_phys.F
1319      - add interface to pkg/salt_plume (filling of saltPlumeFlux) in pkg/thsice.
1320    o verification:
1321      - move untested set-up to MITgcm_contrib/verification_other.
1322    o pkg/seaice:
1323      - retire old way of SEAICE_AGE. Now replaced with ALLOW_SITRACER.
1324    o pkg/seaice:
1325      - seaice_solve4temp.F (keeping results unchanged):
1326        * add 2 future run-time params to select which saturation vapor pressure
1327          formula is used and how post-iteration fluxes are set.
1328          Temporary set these 2 params according to option SOLVE4TEMP_LEGACY;
1329        * New piece of code (not used) to update surf. atmos. heat flux F_ia using
1330          the linearized expression to stay consistent with tsurf finding.
1331      - seaice_freedrift.F avoid floating exception in sqrt(y) since y=sqrt(x*x)-x
1332        can be < 0.
1333    o pkg/seaice/seaice_solve4temp.F (SOLVE4TEMP_LEGACY undef):
1334      - remove from F_ia (and from it's derivative dFiDTs1) the contribution of
1335        conductive heat flux F_c , and add it explicitly when updating tsurf as
1336        solution of: Fc = Fia + d/dT(Fia - Fc) *delta.tsurf
1337        so that now F_ia has a consistent meaning through the entire routine.
1338        This causes differences at truncation level: update output of fwd exp.
1339        global_ocean.cs32x15.seaice.
1340    o pkg/seaice:
1341      - lots of editing/cleaning in seaice_solve4temp.F + better documentation
1342        of arrays, sign/direction of fluxes; no effect on results.
1343      - replace hard coded 273.16 (=previous value of celsius2K) by celsius2K
1344        in seaice_budget_ocean.F & seaice_solve4temp.F (SOLVE4TEMP_LEGACY part);
1345        note: this should have been done before changing celsius2K default.
1346      - to keep results unchanged, add back old value of celsius2K in verification
1347        exp. input*/data : lab_sea (AD), offline_exf_seaice (fwd+AD) & seaice_obcs
1348      - replace hard coded seawater freezing temp in seaice_solve4temp.F (part
1349        SOLVE4TEMP_LEGACY) of 271.20 (=previous value of celsius2K + default
1350        value of SEAICE_freeze) by celsius2K+SEAICE_freeze so that seawater
1351        freezing temp is consistent with value in seaice_growth.F ; this causes
1352        differences at machine truncation level: update lab_sea AD output (3/4).
1353    o pkg/seaice:
1354      - mask (in exf_init_fixed.F) atemp,aqh,evap,precip,runoff,lwflx,areamask
1355        and climsst/sss even when using seaice (to prevent calculation that might
1356        use SST on land); does not affect any verification exp.
1357      - apply mask to taux,tauy (in seaice_get_dynforcing.F); update output
1358        of lab_sea.fd & lab_sea.hb87 and global_ocean.cs32x15.seaice_dynmix.
1359    o pkg/seaice/seaice_growth.F: add mask to avoid non-zero ice thickness
1360      over land (non-legacy code)
1361    o vectorize salt_plume package:
1362      - add extra code to salt_plume_frac and salt_plume_tendency_apply_s
1363      - this code computes plumebk everywhere (also over land), thus requires
1364        code to avoid divisions by zero and catch the case of kLev=Nr.
1365      - efficiency of salt_plume_frac is still sub-optimal
1366    o tools (genmake2):
1367      - fix makefile NAME specification (option: -makefile NAME) by adding
1368        "-f $MAKEFILE" in few places where it was missing including makedepend
1369        command (contribution from Paul).
1370    
1371    checkpoint63i (2012/01/24)
1372    o model/src:
1373      - add factorized versions of some EOS code to find_rho.F,
1374        define USE_FACTORIZED_EOS to turn it on (default for TARGET_NEC_SX)
1375    o model/src:
1376      - add celsius2K to namelist PARM01; remove unused recip_rhoNil from PARAMS.h;
1377      - change default celsius2K from 273.16 to 273.15
1378      - to keep results unchanged, add back old value of celsius2K in verification
1379        exp. input*/data : aim.5l_cs, 1D_ocean_ice_column, lab_sea (fwd),
1380         global_ocean.cs32x15(seaice) & cpl_aim+ocn(input_atm).
1381    o model/src: add a little initialisation trick to find_rho.F and find_alpha.F
1382      to make TAF generate vectorizable code
1383    o pkg/seaice/seaice_evp.F: add code (copied from CICE) that avoids underflows.
1384       Turn on by defining SEAICE_EVP_ELIMINATE_UNDERFLOWS. Most compilers
1385       have flags that do this more efficiently.
1386    o pkg/diagnostics/diagstats_calc.F
1387      - for TARGET_NEC_SX fix the treatment of the scaling factor tmpFac=scaleFact
1388    o pkg/obcs (with exch2):
1389      - derive OB indices in overlap region from OB-InsideMask (in obcs_init_fixed.F)
1390        and remove code (in obcs_readparms.F) which was based on EXCH of indices
1391        (through buffer) and did not account for exch2 (e.g., CS-grid) topology.
1392  o pkg/exf and seaice exp:  o pkg/exf and seaice exp:
1393    - change offline_exf_seaice.seaicetd test exp. to use default DIFF1 value (=0)    - change offline_exf_seaice.seaicetd test exp. to use default DIFF1 value (=0)
1394      so that switching off area & heff advection flags does not affect results.      so that switching off area & heff advection flags does not affect results.
1395    - change default EXF_LWDOWN_WITH_EMISSIVITY to #define in EXF_OPTIONS.h    - change default EXF_LWDOWN_WITH_EMISSIVITY to #define in EXF_OPTIONS.h
1396    - keep seaice_obcs unchanged (using #undef EXF_LWDOWN_WITH_EMISSIVITY)    - keep exp. seaice_obcs & 1D_ocean_ice_column(ad) unchanged (using #undef
1397      and, using pkg/exf default emissivities, update results of fwd verification      EXF_LWDOWN_WITH_EMISSIVITY) and, using pkg/exf default emissivities, update
1398      experiments: 1D_ocean_ice_column, global_ocean.cs32x15.seaice, lab_sea (x4)      results of verification experiments: 1D_ocean_ice_column(fwd),
1399      and offline_exf_seaice (x3).      global_ocean.cs32x15.seaice(fwd+ad) & seaice_dynmix(ad), lab_sea (all 8)
1400        and offline_exf_seaice (all 4).
1401  o pkg/seaice:  o pkg/seaice:
1402    - remove array YNEG, RIVER, TMIX (replaced by local var) from common block;    - remove array YNEG, RIVER, TMIX (replaced by local var) from common block;
1403      remove also areaNm1 & hEffNm1 when SEAICE_GROWTH_LEGACY is undef.      remove also areaNm1 & hEffNm1 when SEAICE_GROWTH_LEGACY is undef.

Legend:
Removed from v.1.1574  
changed lines
  Added in v.1.1836

  ViewVC Help
Powered by ViewVC 1.1.22