4 |
#ifndef EXF_OPTIONS_H |
#ifndef EXF_OPTIONS_H |
5 |
#define EXF_OPTIONS_H |
#define EXF_OPTIONS_H |
6 |
#include "PACKAGES_CONFIG.h" |
#include "PACKAGES_CONFIG.h" |
7 |
|
#include "AD_CONFIG.h" |
8 |
|
#include "CPP_OPTIONS.h" |
9 |
|
|
10 |
#ifdef ALLOW_EXF |
#ifdef ALLOW_EXF |
11 |
|
C Package-specific Options & Macros go here |
12 |
|
|
13 |
#include "CPP_OPTIONS.h" |
#ifdef ALLOW_AUTODIFF_TAMC |
14 |
|
|
15 |
C Despite the comments below, this package is currently configured by |
C When compile for AD mode, |
16 |
C ECCO_CPPOPTIONS.h and so you should not customize this file. |
C this package is currently configured by ECCO_CPPOPTIONS.h |
17 |
|
C which is directly included in CPP_OPTIONS.h |
18 |
|
|
19 |
CPH >>>>>> THIS SHOULD BE INCLUDED BY CPP_OPTIONS.h <<<<<< |
#else /* ndef ALLOW_AUTODIFF_TAMC */ |
|
CPH >>>>>> TO AVOID ORDERING OF HEADERS TO MATTER <<<<<< |
|
|
CPH >>>>>> UNTIL WE DECIDE ON CONSISTENT CHANGE IN <<<<<< |
|
|
CPH >>>>>> POLICY <<<<<< |
|
|
CPH#include "ECCO_CPPOPTIONS.h" |
|
20 |
|
|
21 |
C CPP flags controlling which code is included in the files that |
C CPP flags controlling which code is included in the files that |
22 |
C will be compiled. |
C will be compiled. |
|
C |
|
23 |
|
|
24 |
c pkg/exf CPP options: |
c pkg/exf CPP options: |
25 |
c -------------------- |
c -------------------- |
26 |
c |
c |
27 |
c >>> INCLUDE_EXTERNAL_FORCING_PACKAGE <<< |
c > ( EXF_VERBOSE ) < replaced with run-time, logical parameter "exf_verbose". |
|
c Include this package into the setup. |
|
|
c |
|
|
c >>> EXF_VERBOSE <<< |
|
|
c Do a bit more printout for the log file than usual. |
|
28 |
c |
c |
29 |
c >>> ALLOW_ATM_WIND <<< |
c >>> ALLOW_ATM_WIND <<< |
30 |
c If defined, 10-m wind fields can be read-in from files. |
c If defined, 10-m wind fields can be read-in from files. |
31 |
c |
c |
32 |
c >>> ALLOW_ATM_TEMP <<< |
c >>> ALLOW_ATM_TEMP <<< |
33 |
c If defined, atmospheric temperature and specific |
c If defined, atmospheric temperature and specific |
34 |
c humidity fields can be read-in from files. |
c humidity fields can be read-in from files. |
35 |
c |
c |
36 |
c >>> ALLOW_DOWNWARD_RADIATION <<< |
c >>> ALLOW_DOWNWARD_RADIATION <<< |
37 |
c If defined, downward long-wave and short-wave radiation |
c If defined, downward long-wave and short-wave radiation |
38 |
c can be read-in form files or computed from lwflux and swflux. |
c can be read-in form files or computed from lwflux and swflux. |
39 |
c |
c |
40 |
|
c >>> ALLOW_ZENITHANGLE <<< |
41 |
|
c If defined, ocean albedo varies with the zenith angle, and |
42 |
|
c incoming fluxes at the top of the atmosphere are computed |
43 |
|
c |
44 |
c >>> ALLOW_BULKFORMULAE <<< |
c >>> ALLOW_BULKFORMULAE <<< |
45 |
c Allows the use of bulk formulae in order to estimate |
c Allows the use of bulk formulae in order to estimate |
46 |
c turbulent and radiative fluxes at the ocean's surface. |
c turbulent and radiative fluxes at the ocean surface. |
47 |
c |
c |
48 |
c >>> EXF_READ_EVAP <<< |
c >>> EXF_READ_EVAP <<< |
49 |
c If defined, evaporation fields are read-in, rather than |
c If defined, evaporation fields are read-in, rather than |
50 |
c computed from atmospheric state. |
c computed from atmospheric state. |
51 |
c |
c |
52 |
c >>> ALLOW_RUNOFF <<< |
c >>> ALLOW_RUNOFF <<< |
53 |
c If defined, river and glacier runoff can be read-in from files. |
c If defined, river and glacier runoff can be read-in from files. |
54 |
c |
c |
55 |
c >>> ATMOSPHERIC_LOADING <<< |
c >>> ATMOSPHERIC_LOADING <<< |
56 |
c If defined, atmospheric pressure can be read-in from files. |
c If defined, atmospheric pressure can be read-in from files. |
57 |
|
c WARNING: this flag is set (define/undef) in CPP_OPTIONS.h |
58 |
|
c and cannot be changed here (in EXF_OPTIONS) |
59 |
|
c |
60 |
|
c >>> ICE_AREAMASK <<< |
61 |
|
c If defined, fractional ice-covered area MASK can be read-in from files. |
62 |
c |
c |
63 |
c >>> ALLOW_CLIMSST_RELAXATION <<< |
c >>> ALLOW_CLIMSST_RELAXATION <<< |
64 |
c Allow the relaxation to a monthly climatology of sea surface |
c Allow the relaxation to a monthly climatology of sea surface |
135 |
c |
c |
136 |
c ==================================================================== |
c ==================================================================== |
137 |
|
|
138 |
#ifdef USING_THREADS |
C Bulk formulae related flags. |
139 |
#define EXF_IREAD_USE_GLOBAL_POINTER |
#define ALLOW_ATM_TEMP |
140 |
|
#define ALLOW_ATM_WIND |
141 |
|
#define ALLOW_DOWNWARD_RADIATION |
142 |
|
#define ALLOW_RUNOFF |
143 |
|
#if (defined (ALLOW_ATM_TEMP) || defined (ALLOW_ATM_WIND)) |
144 |
|
# define ALLOW_BULKFORMULAE |
145 |
|
# undef ALLOW_BULK_LARGEYEAGER04 |
146 |
|
#endif |
147 |
|
|
148 |
|
C Zenith Angle/Albedo related flags. |
149 |
|
#ifdef ALLOW_DOWNWARD_RADIATION |
150 |
|
# undef ALLOW_ZENITHANGLE |
151 |
|
#endif |
152 |
|
|
153 |
|
C Use ocean_emissivity*lwdwon in lwFlux. This flag should always be define |
154 |
|
C but is not because of backward compatibility |
155 |
|
#ifdef ALLOW_DOWNWARD_RADIATION |
156 |
|
# undef EXF_LWDOWN_WITH_EMISSIVITY |
157 |
|
#endif |
158 |
|
|
159 |
|
C Relaxation to monthly climatologies. |
160 |
|
#define ALLOW_CLIMSST_RELAXATION |
161 |
|
#define ALLOW_CLIMSSS_RELAXATION |
162 |
|
|
163 |
|
C Use spatial interpolation to interpolate |
164 |
|
C forcing files from input grid to model grid. |
165 |
|
#undef USE_EXF_INTERPOLATION |
166 |
|
C for interpolated vector fields, rotate towards model-grid axis |
167 |
|
C using old rotation formulae (instead of grid-angles) |
168 |
|
#undef EXF_USE_OLD_VEC_ROTATION |
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 |
#endif |
174 |
|
|
175 |
|
#endif /* ndef ALLOW_AUTODIFF_TAMC */ |
176 |
#endif /* ALLOW_EXF */ |
#endif /* ALLOW_EXF */ |
177 |
#endif /* EXF_OPTIONS_H */ |
#endif /* EXF_OPTIONS_H */ |