/[MITgcm]/MITgcm_contrib/verification_other/global_oce_llc90/code/EXF_OPTIONS.h
ViewVC logotype

Annotation of /MITgcm_contrib/verification_other/global_oce_llc90/code/EXF_OPTIONS.h

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


Revision 1.3 - (hide annotations) (download)
Wed Jan 18 22:13:24 2017 UTC (8 years, 6 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint66d, checkpoint66c
Changes since 1.2: +135 -116 lines
File MIME type: text/plain
- bring up to date with ALLOW_SALTFLX defined.

1 gforget 1.3 C $Header: /u/gcmpack/MITgcm_contrib/verification_other/global_oce_llc90/code/EXF_OPTIONS.h,v 1.2 2014/10/20 03:29:00 gforget Exp $
2 gforget 1.1 C $Name: $
3    
4 gforget 1.2 CBOP
5     C !ROUTINE: EXF_OPTIONS.h
6     C !INTERFACE:
7     C #include "EXF_OPTIONS.h"
8    
9     C !DESCRIPTION:
10     C *==================================================================*
11     C | CPP options file for EXternal Forcing (EXF) package:
12     C | Control which optional features to compile in this package code.
13     C *==================================================================*
14     CEOP
15    
16 gforget 1.1 #ifndef EXF_OPTIONS_H
17     #define EXF_OPTIONS_H
18     #include "PACKAGES_CONFIG.h"
19     #include "CPP_OPTIONS.h"
20    
21     #ifdef ALLOW_EXF
22 gforget 1.2 #ifdef ECCO_CPPOPTIONS_H
23    
24     C-- When multi-package option-file ECCO_CPPOPTIONS.h is used (directly included
25     C in CPP_OPTIONS.h), this option file is left empty since all options that
26     C are specific to this package are assumed to be set in ECCO_CPPOPTIONS.h
27    
28     #else /* ndef ECCO_CPPOPTIONS_H */
29 gforget 1.1
30 gforget 1.2 C-- Package-specific Options & Macros go here
31 gforget 1.1
32 gforget 1.3 C pkg/exf CPP options:
33     C --------------------
34     C
35     C > ( EXF_VERBOSE ) < replaced with run-time, logical parameter "exf_verbose".
36     C
37     C >>> ALLOW_ATM_WIND <<<
38     C If defined, 10-m wind fields can be read-in from files.
39     C
40     C >>> ALLOW_ATM_TEMP <<<
41     C If defined, atmospheric temperature and specific
42     C humidity fields can be read-in from files.
43     C
44     C >>> ALLOW_DOWNWARD_RADIATION <<<
45     C If defined, downward long-wave and short-wave radiation
46     C can be read-in form files or computed from lwflux and swflux.
47     C
48     C >>> ALLOW_ZENITHANGLE <<<
49     C If defined, ocean albedo varies with the zenith angle, and
50     C incoming fluxes at the top of the atmosphere are computed
51     C
52     C >>> ALLOW_BULKFORMULAE <<<
53     C Allows the use of bulk formulae in order to estimate
54     C turbulent and radiative fluxes at the ocean surface.
55     C
56     C >>> EXF_READ_EVAP <<<
57     C If defined, evaporation fields are read-in, rather than
58     C computed from atmospheric state.
59     C
60     C >>> ALLOW_RUNOFF <<<
61     C If defined, river and glacier runoff can be read-in from files.
62     C
63     C >>> ALLOW_SALTFLX <<<
64     C If defined, upward salt flux can be read-in from files.
65     C
66     C >>> ALLOW_RUNOFTEMP <<<
67     C If defined, river and glacier runoff temperature
68     C can be read-in from files.
69     C
70     C >>> ATMOSPHERIC_LOADING <<<
71     C If defined, atmospheric pressure can be read-in from files.
72     C WARNING: this flag is set (define/undef) in CPP_OPTIONS.h
73     C and cannot be changed here (in EXF_OPTIONS)
74     C
75     C >>> EXF_SEAICE_FRACTION <<<
76     C If defined, seaice fraction can be read-in from files (areaMaskFile)
77     C
78     C >>> ALLOW_CLIMSST_RELAXATION <<<
79     C Allow the relaxation to a monthly climatology of sea surface
80     C temperature, e.g. the Reynolds climatology.
81     C
82     C >>> ALLOW_CLIMSSS_RELAXATION <<<
83     C Allow the relaxation to a monthly climatology of sea surface
84     C salinity, e.g. the Levitus climatology.
85     C
86     C >>> USE_EXF_INTERPOLATION <<<
87     C Allows specification of arbitrary Cartesian input grids.
88     C
89     C >>> EXF_CALC_ATMRHO
90     C Calculate the local atm density as function of temp, humidity
91     C and pressure
92     C
93     C ====================================================================
94     C
95     C The following CPP options:
96     C
97     C ALLOW_ATM_WIND (WIND)
98     C ALLOW_ATM_TEMP (TEMP)
99     C ALLOW_DOWNWARD_RADIATION (DOWN)
100     C ALLOW_BULKFORMULAE (BULK)
101     C EXF_READ_EVAP (EVAP)
102     C
103     C permit the ocean-model forcing configurations listed in the
104     C table below. The first configuration is the default,
105     C flux-forced, ocean model. The next four are stand-alone
106     C configurations that use pkg/exf, open-water bulk formulae to
107     C compute the missing surface fluxes from atmospheric variables.
108     C The last four configurations can be used in conjunction with
109     C pkg/seaice to model ice-covered regions. The forcing fields
110     C in the rightmost column are defined in exf_fields.
111     C
112     C
113     C WIND |TEMP |DOWN |BULK |EVAP | actions
114     C -----|-----|-----|-----|-----|-------------------------------------
115     C | | | | |
116     C - | - | - | - | - | Read-in ustress, vstress, hflux,
117     C | | | | | swflux, and sflux.
118     C | | | | |
119     C def | def | def | def | - | Read-in uwind, vwind, atemp, aqh,
120     C | | | | | swdown, lwdown, precip, and runoff.
121     C | | | | | Compute ustress, vstress, hflux,
122     C | | | | | swflux, and sflux.
123     C | | | | |
124     C def | def | - | def | - | Read-in uwind, vwind, atemp, aqh,
125     C | | | | | swflux, lwflux, precip, and runoff.
126     C | | | | | Compute ustress, vstress, hflux,
127     C | | | | | and sflux.
128     C | | | | |
129     C def | - | - | def | - | Read-in uwind, vwind, hflux,
130     C | | | | | swflux, and sflux.
131     C | | | | | Compute ustress and vstress.
132     C | | | | |
133     C - | def | - | def | - | Read-in ustress, vstress, atemp,
134     C | | | | | aqh, swflux, lwflux, precip, and
135     C | | | | | runoff. Compute hflux and sflux.
136     C | | | | |
137     C def | def | - | - | def | Read-in uwind, vwind, atemp, aqh,
138     C | | | | | swflux, lwflux, precip, runoff,
139     C | | | | | and evap.
140     C | | | | |
141     C def | def | - | def | - | Read-in uwind, vwind, atemp, aqh,
142     C | | | | | swflux, lwflux, precip, and runoff.
143     C | | | | | Compute open-water ustress, vstress,
144     C | | | | | hflux, swflux, and evap.
145     C | | | | |
146     C def | def | def | - | def | Read-in uwind, vwind, atemp, aqh,
147     C | | | | | swdown, lwdown, precip, runoff,
148     C | | | | | and evap.
149     C | | | | |
150     C def | def | def | def | - | Read-in uwind, vwind, atemp, aqh,
151     C | | | | | swdown, lwdown, precip, and runoff.
152     C | | | | | Compute open-water ustress, vstress,
153     C | | | | | hflux, swflux, and evap.
154     C
155     C ====================================================================
156 gforget 1.1
157     C Bulk formulae related flags.
158     #define ALLOW_ATM_TEMP
159     #define ALLOW_ATM_WIND
160     #define ALLOW_DOWNWARD_RADIATION
161     #define ALLOW_RUNOFF
162 gforget 1.3 #undef ALLOW_RUNOFTEMP
163     #define ALLOW_SALTFLX
164 gforget 1.1 #if (defined (ALLOW_ATM_TEMP) || defined (ALLOW_ATM_WIND))
165     # define ALLOW_BULKFORMULAE
166     # define ALLOW_BULK_LARGEYEAGER04
167     #endif
168 gforget 1.3 #if (defined (ALLOW_ATM_TEMP) && defined (ATMOSPHERIC_LOADING))
169     # undef EXF_CALC_ATMRHO
170     #endif
171 gforget 1.1
172     C Zenith Angle/Albedo related flags.
173     #ifdef ALLOW_DOWNWARD_RADIATION
174     # define ALLOW_ZENITHANGLE
175 gforget 1.3 # undef ALLOW_ZENITHANGLE_BOUNDSWDOWN
176 gforget 1.1 #endif
177    
178 gforget 1.3 C Use ocean_emissivity*lwdown in lwFlux. This flag should be defined
179 gforget 1.1 C unless to reproduce old results (obtained with inconsistent old code)
180     #ifdef ALLOW_DOWNWARD_RADIATION
181     # define EXF_LWDOWN_WITH_EMISSIVITY
182     #endif
183    
184     C Relaxation to monthly climatologies.
185     #define ALLOW_CLIMSST_RELAXATION
186     #define ALLOW_CLIMSSS_RELAXATION
187    
188 gforget 1.3 C Allows to read-in seaice fraction from files (areaMaskFile)
189     #undef EXF_SEAICE_FRACTION
190    
191 gforget 1.1 C Use spatial interpolation to interpolate
192     C forcing files from input grid to model grid.
193     #define USE_EXF_INTERPOLATION
194     C for interpolated vector fields, rotate towards model-grid axis
195     C using old rotation formulae (instead of grid-angles)
196     #undef EXF_USE_OLD_VEC_ROTATION
197     C for interpolation around N & S pole, use the old formulation
198     C (no pole symmetry, single vector-comp interp, reset to 0 zonal-comp @ N.pole)
199     #undef EXF_USE_OLD_INTERP_POLE
200    
201     #define EXF_INTERP_USE_DYNALLOC
202     #if ( defined (EXF_INTERP_USE_DYNALLOC) && defined (USING_THREADS) )
203     # define EXF_IREAD_USE_GLOBAL_POINTER
204     #endif
205    
206 gforget 1.2 #endif /* ndef ECCO_CPPOPTIONS_H */
207 gforget 1.1 #endif /* ALLOW_EXF */
208     #endif /* EXF_OPTIONS_H */

  ViewVC Help
Powered by ViewVC 1.1.22