/[MITgcm]/MITgcm/pkg/dic/tracer_meanarea.F
ViewVC logotype

Annotation of /MITgcm/pkg/dic/tracer_meanarea.F

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


Revision 1.1 - (hide annotations) (download)
Wed Jun 25 21:00:37 2003 UTC (20 years, 11 months ago) by stephd
Branch: MAIN
CVS Tags: branchpoint-genmake2, checkpoint51a_post, checkpoint51e_post, checkpoint51b_post, checkpoint51c_post, checkpoint51f_pre, checkpoint51f_post, checkpoint51b_pre, checkpoint51g_post, checkpoint51d_post
Branch point for: branch-genmake2
initial checking in biogeochemistry packages

1 stephd 1.1 #include "CPP_OPTIONS.h"
2     #include "GCHEM_OPTIONS.h"
3    
4     C !INTERFACE: ==========================================================
5     SUBROUTINE TRACER_MEANAREA(myIter,myTime,myThid,tracer, kLev,
6     & gsm_tracer)
7     IMPLICIT NONE
8     #include "SIZE.h"
9     #include "GRID.h"
10     #include "DYNVARS.h"
11     #include "EEPARAMS.h"
12     #include "PARAMS.h"
13     #ifdef DIC_ABIOTIC
14     #include "DIC_ABIOTIC.h"
15     #endif
16     C !INPUT PARAMETERS: ===================================================
17     C myThid :: thread number
18     INTEGER myThid, myIter
19     _RL myTime
20     INTEGER kLev
21     _RL tracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nR,nSx,nSy)
22     _RL gsm_tracer
23    
24     c local variables
25     INTEGER i,j,bi,bj
26     _RL sumarea
27    
28     _BEGIN_MASTER(myThid)
29    
30     sumarea= 0. _d 0
31     gsm_tracer= 0. _d 0
32    
33     DO bj=myByLo(myThid),myByHi(myThid)
34     DO bi=myBxLo(myThid),myBxHi(myThid)
35     DO i=1,sNx
36     DO j=1,sNy
37     sumarea=sumarea+
38     & rA(i,j,bi,bj)*maskC(i,j,kLev,bi,bj)
39     gsm_tracer=gsm_tracer+
40     & tracer(i,j,kLev,bi,bj)*rA(i,j,bi,bj)*
41     & maskC(i,j,kLev,bi,bj)
42     ENDDO
43     ENDDO
44     ENDDO
45     ENDDO
46     gsm_tracer=gsm_tracer/sumarea
47    
48     _END_MASTER(myThid)
49    
50     C-- Everyone else must wait
51     _BARRIER
52    
53    
54     RETURN
55     END
56    

  ViewVC Help
Powered by ViewVC 1.1.22