/[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.3 - (show annotations) (download)
Thu Dec 5 16:15:58 2002 UTC (21 years, 5 months ago) by cheisey
Branch: MAIN
CVS Tags: checkpoint48f_post, checkpoint47j_post, checkpoint48d_pre, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint47i_post, checkpoint48i_post, checkpoint47f_post, checkpoint48d_post, checkpoint47c_post, checkpoint50e_post, checkpoint50c_post, checkpoint47d_post, checkpoint51f_pre, checkpoint48e_post, checkpoint48h_post, checkpoint50c_pre, branchpoint-genmake2, checkpoint50d_pre, checkpoint47h_post, checkpoint48c_post, checkpoint50b_pre, checkpoint51e_post, checkpoint51b_post, checkpoint51c_post, checkpoint48, checkpoint49, checkpoint48g_post, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint51b_pre, checkpoint47g_post, checkpoint51h_pre, checkpoint50g_post, checkpoint51g_post, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, checkpoint48a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint50h_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre
Branch point for: branch-genmake2, branch-exfmods-curt
Changes since 1.2: +2 -1 lines
Adding additional diagnostic output in order to clarify longwave term.

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_flwup_AVE(i,j,bi,bj)=0.e0
60 BULK_flwupnet_AVE(i,j,bi,bj)=0.e0
61 BULK_solar_AVE(i,j,bi,bj)=0.e0
62 BULK_ssq_AVE(i,j,bi,bj)=0.e0
63 BULKF_timeave(1,bi,bj)=0.e0
64 #ifdef CONSERV_BULKF
65 CONS_Qnet(i,j,bi,bj)=0.e0
66 CONS_EmPmR(i,j,bi,bj)=0.e0
67 #endif
68 if (.NOT.readsurface) then
69 c if not reading in surface fields, make sure we do not relax
70 SSS(i,j,bi,bj)=0. _d 0
71 SST(i,j,bi,bj)=0. _d 0
72 tauThetaClimRelax=0. _d 0
73 tauSaltClimRelax=0. _d 0
74 endif
75 ENDDO
76 ENDDO
77 ENDDO
78 ENDDO
79
80 #ifdef CONSERV_BULKF
81 constim=0
82 #endif
83
84 c
85 #endif
86 cswdblk -------
87
88 RETURN
89 END

  ViewVC Help
Powered by ViewVC 1.1.22