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

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

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


Revision 1.3 - (show annotations) (download)
Sat Jul 13 03:01:39 2002 UTC (21 years, 9 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, checkpoint48b_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, checkpoint46e_pre, checkpoint48c_post, checkpoint46b_pre, 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, checkpoint47, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint48g_post, checkpoint47h_post, checkpoint46d_post, checkpoint50b_post, checkpoint51a_post
Branch point for: branch-exfmods-curt
Changes since 1.2: +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_tracer.F,v 1.1.4.1 2002/04/08 20:10:38 heimbach Exp $
2
3 #include "COST_CPPOPTIONS.h"
4
5 subroutine cost_tracer( bi, bj, myThid )
6 C /==========================================================\
7 C | subroutine cost_tracer |
8 C | o this routine computes the cost function for the tiles |
9 C | of this processor |
10 C |==========================================================|
11 C | |
12 C | Notes |
13 C | ===== |
14 C \==========================================================/
15 IMPLICIT NONE
16
17 C == Global variables ===
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "DYNVARS.h"
22 #include "GRID.h"
23 #include "TR1.h"
24
25 #include "cost.h"
26
27 C == Routine arguments ==
28 C myThid - Thread number for this instance of the routine.
29 integer bi, bj
30 integer myThid
31
32 #ifdef ALLOW_COST_TRACER
33 C == Local variables
34 _RL thetaRef
35 _RL locfc
36
37 integer i, j, k
38 integer ig, jg
39 ce some reference temperature
40 thetaRef = 24.0D0
41
42 locfc = 0. _d 0
43
44 k=1
45 DO j=1,sNy
46 DO i=1,sNx
47 locfc = locfc + maskC(i,j,k,bi,bj)*
48 & lambdaTr1ClimRelax*Tr1(i,j,k,bi,bj)*
49 & rA(i,j,bi,bj)*drF(k)*deltaTtracer
50 ENDDO
51 ENDDO
52
53 cph(
54 print *, 'COST TRACER vor ', objf_tracer(bi,bj)
55 cph)
56
57 objf_tracer(bi,bj) = objf_tracer(bi,bj) + locfc
58
59 cph(
60 print *, 'COST TRACER nach', objf_tracer(bi,bj)
61 cph)
62
63 #endif /* ALLOW_COST_TRACER */
64
65 RETURN
66 END

  ViewVC Help
Powered by ViewVC 1.1.22