1 |
C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_init_varia.F,v 1.4 2010/04/11 22:03:53 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "DIC_OPTIONS.h" |
5 |
|
6 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
7 |
CBOP |
8 |
C !ROUTINE: DIC_INIT_VARIA |
9 |
|
10 |
C !INTERFACE: |
11 |
SUBROUTINE DIC_INIT_VARIA( myThid ) |
12 |
|
13 |
C !DESCRIPTION: |
14 |
C Initialize variable quantities |
15 |
|
16 |
C !USES: |
17 |
IMPLICIT NONE |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "GRID.h" |
22 |
#include "DIC_VARS.h" |
23 |
#include "DIC_ATMOS.h" |
24 |
#ifdef ALLOW_COST |
25 |
# include "DIC_COST.h" |
26 |
#endif |
27 |
C !INPUT PARAMETERS: |
28 |
C myThid :: thread number |
29 |
INTEGER myThid |
30 |
CEOP |
31 |
|
32 |
#ifdef ALLOW_DIC |
33 |
INTEGER i,j, bi,bj |
34 |
INTEGER k |
35 |
c CHARACTER*(MAX_LEN_MBUF) msgBuf |
36 |
|
37 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
38 |
|
39 |
C-- Initialise variable in common block DIC_ATMOS |
40 |
_BEGIN_MASTER(myThid) |
41 |
total_atmos_carbon = 0. _d 0 |
42 |
total_ocean_carbon = 0. _d 0 |
43 |
total_atmos_carbon_year = 0. _d 0 |
44 |
total_atmos_carbon_start = 0. _d 0 |
45 |
total_ocean_carbon_year = 0. _d 0 |
46 |
total_ocean_carbon_start = 0. _d 0 |
47 |
atpco2 = 0. _d 0 |
48 |
#ifdef ALLOW_COST |
49 |
totcost = 0. _d 0 |
50 |
#endif |
51 |
_END_MASTER(myThid) |
52 |
_BARRIER |
53 |
|
54 |
#ifdef DIC_BIOTIC |
55 |
C-- Initialise alpha & rain_ratio fields with fixed (& Uniform) values |
56 |
DO bj = myByLo(myThid), myByHi(myThid) |
57 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
58 |
DO j=1-OLy,sNy+OLy |
59 |
DO i=1-OLx,sNx+OLx |
60 |
alpha(i,j,bi,bj) = alphaUniform |
61 |
rain_ratio(i,j,bi,bj) = rainRatioUniform |
62 |
ENDDO |
63 |
ENDDO |
64 |
DO k = 1, Nr |
65 |
DO j=1-OLy,sNy+OLy |
66 |
DO i=1-OLx,sNx+OLx |
67 |
omegaC(i,j,k,bi,bj) = 0. _d 0 |
68 |
ENDDO |
69 |
ENDDO |
70 |
ENDDO |
71 |
ENDDO |
72 |
ENDDO |
73 |
#endif /* DIC_BIOTIC */ |
74 |
|
75 |
#endif /* ALLOW_DIC */ |
76 |
|
77 |
RETURN |
78 |
END |