/[MITgcm]/MITgcm/pkg/generic_advdiff/GAD_OPTIONS.h
ViewVC logotype

Contents of /MITgcm/pkg/generic_advdiff/GAD_OPTIONS.h

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


Revision 1.3 - (show annotations) (download)
Fri Sep 28 02:26:57 2001 UTC (22 years, 7 months ago) by adcroft
Branch: MAIN
Changes since 1.2: +18 -7 lines
File MIME type: text/plain
Switched sense of CPP macro for controlling multi-dimensional advection:
 o DISABLE_MULTIDIM_ADVECTION is set in GAD_OPTIONS.h
 o automatically set if differentiating code
   (comments around call to gad_advection point out how to re-enable it)
 o this avoids needing to add the former macro to CPP_OPTIONS.h
   - reason for this is there's no point in any of the new schemes without it.

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/generic_advdiff/GAD_OPTIONS.h,v 1.2 2001/09/19 20:45:09 adcroft Exp $
2 C $Name: $
3
4 CBOP
5 C !ROUTINE: GAD_OPTIONS.h
6
7 C !INTERFACE:
8 C #include "GAD_OPTIONS.h"
9
10 C !DESCRIPTION:
11 C Contains CPP macros/flags for controlling optional features of package.
12 CEOP
13
14 C CPP options file for GAD (Generic Advection Diffusion) package
15 C
16 C Use this file for selecting options within the GAD package
17 C
18 C GAD is enabled with ALLOW_GAD in CPP_OPTIONS.h
19
20 #include "CPP_OPTIONS.h"
21
22 #ifndef __GAD_OPTIONS
23 #ifndef DISABLE_GENERIC_ADVDIFF
24
25 C The selects the form of COSINE(lat) scaling of bi-harmonic term.
26 C *only for use on a lat-lon grid*
27 #define COSINEMETH_III
28
29 C The selects isotropic scaling of bi-harmonic term when
30 C using the COSINE(lat) scaling.
31 #undef ISOTROPIC_COS_SCALING
32
33 C As of checkpoint41, the inclusion of multi-dimensional advection
34 C introduces excessive recomputation/storage for the adjoint.
35 C We disable it here using CPP because run-time flags are insufficient.
36 #ifdef ALLOW_AUTODIFF_TAMC
37 #define DISABLE_MULTIDIM_ADVECTION
38 #endif
39
40 #else
41
42 C If GAD is disabled then so is multi-dimensional advection
43 #define DISABLE_MULTIDIM_ADVECTION
44
45 #endif /* DISABLE_GENERIC_ADVDIFF */
46 #define __GAD_OPTIONS
47 #endif /* __GAD_OPTIONS */

  ViewVC Help
Powered by ViewVC 1.1.22