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

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

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


Revision 1.9 - (show annotations) (download)
Tue May 9 19:10:08 2006 UTC (18 years ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
rename bulkf_init.F -> bulkf_init_varia.F

1 C $Header: /u/gcmpack/MITgcm/pkg/bulk_force/bulkf_init.F,v 1.8 2006/01/22 16:14:54 jmc Exp $
2 C $Name: $
3
4 #include "BULK_FORCE_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE BULKF_INIT( myThid )
8 C /==========================================================\
9 C | SUBROUTINE BULKF_INIT
10 C | o Set bulk formula parameters
11 C |==========================================================|
12 IMPLICIT NONE
13
14 C === Global variables ===
15 #include "SIZE.h"
16 #include "EEPARAMS.h"
17 #include "BULKF_PARAMS.h"
18 #include "BULKF.h"
19 #include "BULKF_DIAG.h"
20 #ifdef CONSERV_BULKF
21 #include "BULKF_CONSERV.h"
22 #endif
23
24 C == Routine arguments ==
25 C myThid - Number of this instance of BULKF_INIT
26 INTEGER myThid
27 CEndOfInterface
28
29 #ifdef ALLOW_BULK_FORCE
30 C == Local variables ==
31 C bi,bj - Loop counters
32 C I,J
33 INTEGER bi, bj
34 INTEGER I, J
35
36 _BARRIER
37
38 C set up bulk formula arrays to zero
39 DO bj = myByLo(myThid), myByHi(myThid)
40 DO bi = myBxLo(myThid), myBxHi(myThid)
41 DO j=1-Oly,sNy+Oly
42 DO i=1-Olx,sNx+Olx
43 Tair (i,j,bi,bj) = 0.
44 Qair (i,j,bi,bj) = 0.
45 Solar (i,j,bi,bj) = 0.
46 flwdwn(i,j,bi,bj) = 0.
47 cloud (i,j,bi,bj) = 0.
48 wspeed(i,j,bi,bj) = 0.
49 uwind (i,j,bi,bj) = 0.
50 vwind (i,j,bi,bj) = 0.
51 runoff(i,j,bi,bj) = 0.
52 #ifdef ALLOW_FORMULA_AIM
53 thAir (i,j,bi,bj) = 0.
54 #endif
55 qnetch(i,j,bi,bj) = 0.
56 empch (i,j,bi,bj) = 0.
57 ENDDO
58 ENDDO
59 #ifdef ALLOW_TIMEAVE
60 IF (blk_taveFreq.GT.0.) THEN
61 BULKF_timeave(1,bi,bj)=0. _d 0
62 DO j=1-Oly,sNy+Oly
63 DO i=1-Olx,sNx+Olx
64 BULK_Qnet_AVE(i,j,bi,bj)=0. _d 0
65 BULK_EmPmR_AVE(i,j,bi,bj)=0. _d 0
66 BULK_fu_AVE(i,j,bi,bj)=0. _d 0
67 BULK_fv_AVE(i,j,bi,bj)=0. _d 0
68 BULK_latent_AVE(i,j,bi,bj)=0. _d 0
69 BULK_sensible_AVE(i,j,bi,bj)=0. _d 0
70 BULK_evap_AVE(i,j,bi,bj)=0. _d 0
71 BULK_flwup_AVE(i,j,bi,bj)=0. _d 0
72 BULK_flwupnet_AVE(i,j,bi,bj)=0. _d 0
73 BULK_solar_AVE(i,j,bi,bj)=0. _d 0
74 BULK_ssq_AVE(i,j,bi,bj)=0. _d 0
75 ENDDO
76 ENDDO
77 ENDIF
78 #endif /* ALLOW_TIMEAVE */
79 #ifdef CONSERV_BULKF
80 DO j=1-Oly,sNy+Oly
81 DO i=1-Olx,sNx+Olx
82 CONS_Qnet(i,j,bi,bj)=0. _d 0
83 CONS_EmPmR(i,j,bi,bj)=0. _d 0
84 ENDDO
85 ENDDO
86 #endif
87 ENDDO
88 ENDDO
89
90 #ifdef CONSERV_BULKF
91 constim=0.
92 #endif
93
94 #endif /* ALLOW_BULK_FORCE */
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22