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

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

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


Revision 1.22 - (show annotations) (download)
Sun Apr 17 21:08:40 2011 UTC (13 years, 1 month ago) by jmc
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, checkpoint65b, checkpoint65a, checkpoint62w, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.21: +8 -21 lines
- call S/R GET_PERIODIC_INTERVAL to get interp. weights and time reccord number;
- apply EXCH to temp arrays [0,1] after loading in dic_fields_load.F

1 C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_ini_forcing.F,v 1.21 2010/04/11 22:03:53 jmc Exp $
2 C $Name: $
3
4 #include "DIC_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: DIC_INI_FORCING
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE DIC_INI_FORCING( myThid )
11
12 C !DESCRIPTION:
13 c initializes forcing fields to zero
14 c (or to reasonable values)
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_LOAD.h"
24 #include "DIC_ATMOS.h"
25
26 C !INPUT PARAMETERS: ===================================================
27 C myThid :: thread number
28 INTEGER myThid
29 CEOP
30
31 #ifdef ALLOW_DIC
32
33 c !LOCAL VARIABLES: ===================================================
34 INTEGER bi,bj,i,j
35 #if (defined (READ_PAR) && defined (USE_QSW))
36 CHARACTER*(MAX_LEN_MBUF) msgBuf
37 #endif
38
39 C First call requires that we initialize everything to zero for safety
40 DO bj = myByLo(myThid), myByHi(myThid)
41 DO bi = myBxLo(myThid), myBxHi(myThid)
42 DIC_ldRec(bi,bj) = 0
43 ENDDO
44 ENDDO
45 CALL LEF_ZERO( dicwind0,myThid )
46 CALL LEF_ZERO( dicwind1,myThid )
47 CALL LEF_ZERO( atmosp0,myThid )
48 CALL LEF_ZERO( atmosp1,myThid )
49 CALL LEF_ZERO( silica0,myThid )
50 CALL LEF_ZERO( silica1,myThid )
51 CALL LEF_ZERO( ice0,myThid )
52 CALL LEF_ZERO( ice1,myThid )
53 #ifdef READ_PAR
54 CALL LEF_ZERO( par0,myThid )
55 CALL LEF_ZERO( par1,myThid )
56 #endif
57 # ifdef ALLOW_FE
58 CALL LEF_ZERO( feinput0,myThid )
59 CALL LEF_ZERO( feinput1,myThid )
60 # endif
61
62 #ifdef READ_PAR
63 #ifdef USE_QSW
64 WRITE(msgBuf,'(2A)')
65 & ' DIC_INI_FORCING: You can not use READ_PAR ',
66 & ' and USE_QSW'
67 CALL PRINT_ERROR( msgBuf, myThid )
68 STOP 'ABNORMAL END: S/R DIC_INI_FORCING'
69 #endif
70 #endif
71
72 c set reasonable values to those that need at least something
73 DO bj = myByLo(myThid), myByHi(myThid)
74 DO bi = myBxLo(myThid), myBxHi(myThid)
75 DO j=1-Oly,sNy+Oly
76 DO i=1-Olx,sNx+Olx
77 WIND(i,j,bi,bj) = 5. _d 0*maskC(i,j,1,bi,bj)
78 AtmosP(i,j,bi,bj) = 1. _d 0*maskC(i,j,1,bi,bj)
79 SILICA(i,j,bi,bj) = 7.6838 _d -3*maskC(i,j,1,bi,bj)
80 FIce(i,j,bi,bj) = 0. _d 0
81 FluxCO2(i,j,bi,bj)= 0. _d 0
82 #ifdef READ_PAR
83 PAR(i,j,bi,bj) = 100. _d 0*maskC(i,j,1,bi,bj)
84 #endif
85 #ifdef ALLOW_FE
86 InputFe(i,j,bi,bj)= 1. _d -11*maskC(i,j,1,bi,bj)
87 #endif
88 ENDDO
89 ENDDO
90 ENDDO
91 ENDDO
92
93 total_atmos_carbon = 0. _d 0
94
95 #endif /* ALLOW_DIC */
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22