/[MITgcm]/MITgcm_contrib/ecco_darwin/v3_cs510_Brix/code/EXF_OPTIONS.h
ViewVC logotype

Annotation of /MITgcm_contrib/ecco_darwin/v3_cs510_Brix/code/EXF_OPTIONS.h

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


Revision 1.1 - (hide annotations) (download)
Tue Nov 28 19:50:42 2017 UTC (7 years, 8 months ago) by dimitri
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
Holger Brix's ECCO-Darwin version 3 with circa-2011 MITgcm

1 dimitri 1.1 C $Header: /u/gcmpack/MITgcm/pkg/exf/EXF_OPTIONS.h,v 1.18 2010/11/23 18:55:54 jmc Exp $
2     C $Name: $
3    
4     #ifndef EXF_OPTIONS_H
5     #define EXF_OPTIONS_H
6     #include "PACKAGES_CONFIG.h"
7     #include "AD_CONFIG.h"
8    
9     #ifdef ALLOW_EXF
10     #define ALLOW_CARBON
11     #define USE_EXFCO2
12    
13     #include "CPP_OPTIONS.h"
14    
15     #ifdef ALLOW_AUTODIFF_TAMC
16    
17     C When compile for AD mode,
18     C this package is currently configured by ECCO_CPPOPTIONS.h
19     C which is directly included in CPP_OPTIONS.h
20    
21     #else /* ndef ALLOW_AUTODIFF_TAMC */
22    
23     C CPP flags controlling which code is included in the files that
24     C will be compiled.
25     C
26    
27     c pkg/exf CPP options:
28     c --------------------
29     c
30     c > ( EXF_VERBOSE ) < replaced with run-time, logical parameter "exf_verbose".
31     c
32     c >>> ALLOW_ATM_WIND <<<
33     c If defined, 10-m wind fields can be read-in from files.
34     c
35     c >>> ALLOW_ATM_TEMP <<<
36     c If defined, atmospheric temperature and specific
37     c humidity fields can be read-in from files.
38     c
39     c >>> ALLOW_DOWNWARD_RADIATION <<<
40     c If defined, downward long-wave and short-wave radiation
41     c can be read-in form files or computed from lwflux and swflux.
42     c
43     c >>> ALLOW_ZENITHANGLE <<<
44     c If defined, ocean albedo varies with the zenith angle, and
45     c incoming fluxes at the top of the atmosphere are computed
46     c
47     c >>> ALLOW_BULKFORMULAE <<<
48     c Allows the use of bulk formulae in order to estimate
49     c turbulent and radiative fluxes at the ocean surface.
50     c
51     c >>> EXF_READ_EVAP <<<
52     c If defined, evaporation fields are read-in, rather than
53     c computed from atmospheric state.
54     c
55     c >>> ALLOW_RUNOFF <<<
56     c If defined, river and glacier runoff can be read-in from files.
57     c
58     c >>> ATMOSPHERIC_LOADING <<<
59     c If defined, atmospheric pressure can be read-in from files.
60     c WARNING: this flag is set (define/undef) in CPP_OPTIONS.h
61     c and cannot be changed here (in EXF_OPTIONS)
62     c
63     c >>> ICE_AREAMASK <<<
64     c If defined, fractional ice-covered area MASK can be read-in from files.
65     c
66     c >>> ALLOW_CLIMSST_RELAXATION <<<
67     c Allow the relaxation to a monthly climatology of sea surface
68     c temperature, e.g. the Reynolds climatology.
69     c
70     c >>> ALLOW_CLIMSSS_RELAXATION <<<
71     c Allow the relaxation to a monthly climatology of sea surface
72     c salinity, e.g. the Levitus climatology.
73     c
74     c >>> USE_EXF_INTERPOLATION <<<
75     c Allows specification of arbitrary Cartesian input grids.
76     c
77     c ====================================================================
78     c
79     c The following CPP options:
80     c
81     c ALLOW_ATM_WIND (WIND)
82     c ALLOW_ATM_TEMP (TEMP)
83     c ALLOW_DOWNWARD_RADIATION (DOWN)
84     c ALLOW_BULKFORMULAE (BULK)
85     c EXF_READ_EVAP (EVAP)
86     c
87     c permit the ocean-model forcing configurations listed in the
88     c table below. The first configuration is the default,
89     c flux-forced, ocean model. The next four are stand-alone
90     c configurations that use pkg/exf, open-water bulk formulae to
91     c compute the missing surface fluxes from atmospheric variables.
92     c The last four configurations can be used in conjunction with
93     c pkg/seaice to model ice-covered regions. The forcing fields
94     c in the rightmost column are defined in exf_fields.
95     c
96     c
97     c WIND |TEMP |DOWN |BULK |EVAP | actions
98     c -----|-----|-----|-----|-----|-------------------------------------
99     c | | | | |
100     c - | - | - | - | - | Read-in ustress, vstress, hflux,
101     c | | | | | swflux, and sflux.
102     c | | | | |
103     c def | def | def | def | - | Read-in uwind, vwind, atemp, aqh,
104     c | | | | | swdown, lwdown, precip, and runoff.
105     c | | | | | Compute ustress, vstress, hflux,
106     c | | | | | swflux, and sflux.
107     c | | | | |
108     c def | def | - | def | - | Read-in uwind, vwind, atemp, aqh,
109     c | | | | | swflux, lwflux, precip, and runoff.
110     c | | | | | Compute ustress, vstress, hflux,
111     c | | | | | and sflux.
112     c | | | | |
113     c def | - | - | def | - | Read-in uwind, vwind, hflux,
114     c | | | | | swflux, and sflux.
115     c | | | | | Compute ustress and vstress.
116     c | | | | |
117     c - | def | - | def | - | Read-in ustress, vstress, atemp,
118     c | | | | | aqh, swflux, lwflux, precip, and
119     c | | | | | runoff. Compute hflux and sflux.
120     c | | | | |
121     c def | def | - | - | def | Read-in uwind, vwind, atemp, aqh,
122     c | | | | | swflux, lwflux, precip, runoff,
123     c | | | | | and evap.
124     c | | | | |
125     c def | def | - | def | - | Read-in uwind, vwind, atemp, aqh,
126     c | | | | | swflux, lwflux, precip, and runoff.
127     c | | | | | Compute open-water ustress, vstress,
128     c | | | | | hflux, swflux, and evap.
129     c | | | | |
130     c def | def | def | - | def | Read-in uwind, vwind, atemp, aqh,
131     c | | | | | swdown, lwdown, precip, runoff,
132     c | | | | | and evap.
133     c | | | | |
134     c def | def | def | def | - | Read-in uwind, vwind, atemp, aqh,
135     c | | | | | swdown, lwdown, precip, and runoff.
136     c | | | | | Compute open-water ustress, vstress,
137     c | | | | | hflux, swflux, and evap.
138     c
139     c ====================================================================
140    
141     C Bulk formulae related flags.
142     #define ALLOW_ATM_TEMP
143     #define ALLOW_ATM_WIND
144     #define ALLOW_DOWNWARD_RADIATION
145     #define ALLOW_RUNOFF
146     #if (defined (ALLOW_ATM_TEMP) || \
147     defined (ALLOW_ATM_WIND))
148     # define ALLOW_BULKFORMULAE
149     # undef ALLOW_BULK_LARGEYEAGER04
150     #endif
151    
152     C Zenith Angle/Albedo related flags.
153     #ifdef ALLOW_DOWNWARD_RADIATION
154     # undef ALLOW_ZENITHANGLE
155     #endif
156    
157     C Relaxation to monthly climatologies.
158     #define ALLOW_CLIMSST_RELAXATION
159     #define ALLOW_CLIMSSS_RELAXATION
160    
161     C Use spatial interpolation to interpolate
162     C forcing files from input grid to model grid.
163     #define USE_EXF_INTERPOLATION
164     C runoff is a special case for which one might want to bypass
165     C interpolation from an input grid
166     #ifdef USE_EXF_INTERPOLATION
167     # undef USE_NO_INTERP_RUNOFF
168     #endif
169    
170     #define EXF_INTERP_USE_DYNALLOC
171     #if ( defined (EXF_INTERP_USE_DYNALLOC) & defined (USING_THREADS) )
172     # define EXF_IREAD_USE_GLOBAL_POINTER
173     #endif
174    
175     #endif /* ndef ALLOW_AUTODIFF_TAMC */
176     #endif /* ALLOW_EXF */
177     #endif /* EXF_OPTIONS_H */

  ViewVC Help
Powered by ViewVC 1.1.22