diff --git a/ROMS/Utility/set_diags.F b/ROMS/Utility/set_diags.F
index 974d4ad..5ef24d5 100644
a
|
b
|
|
110 | 110 | ! |
111 | 111 | IF (nDIA(ng).eq.0) RETURN |
112 | 112 | |
113 | | # if defined DIAGNOSTICS_TS || defined DIAGNOSTICS_UV |
114 | 113 | ! |
115 | 114 | !----------------------------------------------------------------------- |
116 | 115 | ! Initialize time-averaged diagnostic arrays when appropriate. Notice |
… |
… |
|
123 | 122 | & ((iic(ng).ge.ntsDIA(ng)).and.(nDIA(ng).eq.1)).or. & |
124 | 123 | & ((nrrec(ng).gt.0).and.(iic(ng).eq.ntstart(ng)))) THEN |
125 | 124 | |
126 | | # ifdef WET_DRY |
| 125 | # ifdef WET_DRY |
127 | 126 | ! |
128 | 127 | ! If wetting and drying, initialize time dependent counters for wet |
129 | 128 | ! points. The time averaged field at each point is only accumulated |
130 | | ! over wet points since its multiplied by the appropriate mask. |
| 129 | ! over wet points since it is multiplied by the appropriate mask. |
131 | 130 | ! |
132 | 131 | DO j=Jstr,JendR |
133 | 132 | DO i=Istr,IendR |
… |
… |
|
157 | 156 | & 1.0_r8)) |
158 | 157 | END DO |
159 | 158 | END DO |
160 | | # endif |
| 159 | # endif |
| 160 | # if defined DIAGNOSTICS_TS || defined DIAGNOSTICS_UV |
161 | 161 | ! |
162 | 162 | ! Initialize. |
163 | 163 | ! |
… |
… |
|
224 | 224 | END DO |
225 | 225 | # endif |
226 | 226 | # endif |
| 227 | # endif |
227 | 228 | ! |
228 | 229 | !----------------------------------------------------------------------- |
229 | 230 | ! Accumulate time-averaged fields. |
… |
… |
|
231 | 232 | ! |
232 | 233 | ELSE IF (iic(ng).gt.ntsDIA(ng)) THEN |
233 | 234 | |
234 | | # ifdef WET_DRY |
| 235 | # ifdef WET_DRY |
235 | 236 | ! |
236 | 237 | ! If wetting and drying, accumulate wet points counters. |
237 | 238 | ! points. The time averaged field at each point is only accumulated |
… |
… |
|
269 | 270 | & 1.0_r8)) |
270 | 271 | END DO |
271 | 272 | END DO |
272 | | # endif |
| 273 | # endif |
| 274 | # if defined DIAGNOSTICS_TS || defined DIAGNOSTICS_UV |
273 | 275 | ! |
274 | 276 | ! Accumulate diagnostic terms. |
275 | 277 | ! |
… |
… |
|
339 | 341 | END DO |
340 | 342 | # endif |
341 | 343 | # endif |
342 | | END IF |
343 | 344 | # endif |
| 345 | END IF |
344 | 346 | ! |
345 | 347 | !----------------------------------------------------------------------- |
346 | 348 | ! Convert accumulated sums into time-averages, if appropriate |