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

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

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


Revision 1.7 - (show annotations) (download)
Mon Dec 19 23:29:25 2005 UTC (18 years, 5 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58y_post, checkpoint58t_post, checkpoint58m_post, checkpoint60, checkpoint61, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint58r_post, checkpoint58n_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint58k_post, checkpoint58v_post, checkpoint58l_post, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint61n, checkpoint59j, checkpoint58h_post, checkpoint58j_post, checkpoint61q, checkpoint61e, checkpoint58i_post, checkpoint58c_post, checkpoint58u_post, checkpoint58s_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p
Changes since 1.6: +5 -3 lines
o Adding flag admtlmBypassAD to focus on propagator EV problem
o clean up objf_state_final discrepancies (SST/SSS vs. full state)

1 C
2 C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_dependent_init.F,v 1.6 2004/10/26 20:10:25 heimbach Exp $
3 C $Name: $
4
5 #include "PACKAGES_CONFIG.h"
6 #include "COST_CPPOPTIONS.h"
7
8
9 subroutine cost_dependent_init( mythid )
10
11 c ==================================================================
12 c SUBROUTINE cost_dependent_init
13 c ==================================================================
14 c
15 c o Initialise the variable ad cost function part.
16 c
17 c started: heimbach@mit.edu 17-Jan-2002
18 c
19 c ==================================================================
20 c SUBROUTINE cost_dependent_init
21 c ==================================================================
22
23 implicit none
24
25 c == global variables ==
26
27 #include "EEPARAMS.h"
28 #include "SIZE.h"
29
30 #include "cost.h"
31 #include "adcost.h"
32
33 c == routine arguments ==
34
35 integer mythid
36
37 c == local variables ==
38
39 integer i,j,k
40 integer bi,bj
41 integer itlo,ithi
42 integer jtlo,jthi
43
44 c == external functions ==
45
46 c == end of interface ==
47 jtlo = mybylo(mythid)
48 jthi = mybyhi(mythid)
49 itlo = mybxlo(mythid)
50 ithi = mybxhi(mythid)
51
52 fc = 0.0
53
54 #ifdef ALLOW_AUTODIFF
55
56 adfc = 1.0
57 do bj = jtlo,jthi
58 do bi = itlo,ithi
59 #ifdef ALLOW_COST_VECTOR
60 do i=1,sNx
61 objf_vector(i,bi,bj) = 0. _d 0
62 adobjf_vector(i,bi,bj) = 1. _d 0
63 end do
64 #endif
65 #ifdef ALLOW_COST_STATE_FINAL
66 do j=1,sNy
67 do i=1,sNx
68 do k=1,4*Nr
69 objf_state_final(i,j,bi,bj,k) = 0. _d 0
70 enddo
71 objf_state_final(i,j,bi,bj,4*Nr+1) = 0. _d 0
72 cph No init. of cost_state_final here,
73 cph because we need it in ADM*TLM
74 end do
75 end do
76 #endif
77 enddo
78 enddo
79
80 #endif /* ALLOW_AUTODIFF */
81
82 return
83 end
84

  ViewVC Help
Powered by ViewVC 1.1.22