1 |
heimbach |
1.3 |
C $Header: /u/gcmpack/MITgcm/pkg/ecco/cost_hyd.F,v 1.2 2004/10/11 16:38:53 heimbach Exp $ |
2 |
heimbach |
1.1 |
|
3 |
|
|
#include "COST_CPPOPTIONS.h" |
4 |
|
|
|
5 |
|
|
|
6 |
heimbach |
1.2 |
subroutine cost_Hyd( |
7 |
heimbach |
1.1 |
I myiter, |
8 |
|
|
I mytime, |
9 |
|
|
I mythid |
10 |
|
|
& ) |
11 |
|
|
|
12 |
|
|
c ================================================================== |
13 |
heimbach |
1.2 |
c SUBROUTINE cost_Hyd |
14 |
heimbach |
1.1 |
c ================================================================== |
15 |
|
|
c |
16 |
|
|
c o Evaluate cost function contributions of temperature, salt, and |
17 |
|
|
c sea surface temperature contributions. |
18 |
|
|
c |
19 |
|
|
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
20 |
|
|
c |
21 |
|
|
c changed: Christian Eckert eckert@mit.edu 25-Feb-2000 |
22 |
|
|
c |
23 |
|
|
c - Restructured the code in order to create a package |
24 |
|
|
c for the MITgcmUV. |
25 |
|
|
c |
26 |
|
|
c ================================================================== |
27 |
heimbach |
1.2 |
c SUBROUTINE cost_Hyd |
28 |
heimbach |
1.1 |
c ================================================================== |
29 |
|
|
|
30 |
|
|
implicit none |
31 |
|
|
|
32 |
|
|
c == global variables == |
33 |
heimbach |
1.3 |
#include "EEPARAMS.h" |
34 |
|
|
#include "SIZE.h" |
35 |
|
|
#include "PARAMS.h" |
36 |
heimbach |
1.1 |
|
37 |
|
|
c == routine arguments == |
38 |
|
|
|
39 |
|
|
integer myiter |
40 |
|
|
_RL mytime |
41 |
|
|
integer mythid |
42 |
|
|
|
43 |
|
|
c == local variables == |
44 |
heimbach |
1.3 |
character*(max_len_mbuf) msgbuf |
45 |
heimbach |
1.1 |
|
46 |
|
|
c == end of interface == |
47 |
|
|
|
48 |
|
|
|
49 |
heimbach |
1.2 |
#ifdef ALLOW_SST_COST_CONTRIBUTION |
50 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_sst' |
51 |
|
|
call print_message( msgbuf, standardmessageunit, |
52 |
|
|
& SQUEEZE_RIGHT , mythid) |
53 |
heimbach |
1.2 |
call cost_sst( myiter, mytime, mythid ) |
54 |
|
|
#endif |
55 |
heimbach |
1.1 |
|
56 |
|
|
#ifdef ALLOW_ARGO_THETA_COST_CONTRIBUTION |
57 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_argo_theta' |
58 |
|
|
call print_message( msgbuf, standardmessageunit, |
59 |
|
|
& SQUEEZE_RIGHT , mythid) |
60 |
heimbach |
1.1 |
call cost_argo_theta ( myiter, mytime, mythid ) |
61 |
|
|
#endif |
62 |
|
|
|
63 |
|
|
#ifdef ALLOW_CTDT_COST_CONTRIBUTION |
64 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_ctdt' |
65 |
|
|
call print_message( msgbuf, standardmessageunit, |
66 |
|
|
& SQUEEZE_RIGHT , mythid) |
67 |
heimbach |
1.1 |
call cost_ctdt ( myiter, mytime, mythid ) |
68 |
|
|
#endif |
69 |
|
|
|
70 |
heimbach |
1.2 |
#ifdef ALLOW_XBT_COST_CONTRIBUTION |
71 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_xbt' |
72 |
|
|
call print_message( msgbuf, standardmessageunit, |
73 |
|
|
& SQUEEZE_RIGHT , mythid) |
74 |
heimbach |
1.2 |
call cost_xbt ( myiter, mytime, mythid ) |
75 |
|
|
#endif |
76 |
|
|
|
77 |
|
|
#ifdef ALLOW_TMI_SST_COST_CONTRIBUTION |
78 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_tmi' |
79 |
|
|
call print_message( msgbuf, standardmessageunit, |
80 |
|
|
& SQUEEZE_RIGHT , mythid) |
81 |
heimbach |
1.2 |
call cost_tmi( myiter, mytime, mythid ) |
82 |
|
|
#endif |
83 |
|
|
|
84 |
heimbach |
1.1 |
#ifdef ALLOW_SSS_COST_CONTRIBUTION |
85 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_sss' |
86 |
|
|
call print_message( msgbuf, standardmessageunit, |
87 |
|
|
& SQUEEZE_RIGHT , mythid) |
88 |
heimbach |
1.1 |
call cost_sss ( myiter, mytime, mythid ) |
89 |
|
|
#endif |
90 |
|
|
|
91 |
|
|
#ifdef ALLOW_CTDS_COST_CONTRIBUTION |
92 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_ctds' |
93 |
|
|
call print_message( msgbuf, standardmessageunit, |
94 |
|
|
& SQUEEZE_RIGHT , mythid) |
95 |
heimbach |
1.1 |
call cost_ctds ( myiter, mytime, mythid ) |
96 |
|
|
#endif |
97 |
|
|
|
98 |
|
|
#ifdef ALLOW_ARGO_SALT_COST_CONTRIBUTION |
99 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_argo_salt' |
100 |
|
|
call print_message( msgbuf, standardmessageunit, |
101 |
|
|
& SQUEEZE_RIGHT , mythid) |
102 |
heimbach |
1.1 |
call cost_argo_salt ( myiter, mytime, mythid ) |
103 |
|
|
#endif |
104 |
|
|
|
105 |
|
|
#ifdef ALLOW_THETA0_COST_CONTRIBUTION |
106 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_theta0' |
107 |
|
|
call print_message( msgbuf, standardmessageunit, |
108 |
|
|
& SQUEEZE_RIGHT , mythid) |
109 |
heimbach |
1.1 |
call cost_theta0 ( myiter, mytime, mythid ) |
110 |
|
|
#endif |
111 |
|
|
|
112 |
|
|
#ifdef ALLOW_SALT0_COST_CONTRIBUTION |
113 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_salt0' |
114 |
|
|
call print_message( msgbuf, standardmessageunit, |
115 |
|
|
& SQUEEZE_RIGHT , mythid) |
116 |
heimbach |
1.1 |
call cost_salt0 ( myiter, mytime, mythid ) |
117 |
|
|
#endif |
118 |
|
|
|
119 |
|
|
#ifdef ALLOW_THETA_COST_CONTRIBUTION |
120 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_theta' |
121 |
|
|
call print_message( msgbuf, standardmessageunit, |
122 |
|
|
& SQUEEZE_RIGHT , mythid) |
123 |
heimbach |
1.1 |
call cost_theta ( myiter, mytime, mythid ) |
124 |
|
|
#endif |
125 |
|
|
|
126 |
|
|
#ifdef ALLOW_SALT_COST_CONTRIBUTION |
127 |
heimbach |
1.3 |
write(msgbuf,'(a)') 'ph-cost call cost_salt' |
128 |
|
|
call print_message( msgbuf, standardmessageunit, |
129 |
|
|
& SQUEEZE_RIGHT , mythid) |
130 |
heimbach |
1.1 |
call cost_salt ( myiter, mytime, mythid ) |
131 |
|
|
#endif |
132 |
|
|
|
133 |
|
|
end |