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

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

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


Revision 1.12 - (show annotations) (download)
Fri May 14 21:52:33 2010 UTC (14 years ago) by jahn
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint65r, checkpoint65p, checkpoint65q, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62g, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.11: +7 -1 lines
move initialization of DIC diagnostics from gchem to dic package

1 C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_init_fixed.F,v 1.11 2010/04/11 20:59:27 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_FIXED
9
10 C !INTERFACE:
11 SUBROUTINE DIC_INIT_FIXED( myThid )
12
13 C !DESCRIPTION:
14 C Initialize fixed 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
25 C !INPUT PARAMETERS:
26 C myThid :: my Thread Id number
27 INTEGER myThid
28 CEOP
29
30 #ifdef ALLOW_DIC
31 INTEGER k
32 CHARACTER*(MAX_LEN_MBUF) msgBuf
33 INTEGER iUnit
34
35 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
36
37 _BEGIN_MASTER(myThid)
38
39 C set up coefficients for DIC chemistry
40 C define Schmidt no. coefficients for CO2
41 sca1 = 2073.1 _d 0
42 sca2 = -125.62 _d 0
43 sca3 = 3.6276 _d 0
44 sca4 = -0.043219 _d 0
45 C define Schmidt no. coefficients for O2
46 C based on Keeling et al [GBC, 12, 141, (1998)]
47 sox1 = 1638.0 _d 0
48 sox2 = -81.83 _d 0
49 sox3 = 1.483 _d 0
50 sox4 = -0.008004 _d 0
51
52 C coefficients for determining saturation O2
53 oA0= 2.00907 _d 0
54 oA1= 3.22014 _d 0
55 oA2= 4.05010 _d 0
56 oA3= 4.94457 _d 0
57 oA4= -2.56847 _d -1
58 oA5= 3.88767 _d 0
59 oB0= -6.24523 _d -3
60 oB1= -7.37614 _d -3
61 oB2= -1.03410 _d -2
62 oB3= -8.17083 _d -3
63 oC0= -4.88682 _d -7
64
65 C Set other constant/flag
66
67 #ifndef USE_ATMOSCO2
68
69 IF ( dic_int1.EQ.2 ) THEN
70 CALL MDSFINDUNIT( iUnit, mythid )
71 OPEN(UNIT=iUnit,FILE='co2atmos.dat',STATUS='old')
72 DO k=1,dic_int2
73 READ(iUnit,*) co2atmos(k)
74 WRITE(standardMessageUnit,*) 'co2atmos',co2atmos(k)
75 ENDDO
76 CLOSE(iUnit)
77 ENDIF
78
79 #endif /* ndef USE_ATMOSCO2 */
80
81 #ifdef DIC_BIOTIC
82 #ifdef ALLOW_AUTODIFF
83 cph nlev=Nr used in TAF store directive
84 nlev=Nr
85 #else
86 k = 1
87 DO WHILE ( k .LT. Nr .AND. rC(k) .GE. -zcrit )
88 k = k+1
89 ENDDO
90 nlev = k
91 #endif
92 C-- Print out nlev values :
93 iUnit = standardMessageUnit
94 WRITE(msgBuf,'(A)') ' '
95 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
96 WRITE(msgBuf,'(A)') '// ==================================='
97 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
98 WRITE(msgBuf,'(A)') '// DIC_INIT_FIXED parameters :'
99 CALL PRINT_MESSAGE(msgBuf,iUnit,SQUEEZE_RIGHT,myThid)
100
101 CALL WRITE_0D_I( nlev, INDEX_NONE, 'nlev =',
102 & ' /* Number of level over which Bio act is computed */')
103 #endif /* DIC_BIOTIC */
104
105 _END_MASTER(myThid)
106
107 #ifdef ALLOW_MNC
108 IF ( useMNC ) THEN
109 CALL DIC_MNC_INIT( myThid )
110 ENDIF
111 #endif /* ALLOW_MNC */
112
113 #ifdef ALLOW_DIAGNOSTICS
114 IF ( useDIAGNOSTICS ) THEN
115 CALL DIC_DIAGNOSTICS_INIT( myThid )
116 ENDIF
117 #endif /* ALLOW_DIAGNOSTICS */
118
119 #endif /* ALLOW_DIC */
120
121 RETURN
122 END

  ViewVC Help
Powered by ViewVC 1.1.22