1 |
|
2 |
#include "COST_CPPOPTIONS.h" |
3 |
|
4 |
|
5 |
subroutine cost_obcs( |
6 |
I myiter, |
7 |
I mytime, |
8 |
I mythid |
9 |
& ) |
10 |
|
11 |
c ================================================================== |
12 |
c SUBROUTINE cost_obcs |
13 |
c ================================================================== |
14 |
c |
15 |
c o Evaluate cost function contributions for obc's |
16 |
c |
17 |
c ================================================================== |
18 |
c SUBROUTINE cost_obcs |
19 |
c ================================================================== |
20 |
|
21 |
implicit none |
22 |
|
23 |
c == global variables == |
24 |
#include "SIZE.h" |
25 |
#include "EEPARAMS.h" |
26 |
|
27 |
#include "cal.h" |
28 |
#include "ctrl.h" |
29 |
|
30 |
c == routine arguments == |
31 |
|
32 |
integer myiter |
33 |
_RL mytime |
34 |
integer mythid |
35 |
|
36 |
c == local variables == |
37 |
integer startrec |
38 |
integer endrec |
39 |
|
40 |
c == end of interface == |
41 |
|
42 |
#ifdef ALLOW_OBCSN_COST_CONTRIBUTION |
43 |
#ifdef ALLOW_OBCSN_CONTROL |
44 |
cgg North boundary contribution to cost function. |
45 |
startrec = ncvarrecstart(11 ) |
46 |
endrec = ncvarrecsend(11 ) |
47 |
call cost_obcsn ( myiter, mytime, |
48 |
& startrec,endrec, mythid ) |
49 |
#endif |
50 |
#endif |
51 |
#ifdef ALLOW_OBCSS_COST_CONTRIBUTION |
52 |
#ifdef ALLOW_OBCSS_CONTROL |
53 |
cgg South boundary contribution to cost function. |
54 |
startrec = ncvarrecstart(12 ) |
55 |
endrec = ncvarrecsend(12 ) |
56 |
call cost_obcss ( myiter, mytime, |
57 |
& startrec,endrec, mythid ) |
58 |
#endif |
59 |
#endif |
60 |
#ifdef ALLOW_OBCSW_COST_CONTRIBUTION |
61 |
#ifdef ALLOW_OBCSW_CONTROL |
62 |
cgg West boundary contribution to cost function. |
63 |
startrec = ncvarrecstart(13 ) |
64 |
endrec = ncvarrecsend(13 ) |
65 |
call cost_obcsw ( myiter, mytime, |
66 |
& startrec,endrec, mythid ) |
67 |
#endif |
68 |
#endif |
69 |
#ifdef ALLOW_OBCSE_COST_CONTRIBUTION |
70 |
#ifdef ALLOW_OBCSE_CONTROL |
71 |
cgg East boundary contribution to cost function. |
72 |
startrec = ncvarrecstart(14 ) |
73 |
endrec = ncvarrecsend(14 ) |
74 |
call cost_obcse ( myiter, mytime, |
75 |
& startrec,endrec, mythid ) |
76 |
#endif |
77 |
#endif |
78 |
|
79 |
#ifdef OBCS_VOLFLUX_COST_CONTRIBUTION |
80 |
call cost_obcsvol ( myiter,mytime, |
81 |
& startrec, endrec, mythid) |
82 |
#endif |
83 |
|
84 |
end |