28 |
#include "PARAMS.h" |
#include "PARAMS.h" |
29 |
|
|
30 |
#include "cost.h" |
#include "cost.h" |
31 |
#include "ctrl.h" |
#ifdef ALLOW_CTRL |
32 |
|
# include "ctrl.h" |
33 |
|
#endif |
34 |
|
|
35 |
c == routine arguments == |
c == routine arguments == |
36 |
|
|
51 |
itlo = mybxlo(mythid) |
itlo = mybxlo(mythid) |
52 |
ithi = mybxhi(mythid) |
ithi = mybxhi(mythid) |
53 |
|
|
54 |
|
#ifdef ALLOW_SEAICE |
55 |
|
CALL SEAICE_COST_FINAL (myThid) |
56 |
|
#endif |
57 |
|
|
58 |
#if (defined (ALLOW_ECCO)) |
#if (defined (ALLOW_ECCO)) |
59 |
CALL ECCO_COST_FINAL (myThid) |
CALL ECCO_COST_FINAL (myThid) |
60 |
|
|
79 |
do bj = jtlo,jthi |
do bj = jtlo,jthi |
80 |
do bi = itlo,ithi |
do bi = itlo,ithi |
81 |
|
|
82 |
print*,' --> objf_test(bi,bj) =',objf_test(bi,bj) |
write(standardmessageunit,'(A,D22.15)') |
83 |
print*,' --> objf_tracer(bi,bj) =',objf_tracer(bi,bj) |
& ' --> objf_test(bi,bj) = ', objf_test(bi,bj) |
84 |
print*,' --> objf_atl(bi,bj) =',objf_atl(bi,bj) |
write(standardmessageunit,'(A,D22.15)') |
85 |
|
& ' --> objf_tracer(bi,bj) = ', objf_tracer(bi,bj) |
86 |
|
write(standardmessageunit,'(A,D22.15)') |
87 |
|
& ' --> objf_atl(bi,bj) = ', objf_atl(bi,bj) |
88 |
|
|
89 |
fc = fc |
fc = fc |
90 |
& + mult_test * objf_test(bi,bj) |
& + mult_test * objf_test(bi,bj) |
93 |
enddo |
enddo |
94 |
enddo |
enddo |
95 |
|
|
96 |
print*,' local fc = ', fc |
write(standardmessageunit,'(A,D22.15)') ' local fc = ', fc |
97 |
|
|
98 |
c-- Do global summation. |
c-- Do global summation. |
99 |
_GLOBAL_SUM_R8( fc , myThid ) |
_GLOBAL_SUM_R8( fc , myThid ) |
100 |
|
|
101 |
print*,' global fc = ', fc |
write(standardmessageunit,'(A,D22.15)') ' global fc = ', fc |
102 |
|
|
103 |
#endif /* ALLOW_ECCO */ |
#endif /* ALLOW_ECCO */ |
104 |
|
|