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

Contents of /MITgcm/pkg/dic/dic_init_varia.F

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


Revision 1.5 - (show annotations) (download)
Sat Aug 30 00:34:02 2014 UTC (9 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65c, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.4: +20 -8 lines
initialise in dic_init_varia.F all commom-block var from DIC_ATMOS.h
 (instead of just total_atmos_carbon in dic_ini_forcing.F)

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

  ViewVC Help
Powered by ViewVC 1.1.22