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 |