/[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.2 - (show annotations) (download)
Sat Jul 13 03:01:39 2002 UTC (21 years, 10 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint48e_post, checkpoint50c_pre, checkpoint46b_post, checkpoint48i_post, checkpoint46l_pre, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint50b_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint47a_post, checkpoint48d_pre, checkpoint47i_post, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, checkpoint48f_post, checkpoint46j_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46j_post, checkpoint46k_post, checkpoint48a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47j_post, branch-exfmods-tag, branchpoint-genmake2, checkpoint46e_pre, checkpoint48c_post, checkpoint46b_pre, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint46g_post, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint47f_post, checkpoint50e_post, checkpoint46i_post, checkpoint46c_post, checkpoint50d_pre, checkpoint46e_post, checkpoint51e_post, checkpoint47, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51f_pre, checkpoint48g_post, checkpoint47h_post, checkpoint46d_post, checkpoint50b_post, checkpoint51a_post
Branch point for: branch-exfmods-curt, branch-genmake2, ecco-branch
Changes since 1.1: +1 -1 lines
Merging from release1_p5:
o Compatible with new ctrl package
o added Eliassen Palm cost hooks
o modif's of existing cost functions

1 C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_dependent_init.F,v 1.1.4.1 2002/04/08 20:10:38 heimbach Exp $
2
3 #include "COST_CPPOPTIONS.h"
4
5
6 subroutine cost_dependent_init( mythid )
7
8 c ==================================================================
9 c SUBROUTINE cost_dependent_init
10 c ==================================================================
11 c
12 c o Initialise the variable ad cost function part.
13 c
14 c started: heimbach@mit.edu 17-Jan-2002
15 c
16 c ==================================================================
17 c SUBROUTINE cost_dependent_init
18 c ==================================================================
19
20 implicit none
21
22 c == global variables ==
23
24 #include "EEPARAMS.h"
25 #include "SIZE.h"
26
27 #include "cost.h"
28 #include "adcost.h"
29
30 c == routine arguments ==
31
32 integer mythid
33
34 c == local variables ==
35
36 integer i,j,k
37 integer bi,bj
38 integer itlo,ithi
39 integer jtlo,jthi
40
41 c == external functions ==
42
43 c == end of interface ==
44 jtlo = mybylo(mythid)
45 jthi = mybyhi(mythid)
46 itlo = mybxlo(mythid)
47 ithi = mybxhi(mythid)
48
49 fc = 0.0
50
51 #if ( defined (ALLOW_ADJOINT_RUN) || \
52 defined (ALLOW_GRADIENT_CHECK) || \
53 defined (ALLOW_ECCO_OPTIMIZATION) )
54
55 adfc = 1.0
56 do bj = jtlo,jthi
57 do bi = itlo,ithi
58 #ifdef ALLOW_COST_VECTOR
59 do i=1,sNx
60 objf_vector(i,bi,bj) = 0. _d 0
61 adobjf_vector(i,bi,bj) = 1. _d 0
62 end do
63 #endif
64 enddo
65 enddo
66
67 #endif
68
69 return
70 end
71

  ViewVC Help
Powered by ViewVC 1.1.22