/[MITgcm]/MITgcm/pkg/ecco/cost_hyd.F
ViewVC logotype

Contents of /MITgcm/pkg/ecco/cost_hyd.F

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


Revision 1.11 - (show annotations) (download)
Thu Sep 20 22:01:37 2007 UTC (16 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint59h
Changes since 1.10: +21 -1 lines
Preparing bottom pressure cost for time-varying GRACE data.

1 C $Header: /u/gcmpack/MITgcm/pkg/ecco/cost_hyd.F,v 1.10 2007/09/20 18:23:33 heimbach Exp $
2
3 #include "COST_CPPOPTIONS.h"
4
5
6 subroutine cost_hyd( myiter, mytime, mythid )
7
8 c ==================================================================
9 c SUBROUTINE cost_hyd
10 c ==================================================================
11 c
12 c o Evaluate cost function contributions of temperature, salt, and
13 c sea surface temperature contributions.
14 c
15 c started: Christian Eckert eckert@mit.edu 30-Jun-1999
16 c
17 c changed: Christian Eckert eckert@mit.edu 25-Feb-2000
18 c
19 c - Restructured the code in order to create a package
20 c for the MITgcmUV.
21 c
22 c ==================================================================
23 c SUBROUTINE cost_hyd
24 c ==================================================================
25
26 implicit none
27
28 c == global variables ==
29 #include "EEPARAMS.h"
30 #include "SIZE.h"
31 #include "PARAMS.h"
32 #include "GRID.h"
33
34 #include "cal.h"
35 #include "ctrl.h"
36 #include "ctrl_dummy.h"
37 #include "ecco_cost.h"
38
39 c == routine arguments ==
40
41 integer myiter
42 _RL mytime
43 integer mythid
44
45 c == local variables ==
46 character*(max_len_mbuf) msgbuf
47
48 integer nnzbar
49 integer nnzobs
50 _RL spminloc
51 _RL spmaxloc
52 _RL spzeroloc
53 _RL localperiod
54
55 c == end of interface ==
56
57
58 #ifdef ALLOW_SST_COST_CONTRIBUTION
59 write(msgbuf,'(a)') 'ph-cost call cost_sst'
60 call print_message( msgbuf, standardmessageunit,
61 & SQUEEZE_RIGHT , mythid)
62 nnzbar = nnztbar
63 nnzobs = 1
64 spminloc = -1.8
65 spmaxloc = 40.
66 spzeroloc = 0.
67 localperiod = 0.
68 call cost_generic(
69 & nnzbar, tbarfile, tbar, xx_tbar_mean_dummy,
70 & nnzobs, sstdatfile, sstdat, mult_sst,
71 & nmonsrec, modelstartdate, localperiod,
72 & maskC, wsst,
73 & spminloc, spmaxloc, spzeroloc,
74 & objf_sst, num_sst,
75 & myiter, mytime, mythid )
76 cph call cost_sst ( myiter, mytime, mythid )
77 #endif
78
79 #ifdef ALLOW_BP_COST_CONTRIBUTION
80 write(msgbuf,'(a)') 'ph-cost call cost_bp'
81 call print_message( msgbuf, standardmessageunit,
82 & SQUEEZE_RIGHT , mythid)
83 nnzbar = nnztbar
84 nnzobs = 1
85 spminloc = ???
86 spmaxloc = ???
87 spzeroloc = 0.
88 localperiod = 0.
89 call cost_generic(
90 & nnzbar, bpbarfile, bpbar, xx_bpbar_mean_dummy,
91 & nnzobs, bpdatfile, bpdat, mult_bp,
92 & nmonsrec, modelstartdate, localperiod,
93 & maskC, wbp,
94 & spminloc, spmaxloc, spzeroloc,
95 & objf_bp, num_bp,
96 & myiter, mytime, mythid )
97 #endif
98
99 #ifdef ALLOW_ARGO_THETA_COST_CONTRIBUTION
100 write(msgbuf,'(a)') 'ph-cost call cost_argo_theta'
101 call print_message( msgbuf, standardmessageunit,
102 & SQUEEZE_RIGHT , mythid)
103 call cost_argo_theta ( myiter, mytime, mythid )
104 #endif
105
106 #ifdef ALLOW_CTDT_COST_CONTRIBUTION
107 write(msgbuf,'(a)') 'ph-cost call cost_ctdt'
108 call print_message( msgbuf, standardmessageunit,
109 & SQUEEZE_RIGHT , mythid)
110 call cost_ctdt ( myiter, mytime, mythid )
111 #endif
112
113 #ifdef ALLOW_XBT_COST_CONTRIBUTION
114 write(msgbuf,'(a)') 'ph-cost call cost_xbt'
115 call print_message( msgbuf, standardmessageunit,
116 & SQUEEZE_RIGHT , mythid)
117 call cost_xbt ( myiter, mytime, mythid )
118 #endif
119
120 #ifdef ALLOW_TMI_SST_COST_CONTRIBUTION
121 write(msgbuf,'(a)') 'ph-cost call cost_tmi'
122 call print_message( msgbuf, standardmessageunit,
123 & SQUEEZE_RIGHT , mythid)
124 nnzbar = nnztbar
125 nnzobs = 1
126 spminloc = -1.8
127 spmaxloc = 40.
128 spzeroloc = 0.
129 localperiod = 0.
130 call cost_generic(
131 & nnzbar, tbarfile, tbar, xx_tbar_mean_dummy,
132 & nnzobs, tmidatfile, tmidat, mult_tmi,
133 & nmonsrec, tmistartdate, localperiod,
134 & maskC, wsst,
135 & spminloc, spmaxloc, spzeroloc,
136 & objf_tmi, num_tmi,
137 & myiter, mytime, mythid )
138 cph call cost_tmi( myiter, mytime, mythid )
139 #endif
140
141 #ifdef ALLOW_SSS_COST_CONTRIBUTION
142 write(msgbuf,'(a)') 'ph-cost call cost_sss'
143 call print_message( msgbuf, standardmessageunit,
144 & SQUEEZE_RIGHT , mythid)
145 nnzbar = nnzsbar
146 nnzobs = 1
147 spminloc = 20.
148 spmaxloc = 40.
149 spzeroloc = 0.
150 localperiod = 0.
151 call cost_generic(
152 & nnzbar, sbarfile, sbar, xx_sbar_mean_dummy,
153 & nnzobs, sssdatfile, sssdat, mult_sss,
154 & nmonsrec, modelstartdate, localperiod,
155 & maskC, wsss,
156 & spminloc, spmaxloc, spzeroloc,
157 & objf_sss, num_sss,
158 & myiter, mytime, mythid )
159 cph call cost_sss ( myiter, mytime, mythid )
160 #endif
161
162 #ifdef ALLOW_CTDS_COST_CONTRIBUTION
163 write(msgbuf,'(a)') 'ph-cost call cost_ctds'
164 call print_message( msgbuf, standardmessageunit,
165 & SQUEEZE_RIGHT , mythid)
166 call cost_ctds ( myiter, mytime, mythid )
167 #endif
168
169 #ifdef ALLOW_ARGO_SALT_COST_CONTRIBUTION
170 write(msgbuf,'(a)') 'ph-cost call cost_argo_salt'
171 call print_message( msgbuf, standardmessageunit,
172 & SQUEEZE_RIGHT , mythid)
173 call cost_argo_salt ( myiter, mytime, mythid )
174 #endif
175
176 #ifdef ALLOW_THETA0_COST_CONTRIBUTION
177 write(msgbuf,'(a)') 'ph-cost call cost_theta0'
178 call print_message( msgbuf, standardmessageunit,
179 & SQUEEZE_RIGHT , mythid)
180 call cost_theta0 ( myiter, mytime, mythid )
181 #endif
182
183 #ifdef ALLOW_SALT0_COST_CONTRIBUTION
184 write(msgbuf,'(a)') 'ph-cost call cost_salt0'
185 call print_message( msgbuf, standardmessageunit,
186 & SQUEEZE_RIGHT , mythid)
187 call cost_salt0 ( myiter, mytime, mythid )
188 #endif
189
190 #ifdef ALLOW_THETA_COST_CONTRIBUTION
191 write(msgbuf,'(a)') 'ph-cost call cost_theta'
192 call print_message( msgbuf, standardmessageunit,
193 & SQUEEZE_RIGHT , mythid)
194 call cost_theta ( myiter, mytime, mythid )
195 #endif
196
197 #ifdef ALLOW_SALT_COST_CONTRIBUTION
198 write(msgbuf,'(a)') 'ph-cost call cost_salt'
199 call print_message( msgbuf, standardmessageunit,
200 & SQUEEZE_RIGHT , mythid)
201 call cost_salt ( myiter, mytime, mythid )
202 #endif
203
204 #ifdef ALLOW_TRANSPORT_COST_CONTRIBUTION
205 write(msgbuf,'(a)') 'ph-cost call cost_gen_transport'
206 call print_message( msgbuf, standardmessageunit,
207 & SQUEEZE_RIGHT , mythid)
208 call cost_gen_transport ( myiter, mytime, mythid )
209 #endif
210
211 #if (defined (ALLOW_PROFILES) && defined (ALLOW_PROFILES_CONTRIBUTION))
212 CALL cost_profiles( myiter, mytime, mythid)
213 #endif
214
215 end

  ViewVC Help
Powered by ViewVC 1.1.22