12 |
I scaleFact, power, useFract, sizF, |
I scaleFact, power, useFract, sizF, |
13 |
I sizI1,sizI2,sizJ1,sizJ2,sizK,sizTx,sizTy, |
I sizI1,sizI2,sizJ1,sizJ2,sizK,sizTx,sizTy, |
14 |
I iRun,jRun,kIn,biIn,bjIn, |
I iRun,jRun,kIn,biIn,bjIn, |
15 |
I k,bi,bj, region2fill, ndId, parsFld, |
I k,bi,bj, bibjFlg, region2fill, |
16 |
I myThid ) |
I ndId, parsFld, myThid ) |
17 |
|
|
18 |
C !DESCRIPTION: |
C !DESCRIPTION: |
19 |
C Update array statFld |
C Update array statFld |
54 |
C kIn :: level index of inpFld array to process |
C kIn :: level index of inpFld array to process |
55 |
C biIn,bjIn :: tile indices of inpFld array to process |
C biIn,bjIn :: tile indices of inpFld array to process |
56 |
C k,bi,bj :: level and tile indices used for weighting (mask,area ...) |
C k,bi,bj :: level and tile indices used for weighting (mask,area ...) |
57 |
|
C bibjFlg :: passed from calling S/R (see diagstats_fill.F) |
58 |
C region2fill :: indicates whether to compute statistics over this region |
C region2fill :: indicates whether to compute statistics over this region |
59 |
C ndId :: Diagnostics Id Number (in available diag. list) |
C ndId :: Diagnostics Id Number (in available diag. list) |
60 |
C parsFld :: parser field with characteristics of the diagnostics |
C parsFld :: parser field with characteristics of the diagnostics |
68 |
INTEGER power |
INTEGER power |
69 |
LOGICAL useFract |
LOGICAL useFract |
70 |
INTEGER iRun, jRun, kIn, biIn, bjIn |
INTEGER iRun, jRun, kIn, biIn, bjIn |
71 |
INTEGER k, bi, bj, ndId |
INTEGER k, bi, bj, bibjFlg |
72 |
INTEGER region2fill(0:nRegions) |
INTEGER region2fill(0:nRegions) |
73 |
|
INTEGER ndId |
74 |
CHARACTER*16 parsFld |
CHARACTER*16 parsFld |
75 |
INTEGER myThid |
INTEGER myThid |
76 |
CEOP |
CEOP |
224 |
|
|
225 |
C Update cumulative statistics array |
C Update cumulative statistics array |
226 |
IF ( statLoc(0).GT.0. ) THEN |
IF ( statLoc(0).GT.0. ) THEN |
227 |
IF ( statFld(0,n).LE.0. ) THEN |
IF ( statFld(0,n).LE.0. ) THEN |
228 |
statFld(im,n) = statLoc(im) |
statFld(im,n) = statLoc(im) |
229 |
statFld(ix,n) = statLoc(ix) |
statFld(ix,n) = statLoc(ix) |
230 |
ELSE |
ELSE |
231 |
statFld(im,n) = MIN( statFld(im,n), statLoc(im) ) |
statFld(im,n) = MIN( statFld(im,n), statLoc(im) ) |
232 |
statFld(ix,n) = MAX( statFld(ix,n), statLoc(ix) ) |
statFld(ix,n) = MAX( statFld(ix,n), statLoc(ix) ) |
233 |
ENDIF |
ENDIF |
234 |
|
IF ( bibjFlg.GE.0 ) THEN |
235 |
DO i=0,iv |
DO i=0,iv |
236 |
statFld(i,n) = statFld(i,n) + statLoc(i) |
statFld(i,n) = statFld(i,n) + statLoc(i) |
237 |
ENDDO |
ENDDO |
238 |
|
ELSE |
239 |
|
DO i=1,iv |
240 |
|
statFld(i,n) = statFld(i,n) + statLoc(i) |
241 |
|
ENDDO |
242 |
|
ENDIF |
243 |
ENDIF |
ENDIF |
244 |
|
|
245 |
C--- processing region "n" ends here. |
C--- processing region "n" ends here. |