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

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

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


Revision 1.9 - (hide annotations) (download)
Mon Oct 8 23:59:21 2007 UTC (16 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint60, checkpoint61, checkpoint62, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.8: +2 -1 lines
add missing cvs $Header:$ or $Name:$

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

  ViewVC Help
Powered by ViewVC 1.1.22