forked from darwinproject/darwin3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
COST_OPTIONS.h
77 lines (68 loc) · 3.06 KB
/
COST_OPTIONS.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
CBOP
C !ROUTINE: COST_OPTIONS.h
C !INTERFACE:
C #include "COST_OPTIONS.h"
C !DESCRIPTION:
C *==================================================================*
C | CPP options file for Cost-Function (cost) package:
C | Control which optional features to compile in this package code.
C *==================================================================*
CEOP
#ifndef COST_OPTIONS_H
#define COST_OPTIONS_H
#include "PACKAGES_CONFIG.h"
#include "CPP_OPTIONS.h"
#ifdef ALLOW_COST
#ifdef ECCO_CPPOPTIONS_H
C-- When multi-package option-file ECCO_CPPOPTIONS.h is used (directly included
C in CPP_OPTIONS.h), this option file is left empty since all options that
C are specific to this package are assumed to be set in ECCO_CPPOPTIONS.h
#else /* ndef ECCO_CPPOPTIONS_H */
C ==================================================================
C-- Package-specific Options & Macros go here
C >>> Use the EGM-96 geoid error covariance.
#undef ALLOW_EGM96_ERROR_COV
#undef ALLOW_READ_EGM_DATA
C >>> Cost function contributions
#undef ALLOW_HFLUX_COST_CONTRIBUTION
#undef ALLOW_SFLUX_COST_CONTRIBUTION
#undef ALLOW_USTRESS_COST_CONTRIBUTION
#undef ALLOW_VSTRESS_COST_CONTRIBUTION
#undef ALLOW_THETA_COST_CONTRIBUTION
#undef ALLOW_SALT_COST_CONTRIBUTION
#undef ALLOW_SST_COST_CONTRIBUTION
#undef ALLOW_SSS_COST_CONTRIBUTION
#undef ALLOW_SSH_COST_CONTRIBUTION
#undef ALLOW_CTDT_COST_CONTRIBUTION
#undef ALLOW_CTDS_COST_CONTRIBUTION
#undef ALLOW_COST_ATLANTIC
#undef ALLOW_COST_ATLANTIC_HEAT
#undef ALLOW_COST_TEST
#undef ALLOW_COST_TSQUARED
#define ALLOW_COST_TRACER
C >>> ALLOW_GENCOST_CONTRIBUTION: interactive way to add basic 2D cost
C function terms.
C > In data.ecco, this requires the specification of data file (name,
C frequency, etc.), bar file name for corresp. model average, standard
C error file name, etc.
C > In addition, adding such cost terms requires editing ecco_cost.h to
C increase NGENCOST, and editing cost_gencost_customize.F to implement
C the actual model average (i.e. the bar file content).
#undef ALLOW_GENCOST_CONTRIBUTION
C >>> free form version of GENCOST: allows one to use otherwise defined
C elements (e.g. psbar and and topex data) while taking advantage of the
C cost function/namelist slots that can be made available using
C ALLOW_GENCOST_CONTRIBUTION. To this end ALLOW_GENCOST_CONTRIBUTION
C simply switches off tests that check whether all of the gencost
C elements (e.g. gencost_barfile and gencost_datafile) are specified
C in data.ecco.
C > While this option increases flexibility within the gencost framework,
C it implies more room for error, so it should be used cautiously, and
C with good knowledge of the rest of pkg/ecco.
C > It requires providing a specific cost function routine, and editing
C cost_gencost_all.F accordingly.
#undef ALLOW_GENCOST_FREEFORM
C ==================================================================
#endif /* ndef ECCO_CPPOPTIONS_H */
#endif /* ALLOW_COST */
#endif /* COST_OPTIONS_H */