/[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.1 - (hide annotations) (download)
Fri Jul 13 13:37:45 2001 UTC (22 years, 10 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint43a-release1mods, ecco_c50_e32, ecco_c50_e33, ecco_c50_e30, ecco_c50_e31, checkpoint40pre3, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, release1_b1, ecco_c51_e34d, ecco_c51_e34e, ecco_c51_e34f, ecco_c51_e34g, ecco_c51_e34a, ecco_c51_e34b, ecco_c51_e34c, checkpoint43, icebear5, icebear4, icebear3, icebear2, checkpoint40pre2, release1-branch_tutorials, checkpoint40pre4, ecco_c50_e29, ecco_c50_e28, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, ecco_c50_e33a, release1-branch-end, ecco_c51_e34, ecco_ice2, ecco_ice1, ecco_c44_e22, ecco_c44_e25, checkpoint40pre5, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, release1_beta1, checkpoint42, checkpoint40, checkpoint41, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1-branch, release1, ecco-branch, icebear, release1_coupled
Extending cost/ package to include cost function for carbon sequestration.

1 heimbach 1.1 C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/pkg/cost/cost_tracer.F,v 1.1 2001/07/13 13:37:45 heimbach Exp $
2    
3     #include "CPP_OPTIONS.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