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

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

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


Revision 1.9 - (hide annotations) (download)
Sat Apr 5 18:23:28 2008 UTC (16 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint60, checkpoint61, checkpoint62, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint62b, checkpoint61f, checkpoint61n, checkpoint61q, checkpoint61e, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.8: +2 -2 lines
move out of PARAMS.h the last piece of old-ptracer code (tauTr1ClimRelax,
 lambdaTr1ClimRelax) and put them (for now) in pkg/ptracers.

1 jmc 1.9 C $Header: /u/gcmpack/MITgcm/pkg/cost/cost_tracer.F,v 1.8 2007/11/05 18:56:37 jmc Exp $
2 jmc 1.5 C $Name: $
3 heimbach 1.1
4 heimbach 1.2 #include "COST_CPPOPTIONS.h"
5 heimbach 1.1
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 heimbach 1.4 #ifdef ALLOW_COST_TRACER
25 heimbach 1.6 # ifdef ALLOW_PTRACERS
26 jmc 1.5 # include "PTRACERS_SIZE.h"
27 jmc 1.9 # include "PTRACERS_PARAMS.h"
28 jmc 1.8 # include "PTRACERS_FIELDS.h"
29 heimbach 1.4 # endif
30     #endif
31 heimbach 1.1
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 heimbach 1.6 #ifdef ALLOW_PTRACERS
55 heimbach 1.4 locfc = locfc + maskC(i,j,k,bi,bj)*
56     & lambdaTr1ClimRelax*ptracer(i,j,k,bi,bj,1)*
57 jmc 1.7 & rA(i,j,bi,bj)*drF(k)*dTtracerLev(k)
58 heimbach 1.4 #endif
59 heimbach 1.1 ENDDO
60     ENDDO
61    
62     objf_tracer(bi,bj) = objf_tracer(bi,bj) + locfc
63    
64 heimbach 1.6 #ifdef ALLOW_PTRACERS
65 heimbach 1.4 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 heimbach 1.1
69     #endif /* ALLOW_COST_TRACER */
70    
71     RETURN
72     END

  ViewVC Help
Powered by ViewVC 1.1.22