/[MITgcm]/MITgcm/pkg/cost/cost_init_varia.F
ViewVC logotype

Contents of /MITgcm/pkg/cost/cost_init_varia.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.16 - (show annotations) (download)
Sun Sep 14 15:21:13 2014 UTC (9 years, 7 months ago) by gforget
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.15: +1 -5 lines
o cost/cost_init_varia.F :
  - remove ecco_cost_init_varia
    (moved to ecco_init_varia)

1 C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_init_varia.F,v 1.15 2013/11/06 18:50:56 jmc Exp $
2 C $Name: $
3
4 #include "COST_OPTIONS.h"
5
6 SUBROUTINE COST_INIT_VARIA( mythid )
7
8 c ==================================================================
9 c SUBROUTINE cost_init_varia
10 c ==================================================================
11 c
12 c o Initialise the variable cost function part.
13 c
14 c started: Christian Eckert eckert@mit.edu 30-Jun-1999
15 c
16 c changed: Christian Eckert eckert@mit.edu 18-Apr-2000
17 c
18 c - Restructured the code in order to create a package
19 c for the MITgcmUV.
20 c
21 c ==================================================================
22 c SUBROUTINE cost_init_varia
23 c ==================================================================
24
25 implicit none
26
27 c == global variables ==
28
29 #include "EEPARAMS.h"
30 #include "SIZE.h"
31
32 #include "cost.h"
33
34 c == routine arguments ==
35
36 integer mythid
37
38 c == local variables ==
39
40 integer i,j,k
41 integer bi,bj
42 integer itlo,ithi
43 integer jtlo,jthi
44
45 c == external functions ==
46
47 c == end of interface ==
48 jtlo = mybylo(mythid)
49 jthi = mybyhi(mythid)
50 itlo = mybxlo(mythid)
51 ithi = mybxhi(mythid)
52
53 c-- Initialize the tiled cost function contributions.
54 do bj = jtlo,jthi
55 do bi = itlo,ithi
56 tile_fc(bi,bj) = 0. _d 0
57 #if ( !defined (ALLOW_ECCO) || !defined (ALLOW_COST_ATLANTIC) )
58 objf_atl(bi,bj) = 0. _d 0
59 #endif
60 objf_test(bi,bj) = 0. _d 0
61 objf_tracer(bi,bj) = 0. _d 0
62 #ifdef ALLOW_COST_TRANSPORT
63 objf_transport(bi,bj) = 0. _d 0
64 #endif
65 #ifdef ALLOW_COST_DEPTH
66 objf_depth(bi,bj) = 0. _d 0
67 #endif
68 #ifdef ALLOW_COST_VECTOR
69 do i=1,sNx
70 objf_vector(i,bi,bj) = 0. _d 0
71 end do
72 #endif
73 c
74 #ifdef ALLOW_COST
75 do k=1,Nr
76 do j=1,sNy
77 do i=1,sNx
78 cMeanTheta(i,j,k,bi,bj) = 0. _d 0
79 cMeanUVel(i,j,k,bi,bj) = 0. _d 0
80 cMeanVVel(i,j,k,bi,bj) = 0. _d 0
81 cMeanThetaUVel(i,j,k,bi,bj) = 0. _d 0
82 cMeanThetaVVel(i,j,k,bi,bj) = 0. _d 0
83 end do
84 end do
85 end do
86 #endif
87 c
88 #ifdef ALLOW_COST_STATE_FINAL
89 do j=1,sNy
90 do i=1,sNx
91 do k=1,4*Nr
92 objf_state_final(i,j,bi,bj,k) = 0. _d 0
93 enddo
94 objf_state_final(i,j,bi,bj,4*Nr+1) = 0. _d 0
95 cph No init. of cost_state_final here,
96 cph because we need it in ADM*TLM
97 end do
98 end do
99 #endif
100 enddo
101 enddo
102
103 #ifdef ALLOW_SEAICE
104 call seaice_cost_init_varia( mythid )
105 #endif
106
107 #ifdef ALLOW_THSICE
108 call thsice_cost_init_varia( mythid )
109 #endif
110
111 c-- Initialise the "global" parts of the cost function.
112 _BEGIN_MASTER( mythid )
113 fc = 0. _d 0
114 glofc = 0. _d 0
115 _END_MASTER( mythid )
116
117 _BARRIER
118
119 RETURN
120 END

  ViewVC Help
Powered by ViewVC 1.1.22