1 |
C $Header$ |
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "PACKAGES_CONFIG.h" |
#include "PACKAGES_CONFIG.h" |
5 |
#include "COST_CPPOPTIONS.h" |
#include "COST_CPPOPTIONS.h" |
29 |
#include "PARAMS.h" |
#include "PARAMS.h" |
30 |
|
|
31 |
#include "cost.h" |
#include "cost.h" |
32 |
#include "ctrl.h" |
#ifdef ALLOW_CTRL |
33 |
|
# include "ctrl.h" |
34 |
|
#endif |
35 |
|
|
36 |
c == routine arguments == |
c == routine arguments == |
37 |
|
|
52 |
itlo = mybxlo(mythid) |
itlo = mybxlo(mythid) |
53 |
ithi = mybxhi(mythid) |
ithi = mybxhi(mythid) |
54 |
|
|
55 |
|
#ifdef ALLOW_SEAICE |
56 |
|
CALL SEAICE_COST_FINAL (myThid) |
57 |
|
#endif |
58 |
|
|
59 |
#if (defined (ALLOW_ECCO)) |
#if (defined (ALLOW_ECCO)) |
60 |
CALL ECCO_COST_FINAL (myThid) |
CALL ECCO_COST_FINAL (myThid) |
61 |
|
|
80 |
do bj = jtlo,jthi |
do bj = jtlo,jthi |
81 |
do bi = itlo,ithi |
do bi = itlo,ithi |
82 |
|
|
83 |
print*,' --> objf_test(bi,bj) =',objf_test(bi,bj) |
write(standardmessageunit,'(A,D22.15)') |
84 |
print*,' --> objf_tracer(bi,bj) =',objf_tracer(bi,bj) |
& ' --> objf_test(bi,bj) = ', objf_test(bi,bj) |
85 |
print*,' --> objf_atl(bi,bj) =',objf_atl(bi,bj) |
write(standardmessageunit,'(A,D22.15)') |
86 |
|
& ' --> objf_tracer(bi,bj) = ', objf_tracer(bi,bj) |
87 |
|
write(standardmessageunit,'(A,D22.15)') |
88 |
|
& ' --> objf_atl(bi,bj) = ', objf_atl(bi,bj) |
89 |
|
#ifdef ALLOW_COST_TRANSPORT |
90 |
|
write(standardmessageunit,'(A,D22.15)') |
91 |
|
& ' --> objf_transport(bi,bj) = ', objf_transport(bi,bj) |
92 |
|
#endif |
93 |
|
|
94 |
fc = fc |
fc = fc |
95 |
& + mult_test * objf_test(bi,bj) |
& + mult_test * objf_test(bi,bj) |
96 |
& + mult_tracer * objf_tracer(bi,bj) |
& + mult_tracer * objf_tracer(bi,bj) |
97 |
& + mult_atl * objf_atl(bi,bj) |
& + mult_atl * objf_atl(bi,bj) |
98 |
|
#ifdef ALLOW_COST_TRANSPORT |
99 |
|
& + mult_transport * objf_transport(bi,bj) |
100 |
|
#endif |
101 |
enddo |
enddo |
102 |
enddo |
enddo |
103 |
|
|
104 |
print*,' local fc = ', fc |
write(standardmessageunit,'(A,D22.15)') ' local fc = ', fc |
105 |
|
|
106 |
c-- Do global summation. |
c-- Do global summation. |
107 |
_GLOBAL_SUM_R8( fc , myThid ) |
_GLOBAL_SUM_R8( fc , myThid ) |
108 |
|
|
109 |
print*,' global fc = ', fc |
write(standardmessageunit,'(A,D22.15)') ' global fc = ', fc |
110 |
|
|
111 |
#endif /* ALLOW_ECCO */ |
#endif /* ALLOW_ECCO */ |
112 |
|
|