/[MITgcm]/MITgcm_contrib/ocean_inversion_project/code/PTRACERS.h
ViewVC logotype

Contents of /MITgcm_contrib/ocean_inversion_project/code/PTRACERS.h

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


Revision 1.4 - (show annotations) (download)
Thu Sep 25 03:01:59 2003 UTC (21 years, 10 months ago) by dimitri
Branch: MAIN
Changes since 1.3: +14 -1 lines
File MIME type: text/plain
o Mods and bug fixes to pkg/cal, pkg/exf, etc., needed for computation
  of tracer Green's fucntions for ocean inversion project.

1 C $Header: /usr/local/gcmpack/MITgcm_contrib/ocean_inversion_project/code/PTRACERS.h,v 1.3 2003/09/24 04:52:38 dimitri Exp $
2 C $Name: $
3
4 #ifdef ALLOW_PTRACERS
5
6 CBOP
7 C !ROUTINE: PTRACERS.h
8 C !INTERFACE:
9 C #include PTRACERS.h
10
11 C !DESCRIPTION:
12 C Contains passive tracer fields and parameters.
13 C This file is customized to compute CO2 perturbations from
14 C 30 ocean regions for Gruber's ocean inversion project.
15
16 C Package flag
17 logical PTRACERSisON
18 COMMON /PTRACERS_PACKAGE/ PTRACERSisON
19
20 C NUMBER_OF_PTRACERS defines how many passive tracers are allocated/exist.
21 C This CPP macro is *only* used in PTRACERS.h to set an integer parameter.
22 C <Please> do not make use of it elsewhere.
23 C
24 C NUMBER_OF_PTRACERS can be defined in CPP_OPTIONS.h, or in the Makefile
25 C with DEFINES=-DNUMBER_OF_PTRACERS=4
26 C
27 C If NUMBER_OF_PTRACERS is not specified elsewhere and ALLOW_PTRACERS
28 C is set then NUMBER_OF_PTRACERS is set here (default 1)
29 #ifndef NUMBER_OF_PTRACERS
30 #define NUMBER_OF_PTRACERS 30
31 #endif
32
33 C Number of tracers
34 INTEGER PTRACERS_num
35 PARAMETER(PTRACERS_num = NUMBER_OF_PTRACERS)
36
37 C PTRACERS parameters
38 _RL PTRACERS_diffKh(PTRACERS_num)
39 _RL PTRACERS_diffK4(PTRACERS_num)
40 _RL PTRACERS_diffKr(PTRACERS_num)
41 INTEGER PTRACERS_advScheme(PTRACERS_num)
42 INTEGER PTRACERS_numInUse
43 LOGICAL PTRACERS_useGMRedi(PTRACERS_num)
44 LOGICAL PTRACERS_useKPP(PTRACERS_num)
45 LOGICAL PTRACERS_useRecords
46 CHARACTER*(MAX_LEN_FNAM) PTRACERS_initialFile(PTRACERS_num)
47 COMMON /PTRACERS_PARAMS/
48 & PTRACERS_diffKh,
49 & PTRACERS_diffK4,
50 & PTRACERS_diffKr,
51 & PTRACERS_numInUse,
52 & PTRACERS_advScheme,
53 & PTRACERS_initialFile,
54 & PTRACERS_useGMRedi,
55 & PTRACERS_useKPP,
56 & PTRACERS_useRecords
57 NAMELIST /PTRACERS_PARM01/
58 & PTRACERS_advScheme,
59 & PTRACERS_diffKh,
60 & PTRACERS_diffK4,
61 & PTRACERS_diffKr,
62 & PTRACERS_useGMRedi,
63 & PTRACERS_useKPP,
64 & PTRACERS_numInUse,
65 & PTRACERS_initialFile,
66 & PTRACERS_useRecords
67
68 C pTracer :: passive tracer concentration (tr per unit volume).
69 C gPtr :: work-space for time-stepping
70 C gPtrNM1 :: work-space for time-stepping
71 _RL pTracer (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,
72 & PTRACERS_num)
73 _RL gPtr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,
74 & PTRACERS_num)
75 _RL gPtrNM1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,
76 & PTRACERS_num)
77 _RL surfaceTendencyPtr (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy,
78 & PTRACERS_num)
79 COMMON /PTRACERS_FIELDS/
80 & pTracer, gPtr, gPtrNM1, surfaceTendencyPtr
81
82 C pTracerMasks :: masks used to define 30 ocean regions
83 C for Gruber's ocean inversion project
84 INTEGER pTracerMasks(1-OLx:sNx+OLx,1-OLy:sNy+OLy,
85 & PTRACERS_num,nSx,nSy)
86 COMMON /PTRACERS_MASKS/ pTracerMasks
87
88 C pTracerTakahashi :: variable containing monthly mean
89 C Takahashi CO2 flux climatology
90 _RS pTracerTakahashi(1-OLx:sNx+OLx,1-OLy:sNy+OLy,12,nSx,nSy)
91 COMMON /PTRACERS_Takahashi/ pTracerTakahashi
92
93 CEOP
94 #endif /* ALLOW_PTRACERS */

  ViewVC Help
Powered by ViewVC 1.1.22