/[MITgcm]/MITgcm/verification/tutorial_global_oce_biogeo/code_oad/cost_tracer.F
ViewVC logotype

Contents of /MITgcm/verification/tutorial_global_oce_biogeo/code_oad/cost_tracer.F

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


Revision 1.1 - (show annotations) (download)
Tue Apr 23 16:29:35 2013 UTC (11 years, 1 month ago) by jahn
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64o, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint64n, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint64g, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint65, checkpoint64j, checkpoint64m, checkpoint64l, HEAD
add tentative OpenAD setup

1 C $Header$
2 C $Name$
3
4 #include "COST_OPTIONS.h"
5
6 subroutine cost_tracer( bi, bj, myThid )
7 C /==========================================================\
8 C | subroutine cost_tracer |
9 C | o this routine computes the cost function for the tiles |
10 C | of this processor |
11 C |==========================================================|
12 C | |
13 C | Notes |
14 C | ===== |
15 C \==========================================================/
16 IMPLICIT NONE
17
18 C == Global variables ===
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "PARAMS.h"
22 #include "DYNVARS.h"
23 #include "GRID.h"
24 #ifdef ALLOW_COST_TRACER
25 # ifdef ALLOW_PTRACERS
26 # include "PTRACERS_SIZE.h"
27 # include "PTRACERS_PARAMS.h"
28 # include "PTRACERS_FIELDS.h"
29 # endif
30 #endif
31
32 #include "cost.h"
33
34 C == Routine arguments ==
35 C myThid - Thread number for this instance of the routine.
36 integer bi, bj
37 integer myThid
38
39 #ifdef ALLOW_COST_TRACER
40 C == Local variables
41 _RL thetaRef
42 _RL locfc
43
44 integer i, j, k
45 integer ig, jg
46 ce some reference temperature
47 thetaRef = 24.0D0
48
49 locfc = 0. _d 0
50
51 k=1
52 DO j=1,sNy
53 DO i=1,sNx
54 #ifdef ALLOW_PTRACERS
55 locfc = locfc + maskC(i,j,k,bi,bj)*
56 & ptracer(i,j,k,bi,bj,6)*
57 & rA(i,j,bi,bj)*drF(k)
58 #endif
59 ENDDO
60 ENDDO
61
62 objf_tracer(bi,bj) = objf_tracer(bi,bj) + locfc
63
64 #ifdef ALLOW_PTRACERS
65 print *, 'COST TRACER nach', objf_tracer(bi,bj),
66 & ptracer(83,33,1,1,1,1), ptracer(83,33,2,1,1,1)
67 #endif
68
69 #endif /* ALLOW_COST_TRACER */
70
71 RETURN
72 END

  ViewVC Help
Powered by ViewVC 1.1.22