File indexing completed on 2018-03-02 18:38:13 UTC
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
6d54cf9ca1 Ed H*0001 #include "BULK_FORCE_OPTIONS.h"
7753507405 Curt*0002
e33db7ef40 Jean*0003
0004
0005
0006 SUBROUTINE BULKF_INIT_VARIA( myThid )
0007
0008
0009
0010
0011
0012
7753507405 Curt*0013
e33db7ef40 Jean*0014
0015 IMPLICIT NONE
7753507405 Curt*0016
0017 #include "SIZE.h"
0018 #include "EEPARAMS.h"
679d149d01 Jean*0019 #include "BULKF_PARAMS.h"
7753507405 Curt*0020 #include "BULKF.h"
e33db7ef40 Jean*0021 #include "BULKF_TAVE.h"
7753507405 Curt*0022 #ifdef CONSERV_BULKF
0023 #include "BULKF_CONSERV.h"
0024 #endif
0025
e33db7ef40 Jean*0026
0027
7753507405 Curt*0028 INTEGER myThid
e33db7ef40 Jean*0029
7753507405 Curt*0030
6a1d3c464b Jean*0031 #ifdef ALLOW_BULK_FORCE
7753507405 Curt*0032
6bf801d687 Jean*0033
0034
7753507405 Curt*0035 INTEGER bi, bj
6bf801d687 Jean*0036 INTEGER i, j
7753507405 Curt*0037
679d149d01 Jean*0038
0039 DO bj = myByLo(myThid), myByHi(myThid)
0040 DO bi = myBxLo(myThid), myBxHi(myThid)
0041 DO j=1-Oly,sNy+Oly
0042 DO i=1-Olx,sNx+Olx
6bf801d687 Jean*0043 Tair (i,j,bi,bj) = 0. _d 0
0044 Qair (i,j,bi,bj) = 0. _d 0
0045 Solar (i,j,bi,bj) = 0. _d 0
0046 flwdwn(i,j,bi,bj) = 0. _d 0
0047 cloud (i,j,bi,bj) = 0. _d 0
0048 wspeed(i,j,bi,bj) = 0. _d 0
0049 uwind (i,j,bi,bj) = 0. _d 0
0050 vwind (i,j,bi,bj) = 0. _d 0
0051 runoff(i,j,bi,bj) = 0. _d 0
9c2a091b47 Jean*0052 #ifdef ALLOW_FORMULA_AIM
6bf801d687 Jean*0053 thAir (i,j,bi,bj) = 0. _d 0
9c2a091b47 Jean*0054 #endif
6bf801d687 Jean*0055 qnetch(i,j,bi,bj) = 0. _d 0
0056 empch (i,j,bi,bj) = 0. _d 0
679d149d01 Jean*0057 ENDDO
0058 ENDDO
adedc74ecc Alis*0059 #ifdef ALLOW_TIMEAVE
6bf801d687 Jean*0060 BULK_timeAve(bi,bj) = 0. _d 0
0061 DO j=1-Oly,sNy+Oly
679d149d01 Jean*0062 DO i=1-Olx,sNx+Olx
6bf801d687 Jean*0063 BULK_Qnet_Ave (i,j,bi,bj) = 0. _d 0
0064 BULK_EmPmR_Ave (i,j,bi,bj) = 0. _d 0
0065 BULK_fu_Ave (i,j,bi,bj) = 0. _d 0
0066 BULK_fv_Ave (i,j,bi,bj) = 0. _d 0
0067 BULK_latent_Ave (i,j,bi,bj) = 0. _d 0
0068 BULK_sensible_Ave(i,j,bi,bj) = 0. _d 0
0069 BULK_evap_Ave (i,j,bi,bj) = 0. _d 0
0070 BULK_flwup_Ave (i,j,bi,bj) = 0. _d 0
0071 BULK_flwupnet_Ave(i,j,bi,bj) = 0. _d 0
0072 BULK_solar_Ave (i,j,bi,bj) = 0. _d 0
0073 BULK_ssq_Ave (i,j,bi,bj) = 0. _d 0
adedc74ecc Alis*0074 ENDDO
6bf801d687 Jean*0075 ENDDO
adedc74ecc Alis*0076 #endif /* ALLOW_TIMEAVE */
7753507405 Curt*0077 #ifdef CONSERV_BULKF
679d149d01 Jean*0078 DO j=1-Oly,sNy+Oly
0079 DO i=1-Olx,sNx+Olx
6bf801d687 Jean*0080 CONS_Qnet (i,j,bi,bj) = 0. _d 0
0081 CONS_EmPmR(i,j,bi,bj) = 0. _d 0
7753507405 Curt*0082 ENDDO
679d149d01 Jean*0083 ENDDO
0084 #endif
0085 ENDDO
0086 ENDDO
7753507405 Curt*0087
0088 #ifdef CONSERV_BULKF
6bf801d687 Jean*0089 constim = 0. _d 0
7753507405 Curt*0090 #endif
0091
6a1d3c464b Jean*0092 #endif /* ALLOW_BULK_FORCE */
7753507405 Curt*0093
0094 RETURN
0095 END