1 |
jmc |
1.2 |
C $Header: $ |
2 |
|
|
C $Name: $ |
3 |
gforget |
1.1 |
|
4 |
|
|
#include "COST_CPPOPTIONS.h" |
5 |
|
|
|
6 |
|
|
|
7 |
|
|
subroutine cost_internal_params( myiter, mytime, mythid ) |
8 |
|
|
|
9 |
|
|
c ================================================================== |
10 |
|
|
c SUBROUTINE cost_internal_params |
11 |
|
|
c ================================================================== |
12 |
|
|
c |
13 |
|
|
c o Evaluate cost function contributions of internal parameters adjustments. |
14 |
|
|
c |
15 |
|
|
c started: Gael Forget 17-Aug-2007 |
16 |
|
|
c |
17 |
|
|
c ================================================================== |
18 |
|
|
c SUBROUTINE cost_internal_params |
19 |
|
|
c ================================================================== |
20 |
|
|
|
21 |
|
|
implicit none |
22 |
|
|
|
23 |
|
|
c == global variables == |
24 |
|
|
#include "EEPARAMS.h" |
25 |
|
|
#include "SIZE.h" |
26 |
|
|
#include "PARAMS.h" |
27 |
|
|
#include "GRID.h" |
28 |
|
|
|
29 |
|
|
#include "cal.h" |
30 |
|
|
#include "ctrl.h" |
31 |
|
|
#include "ctrl_dummy.h" |
32 |
|
|
#include "ecco_cost.h" |
33 |
|
|
|
34 |
|
|
c == routine arguments == |
35 |
|
|
|
36 |
|
|
integer myiter |
37 |
|
|
_RL mytime |
38 |
|
|
integer mythid |
39 |
|
|
|
40 |
|
|
c == end of interface == |
41 |
|
|
|
42 |
|
|
|
43 |
|
|
c-- Eddy stress penalty term |
44 |
|
|
#if (defined (ALLOW_TAUEDDY_COST_CONTRIBUTION) || defined (ALLOW_COST_TAU_EDDY)) |
45 |
|
|
call timer_start('cost_tau_eddy [ECCO SPIN-DOWN]', mythid) |
46 |
|
|
call cost_tau_eddy( myiter, mytime, mythid ) |
47 |
|
|
call timer_stop ('cost_tau_eddy [ECCO SPIN-DOWN]', mythid) |
48 |
|
|
#endif |
49 |
|
|
_BARRIER |
50 |
|
|
|
51 |
|
|
c-- GM coeffs penalty term |
52 |
|
|
#ifdef ALLOW_KAPGM_COST_CONTRIBUTION |
53 |
|
|
call timer_start('cost_kapgm [ECCO SPIN-DOWN]', mythid) |
54 |
|
|
call cost_kapgm( myiter, mytime, mythid ) |
55 |
|
|
call timer_stop ('cost_kapgm [ECCO SPIN-DOWN]', mythid) |
56 |
|
|
#endif |
57 |
|
|
_BARRIER |
58 |
|
|
|
59 |
|
|
c-- DIFFKR coeffs penalty term |
60 |
|
|
#ifdef ALLOW_DIFFKR_COST_CONTRIBUTION |
61 |
|
|
call timer_start('cost_diffkr [ECCO SPIN-DOWN]', mythid) |
62 |
|
|
call cost_diffkr( myiter, mytime, mythid ) |
63 |
|
|
call timer_stop ('cost_diffkr [ECCO SPIN-DOWN]', mythid) |
64 |
|
|
#endif |
65 |
|
|
_BARRIER |
66 |
|
|
|
67 |
|
|
c-- Bottom Drag penalty term |
68 |
|
|
#ifdef ALLOW_BOTTOMDRAG_COST_CONTRIBUTION |
69 |
|
|
call timer_start('cost_bottomdrag [ECCO SPIN-DOWN]', mythid) |
70 |
|
|
call cost_bottomdrag( myiter, mytime, mythid ) |
71 |
|
|
call timer_stop ('cost_bottomdrag [ECCO SPIN-DOWN]', mythid) |
72 |
|
|
#endif |
73 |
|
|
_BARRIER |
74 |
|
|
|
75 |
|
|
end |