/[MITgcm]/MITgcm_contrib/llc_hires/llc_90/code-async-noseaice/EXF_OPTIONS.h
ViewVC logotype

Annotation of /MITgcm_contrib/llc_hires/llc_90/code-async-noseaice/EXF_OPTIONS.h

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


Revision 1.1 - (hide annotations) (download)
Mon Oct 9 02:02:49 2017 UTC (7 years, 9 months ago) by dimitri
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
adding asyncio experiment without seaice

1 dimitri 1.1 C $Header: /u/gcmpack/MITgcm_contrib/llc_hires/llc_90/code/EXF_OPTIONS.h,v 1.2 2017/10/03 04:20:38 dimitri Exp $
2     C $Name: $
3    
4     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     #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     #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    
30     C-- Package-specific Options & Macros go here
31    
32     C --------------------
33     C pkg/exf CPP options:
34     C (see also table below on how to combine options)
35    
36     C > ( EXF_VERBOSE ) < replaced with run-time integer parameter "exf_debugLev"
37     C
38     C >>> ALLOW_ATM_WIND <<<
39     C If defined, set default value of run-time param. "useAtmWind" to True.
40     C If useAtmWind=True, read-in and use wind vector (uwind/vwind)
41     C to compute surface wind stress.
42     C
43     C >>> ALLOW_ATM_TEMP <<<
44     C This is the main EXF option controlling air-sea buoyancy fluxes:
45     C If undefined, net heat flux (Qnet) and net fresh water flux
46     C (EmP or EmPmR) are set according to hfluxfile & sfluxfile setting.
47     C If defined, net heat flux and net fresh water flux are computed
48     C from sum of various components (radiative SW,LW + turbulent heat
49     C fluxes SH,LH ; Evap, Precip and optionally RunOff) thus ignoring
50     C hfluxfile & sfluxfile.
51     C In addition, it allows to read-in from files atmospheric temperature
52     C and specific humidity, net radiative fluxes, and precip.
53     C Also enable to read-in Evap (if EXF_READ_EVAP is defined) or
54     C turbulent heat fluxes (if ALLOW_READ_TURBFLUXES is defined).
55     C
56     C >>> ALLOW_DOWNWARD_RADIATION <<<
57     C If defined, downward long-wave and short-wave radiation
58     C can be read-in form files to compute net lwflux and swflux.
59     C
60     C >>> ALLOW_ZENITHANGLE <<<
61     C If defined, ocean albedo varies with the zenith angle, and
62     C incoming fluxes at the top of the atmosphere are computed
63     C
64     C >>> ALLOW_BULKFORMULAE <<<
65     C Allows the use of bulk formulae in order to estimate
66     C turbulent fluxes (Sensible,Latent,Evap) at the ocean surface.
67     C
68     C >>> EXF_CALC_ATMRHO
69     C Calculate the local air density as function of temp, humidity
70     C and pressure
71     C
72     C >>> EXF_READ_EVAP <<<
73     C If defined, evaporation field is read-in from file;
74     C Note: if ALLOW_BULKFORMULAE is defined, evap that is computed from
75     C atmospheric state will be replaced by read-in evap but computed
76     C latent heat flux will be kept.
77     C
78     C >>> ALLOW_READ_TURBFLUXES <<<
79     C If defined, turbulent heat fluxes (sensible and latent) can be read-in
80     C from files (but overwritten if ALLOW_BULKFORMULAE is defined).
81     C
82     C >>> ALLOW_RUNOFF <<<
83     C If defined, river and glacier runoff can be read-in from files.
84     C
85     C >>> ALLOW_SALTFLX <<<
86     C If defined, upward salt flux can be read-in from files.
87     C
88     C >>> ALLOW_RUNOFTEMP <<<
89     C If defined, river and glacier runoff temperature
90     C can be read-in from files.
91     C
92     C >>> ATMOSPHERIC_LOADING <<<
93     C If defined, atmospheric pressure can be read-in from files.
94     C WARNING: this flag is set (define/undef) in CPP_OPTIONS.h
95     C and cannot be changed here (in EXF_OPTIONS.h)
96     C
97     C >>> EXF_SEAICE_FRACTION <<<
98     C If defined, seaice fraction can be read-in from files (areaMaskFile)
99     C
100     C >>> ALLOW_CLIMSST_RELAXATION <<<
101     C Allow the relaxation to a monthly climatology of sea surface
102     C temperature, e.g. the Reynolds climatology.
103     C
104     C >>> ALLOW_CLIMSSS_RELAXATION <<<
105     C Allow the relaxation to a monthly climatology of sea surface
106     C salinity, e.g. the Levitus climatology.
107     C
108     C >>> USE_EXF_INTERPOLATION <<<
109     C Allows to provide input field on arbitrary Lat-Lon input grid
110     C (as specified in EXF_NML_04) and to interpolate to model grid.
111     C Note: default is to interpolate unless {FLD}_interpMethod is set to 0
112     C
113     C ====================================================================
114     C
115     C The following CPP options:
116     C ALLOW_ATM_WIND / useAtmWind (useWind)
117     C ALLOW_ATM_TEMP (TEMP)
118     C ALLOW_DOWNWARD_RADIATION (DOWN)
119     C ALLOW_BULKFORMULAE (BULK)
120     C EXF_READ_EVAP (EVAP)
121     C ALLOW_READ_TURBFLUXES (TURB)
122     C
123     C permit all ocean-model forcing configurations listed in the 2 tables below.
124     C The first configuration (A1,B1) is the flux-forced, ocean model.
125     C Configurations A2,B3 and A2,B4 use pkg/exf open-water bulk formulae
126     C to compute, from atmospheric variables, the missing surface fluxes.
127     C The forcing fields in the rightmost column are defined in EXF_FIELDS.h
128     C (ocean-model surface forcing field are defined in model/inc/FFIELDS.h)
129     C
130     C (A) Surface momentum flux: [model: fu,fv ; exf: ustress,vstress]
131     C
132     C # |useWind| actions
133     C ---|-------|-------------------------------------------------------------
134     C (1)| False | Read-in ustress,vstress (if needed in B, compute wind-speed)
135     C | |
136     C (2)| True | Read-in uwind,vwind ; compute wind stress ustress,vstress.
137     C ---|-------|-------------------------------------------------------------
138     C
139     C (B) Surface buoyancy flux:
140     C [ net heat flux: Qnet (exf: hflux), net short-wave: Qsw (exf: swflux)
141     C fresh-water flux: EmPmR (exf: sflux) and saltFlux (exf: saltflx) ]
142     C
143     C # |TEMP |DOWN |BULK |EVAP |TURB | actions
144     C ---|-----|-----|-----|-----|-----|-------------------------------------
145     C (1)| - | - | - | - | - | Read-in hflux, swflux and sflux.
146     C | | | | | |
147     C (2)| - | def | - | - | - | Read-in hflux, swdown and sflux.
148     C | | | | | | Compute swflux.
149     C | | | | | |
150     C (3)| def | def | def | - | - | Read-in atemp, aqh, swdown, lwdown,
151     C | | | | | | precip, and runoff.
152     C | | | | | | Compute hflux, swflux and sflux.
153     C | | | | | |
154     C (4)| def | - | def | - | - | Read-in atemp, aqh, swflux, lwflux,
155     C | | | | | | precip, and runoff.
156     C | | | | | | Compute hflux and sflux.
157     C | | | | | |
158     C (5)| def | def | - | def | def | Read-in hs, hl, swdown, lwdown,
159     C | | | | | | evap, precip and runoff.
160     C | | | | | | Compute hflux, swflux and sflux.
161     C | | | | | |
162     C (6)| def | - | - | def | def | Read-in hs, hl, swflux, lwflux,
163     C | | | | | | evap, precip and runoff.
164     C | | | | | | Compute hflux and sflux.
165     C
166     C =======================================================================
167    
168     C- Bulk formulae related flags.
169     #define ALLOW_ATM_TEMP
170     #define ALLOW_ATM_WIND
171     #define ALLOW_DOWNWARD_RADIATION
172     #ifdef ALLOW_ATM_TEMP
173     C Note: To use ALLOW_BULKFORMULAE or EXF_READ_EVAP, needs #define ALLOW_ATM_TEMP
174     # define ALLOW_BULKFORMULAE
175     # undef ALLOW_BULK_LARGEYEAGER04
176     # undef EXF_READ_EVAP
177     # ifndef ALLOW_BULKFORMULAE
178     C Note: To use ALLOW_READ_TURBFLUXES, ALLOW_ATM_TEMP needs to
179     C be defined but ALLOW_BULKFORMULAE needs to be undef
180     # define ALLOW_READ_TURBFLUXES
181     # endif
182     #endif /* ALLOW_ATM_TEMP */
183    
184     C- Other forcing fields
185     #define ALLOW_RUNOFF
186     #undef ALLOW_RUNOFTEMP
187     #define ALLOW_SALTFLX
188    
189     #if (defined (ALLOW_BULKFORMULAE) && defined (ATMOSPHERIC_LOADING))
190     C Note: To use EXF_CALC_ATMRHO, both ALLOW_BULKFORMULAE
191     C and ATMOSPHERIC_LOADING need to be defined
192     # undef EXF_CALC_ATMRHO
193     #endif
194    
195     C- Zenith Angle/Albedo related flags.
196     #ifdef ALLOW_DOWNWARD_RADIATION
197     # undef ALLOW_ZENITHANGLE
198     #endif
199    
200     C- Use ocean_emissivity*lwdown in lwFlux. This flag should be defined
201     C unless to reproduce old results (obtained with inconsistent old code)
202     #ifdef ALLOW_DOWNWARD_RADIATION
203     # define EXF_LWDOWN_WITH_EMISSIVITY
204     #endif
205    
206     C- Relaxation to monthly climatologies.
207     #undef ALLOW_CLIMSST_RELAXATION
208     #undef ALLOW_CLIMSSS_RELAXATION
209    
210     C- Allows to read-in seaice fraction from files (areaMaskFile)
211     #undef EXF_SEAICE_FRACTION
212    
213     C- Use spatial interpolation to interpolate
214     C forcing files from input grid to model grid.
215     #define USE_EXF_INTERPOLATION
216     C for interpolated vector fields, rotate towards model-grid axis
217     C using old rotation formulae (instead of grid-angles)
218     #undef EXF_USE_OLD_VEC_ROTATION
219     C for interpolation around N & S pole, use the old formulation
220     C (no pole symmetry, single vector-comp interp, reset to 0 zonal-comp @ N.pole)
221     #undef EXF_USE_OLD_INTERP_POLE
222    
223     #define EXF_INTERP_USE_DYNALLOC
224     #if ( defined USE_EXF_INTERPOLATION && defined EXF_INTERP_USE_DYNALLOC && defined USING_THREADS )
225     # define EXF_IREAD_USE_GLOBAL_POINTER
226     #endif
227    
228     #endif /* ndef ECCO_CPPOPTIONS_H */
229     #endif /* ALLOW_EXF */
230     #endif /* EXF_OPTIONS_H */

  ViewVC Help
Powered by ViewVC 1.1.22