/[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.22 - (hide annotations) (download)
Sun Apr 17 21:08:40 2011 UTC (13 years, 2 months 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 jmc 1.22 C $Header: /u/gcmpack/MITgcm/pkg/dic/dic_ini_forcing.F,v 1.21 2010/04/11 22:03:53 jmc Exp $
2 jmc 1.3 C $Name: $
3    
4 stephd 1.1 #include "DIC_OPTIONS.h"
5    
6 stephd 1.2 CBOP
7 dfer 1.16 C !ROUTINE: DIC_INI_FORCING
8 stephd 1.2
9     C !INTERFACE: ==========================================================
10 stephd 1.1 SUBROUTINE DIC_INI_FORCING( myThid )
11    
12 stephd 1.2 C !DESCRIPTION:
13     c initializes forcing fields to zero
14 stephd 1.5 c (or to reasonable values)
15 stephd 1.2
16     C !USES: ===============================================================
17 stephd 1.1 IMPLICIT NONE
18     #include "SIZE.h"
19     #include "EEPARAMS.h"
20     #include "PARAMS.h"
21     #include "GRID.h"
22 dfer 1.14 #include "DIC_VARS.h"
23 stephd 1.1 #include "DIC_LOAD.h"
24 heimbach 1.20 #include "DIC_ATMOS.h"
25 stephd 1.1
26 stephd 1.2 C !INPUT PARAMETERS: ===================================================
27     C myThid :: thread number
28 stephd 1.1 INTEGER myThid
29 stephd 1.2 CEOP
30 stephd 1.1
31 jmc 1.22 #ifdef ALLOW_DIC
32 stephd 1.5
33     c !LOCAL VARIABLES: ===================================================
34     INTEGER bi,bj,i,j
35 jmc 1.21 #if (defined (READ_PAR) && defined (USE_QSW))
36 stephd 1.6 CHARACTER*(MAX_LEN_MBUF) msgBuf
37 jmc 1.21 #endif
38    
39 stephd 1.1 C First call requires that we initialize everything to zero for safety
40 jmc 1.22 DO bj = myByLo(myThid), myByHi(myThid)
41     DO bi = myBxLo(myThid), myBxHi(myThid)
42     DIC_ldRec(bi,bj) = 0
43     ENDDO
44     ENDDO
45 gforget 1.18 CALL LEF_ZERO( dicwind0,myThid )
46     CALL LEF_ZERO( dicwind1,myThid )
47 stephd 1.1 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 stephd 1.4 #ifdef READ_PAR
54     CALL LEF_ZERO( par0,myThid )
55     CALL LEF_ZERO( par1,myThid )
56     #endif
57 stephd 1.1 # ifdef ALLOW_FE
58     CALL LEF_ZERO( feinput0,myThid )
59     CALL LEF_ZERO( feinput1,myThid )
60     # endif
61    
62 stephd 1.6 #ifdef READ_PAR
63 stephd 1.7 #ifdef USE_QSW
64 stephd 1.6 WRITE(msgBuf,'(2A)')
65     & ' DIC_INI_FORCING: You can not use READ_PAR ',
66 stephd 1.7 & ' and USE_QSW'
67 stephd 1.6 CALL PRINT_ERROR( msgBuf, myThid )
68     STOP 'ABNORMAL END: S/R DIC_INI_FORCING'
69     #endif
70     #endif
71    
72 stephd 1.5 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 dfer 1.9 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 heimbach 1.20 FluxCO2(i,j,bi,bj)= 0. _d 0
82 stephd 1.5 #ifdef READ_PAR
83 dfer 1.9 PAR(i,j,bi,bj) = 100. _d 0*maskC(i,j,1,bi,bj)
84 stephd 1.5 #endif
85     #ifdef ALLOW_FE
86 dfer 1.9 InputFe(i,j,bi,bj)= 1. _d -11*maskC(i,j,1,bi,bj)
87 stephd 1.5 #endif
88     ENDDO
89     ENDDO
90     ENDDO
91     ENDDO
92    
93 heimbach 1.20 total_atmos_carbon = 0. _d 0
94 stephd 1.5
95 jmc 1.22 #endif /* ALLOW_DIC */
96 stephd 1.1 RETURN
97     END

  ViewVC Help
Powered by ViewVC 1.1.22