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

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

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


Revision 1.5 - (hide annotations) (download)
Tue May 1 22:12:12 2007 UTC (17 years, 2 months ago) by stephd
Branch: MAIN
Changes since 1.4: +26 -3 lines
o move default values for dic forcing fields (eg. wind speed) to beginning
  of run (not at every timestep). (called from packages_init_variable.F)

1 stephd 1.5 C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_ini_forcing.F,v 1.4 2005/10/13 16:25:12 stephd Exp $
2 jmc 1.3 C $Name: $
3    
4 stephd 1.1 #include "DIC_OPTIONS.h"
5     #include "GCHEM_OPTIONS.h"
6    
7 stephd 1.2 CBOP
8     C !ROUTINE: GCHEM_FORCING_INT
9    
10     C !INTERFACE: ==========================================================
11 stephd 1.1 SUBROUTINE DIC_INI_FORCING( myThid )
12    
13 stephd 1.2 C !DESCRIPTION:
14     c initializes forcing fields to zero
15 stephd 1.5 c (or to reasonable values)
16 stephd 1.2
17     C !USES: ===============================================================
18 stephd 1.1 IMPLICIT NONE
19     #include "SIZE.h"
20     #include "DYNVARS.h"
21     #include "EEPARAMS.h"
22     #include "PARAMS.h"
23     #include "GRID.h"
24 jmc 1.3 #include "PTRACERS_SIZE.h"
25 stephd 1.1 #include "PTRACERS.h"
26     #include "GCHEM.h"
27     #include "DIC_ABIOTIC.h"
28     #include "DIC_BIOTIC.h"
29     #include "DIC_LOAD.h"
30    
31 stephd 1.2 C !INPUT PARAMETERS: ===================================================
32     C myThid :: thread number
33 stephd 1.1 INTEGER myThid
34 stephd 1.2 CEOP
35 stephd 1.1
36     #ifdef ALLOW_PTRACERS
37 stephd 1.5
38     c !LOCAL VARIABLES: ===================================================
39     INTEGER bi,bj,i,j
40 stephd 1.1 c
41     C First call requires that we initialize everything to zero for safety
42     CALL LEF_ZERO( wspeed0,myThid )
43     CALL LEF_ZERO( wspeed1,myThid )
44     CALL LEF_ZERO( atmosp0,myThid )
45     CALL LEF_ZERO( atmosp1,myThid )
46     CALL LEF_ZERO( silica0,myThid )
47     CALL LEF_ZERO( silica1,myThid )
48     CALL LEF_ZERO( ice0,myThid )
49     CALL LEF_ZERO( ice1,myThid )
50 stephd 1.4 #ifdef READ_PAR
51     CALL LEF_ZERO( par0,myThid )
52     CALL LEF_ZERO( par1,myThid )
53     #endif
54 stephd 1.1 # ifdef ALLOW_FE
55     CALL LEF_ZERO( feinput0,myThid )
56     CALL LEF_ZERO( feinput1,myThid )
57     # endif
58    
59     _EXCH_XY_R4(wspeed0, myThid )
60     _EXCH_XY_R4(wspeed1, myThid )
61     _EXCH_XY_R4(atmosp0, myThid )
62     _EXCH_XY_R4(atmosp1, myThid )
63     _EXCH_XY_R4(silica0, myThid )
64     _EXCH_XY_R4(silica1, myThid )
65     _EXCH_XY_R4(ice0, myThid )
66     _EXCH_XY_R4(ice1, myThid )
67 stephd 1.4 #ifdef READ_PAR
68     _EXCH_XY_R4(par0, myThid )
69     _EXCH_XY_R4(par1, myThid )
70     #endif
71 stephd 1.1 # ifdef ALLOW_FE
72     _EXCH_XY_R4(feinput0, myThid )
73     _EXCH_XY_R4(feinput1, myThid )
74     # endif
75    
76 stephd 1.5 c set reasonable values to those that need at least something
77     DO bj = myByLo(myThid), myByHi(myThid)
78     DO bi = myBxLo(myThid), myBxHi(myThid)
79     DO j=1-Oly,sNy+Oly
80     DO i=1-Olx,sNx+Olx
81     WIND(i,j,bi,bj) = 5.d0*maskC(i,j,1,bi,bj)
82     ATMOSP(i,j,bi,bj) =1.d0*maskC(i,j,1,bi,bj)
83     SILICA(i,j,bi,bj) =7.6838e-3*maskC(i,j,1,bi,bj)
84     FIce(i,j,bi,bj) =0.d0
85     #ifdef READ_PAR
86     PAR(i,j,bi,bj) =100.d0*maskC(i,j,1,bi,bj)
87     #endif
88     #ifdef ALLOW_FE
89     InputFe(i,j,bi,bj) = 1e-11*maskC(i,j,1,bi,bj)
90     #endif
91     ENDDO
92     ENDDO
93     ENDDO
94     ENDDO
95    
96    
97 stephd 1.1 #endif
98     RETURN
99     END

  ViewVC Help
Powered by ViewVC 1.1.22