/[MITgcm]/MITgcm/pkg/bulk_force/bulkf_init.F
ViewVC logotype

Annotation of /MITgcm/pkg/bulk_force/bulkf_init.F

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


Revision 1.2 - (hide annotations) (download)
Wed Dec 4 14:53:39 2002 UTC (21 years, 5 months ago) by cheisey
Branch: MAIN
CVS Tags: checkpoint47b_post
Changes since 1.1: +1 -1 lines
Fixing bug in which diagnostic quantities are
not properly computed when using multiple tiles
on a single processor (Time cumulation array needs
to be dimensioned over Nr, but only k=1 is actually
used.  This makes routine compatible with routines
in pkg/timeave).

1 cheisey 1.1
2     #include "CPP_OPTIONS.h"
3    
4     CStartOfInterface
5     SUBROUTINE BULKF_INIT( myThid )
6     C /==========================================================\
7     C | SUBROUTINE BULKF_INIT |
8     C | o Set bulk formula parameters |
9     C |==========================================================|
10     IMPLICIT NONE
11    
12     C === Global variables ===
13     #include "SIZE.h"
14     #include "EEPARAMS.h"
15     #include "PARAMS.h"
16     #include "GRID.h"
17     #include "DYNVARS.h"
18     #include "FFIELDS.h"
19     cswdblk -- add ---
20     #ifdef ALLOW_BULK_FORCE
21     #include "BULKF.h"
22     #include "BULKF_DIAG.h"
23     #ifdef CONSERV_BULKF
24     #include "BULKF_CONSERV.h"
25     #endif
26     #endif
27     cswdblk -- end add --
28    
29     C == Routine arguments ==
30     C myThid - Number of this instance of BULKF_INIT
31     INTEGER myThid
32     CEndOfInterface
33    
34     C == Local variables ==
35     C bi,bj - Loop counters
36     C I,J
37     INTEGER bi, bj
38     INTEGER I, J
39     INTEGER prec
40     CHARACTER*(MAX_LEN_FNAM) fn
41    
42     _BARRIER
43    
44     cswdblk -- add ----
45     #ifdef ALLOW_BULK_FORCE
46     c set up bulk formula arrays to zero
47     DO bj = myByLo(myThid), myByHi(myThid)
48     DO bi = myBxLo(myThid), myBxHi(myThid)
49     DO J=1,sNy
50     DO I=1,sNx
51     evapora(i,j,bi,bj)=0.d0
52     BULK_Qnet_AVE(i,j,bi,bj)=0.e0
53     BULK_EmPmR_AVE(i,j,bi,bj)=0.e0
54     BULK_fu_AVE(i,j,bi,bj)=0.e0
55     BULK_fv_AVE(i,j,bi,bj)=0.e0
56     BULK_latent_AVE(i,j,bi,bj)=0.e0
57     BULK_sensible_AVE(i,j,bi,bj)=0.e0
58     BULK_evap_AVE(i,j,bi,bj)=0.e0
59     BULK_flw_AVE(i,j,bi,bj)=0.e0
60     BULK_solar_AVE(i,j,bi,bj)=0.e0
61     BULK_ssq_AVE(i,j,bi,bj)=0.e0
62 cheisey 1.2 BULKF_timeave(1,bi,bj)=0.e0
63 cheisey 1.1 #ifdef CONSERV_BULKF
64     CONS_Qnet(i,j,bi,bj)=0.e0
65     CONS_EmPmR(i,j,bi,bj)=0.e0
66     #endif
67     if (.NOT.readsurface) then
68     c if not reading in surface fields, make sure we do not relax
69     SSS(i,j,bi,bj)=0. _d 0
70     SST(i,j,bi,bj)=0. _d 0
71     tauThetaClimRelax=0. _d 0
72     tauSaltClimRelax=0. _d 0
73     endif
74     ENDDO
75     ENDDO
76     ENDDO
77     ENDDO
78    
79     #ifdef CONSERV_BULKF
80     constim=0
81     #endif
82    
83     c
84     #endif
85     cswdblk -------
86    
87     RETURN
88     END

  ViewVC Help
Powered by ViewVC 1.1.22