259 |
stmp(1,j+1) = statGlob(ist,0,j) |
stmp(1,j+1) = statGlob(ist,0,j) |
260 |
ENDDO |
ENDDO |
261 |
|
|
262 |
IF ((fflags(listId)(1:1) .EQ. ' ') |
C-jmc: fflags is not for Statistics-Diagnostics, can be unset, and since |
263 |
& .OR. (fflags(listId)(1:1) .EQ. 'R')) THEN |
C- size of the output file will not be an issue here: Always write real*8 |
264 |
|
c IF ((fflags(listId)(1:1) .EQ. ' ') |
265 |
CALL MNC_CW_RL_W('R',diag_mnc_bn,1,1, |
c & .OR. (fflags(listId)(1:1) .EQ. 'R')) THEN |
266 |
& tnam, stmp, myThid) |
c |
267 |
|
c CALL MNC_CW_RL_W('R',diag_mnc_bn,1,1, |
268 |
ELSEIF (fflags(listId)(1:1) .EQ. 'D') THEN |
c & tnam, stmp, myThid) |
269 |
|
c |
270 |
|
c ELSEIF (fflags(listId)(1:1) .EQ. 'D') THEN |
271 |
|
|
272 |
CALL MNC_CW_RL_W('D',diag_mnc_bn,1,1, |
CALL MNC_CW_RL_W('D',diag_mnc_bn,1,1, |
273 |
& tnam, stmp, myThid) |
& tnam, stmp, myThid) |
274 |
|
|
275 |
ENDIF |
c else |
276 |
|
c write(0,*) myIter, ndId, listId |
277 |
|
c write(0,'(3A)') '>',cdiag(ndId),'<' |
278 |
|
c write(0,'(3A)') '>',fflags(listId),'<' |
279 |
|
c STOP ' in DIAGSTATS_MNC_OUT' |
280 |
|
c ENDIF |
281 |
|
|
282 |
CALL MNC_CW_DEL_VNAME(tnam, myThid) |
CALL MNC_CW_DEL_VNAME(tnam, myThid) |
283 |
|
|
303 |
ENDDO |
ENDDO |
304 |
ENDDO |
ENDDO |
305 |
|
|
306 |
IF ((fflags(listId)(1:1) .EQ. ' ') |
C-jmc: Always write real*8 (size of the output file will not be an issue here) |
|
& .OR. (fflags(listId)(1:1) .EQ. 'R')) THEN |
|
|
|
|
|
CALL MNC_CW_RL_W('R',diag_mnc_bn,1,1, |
|
|
& tnam, stmp, myThid) |
|
|
|
|
|
ELSEIF (fflags(listId)(1:1) .EQ. 'D') THEN |
|
|
|
|
307 |
CALL MNC_CW_RL_W('D',diag_mnc_bn,1,1, |
CALL MNC_CW_RL_W('D',diag_mnc_bn,1,1, |
308 |
& tnam, stmp, myThid) |
& tnam, stmp, myThid) |
309 |
|
|
|
ENDIF |
|
|
|
|
310 |
CALL MNC_CW_DEL_VNAME(tnam, myThid) |
CALL MNC_CW_DEL_VNAME(tnam, myThid) |
311 |
|
|
312 |
ENDIF |
ENDIF |