Skip to content

Commit d24cc09

Browse files
Merge remote-tracking branch 'AS/para_outp' into devufspntopt
2 parents cc8ab3f + 67d032d commit d24cc09

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

model/src/w3iopomd.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ SUBROUTINE W3IOPON_READ(IOTST, IMOD_IN, filename, ncerr, TOUT )
14781478
if (nf90_err(ncerr) .ne. 0) return
14791479
END IF
14801480

1481-
!Variables read based on time (IPASS):
1481+
!Variables read based on time (itime):
14821482
ncerr = nf90_inq_varid(fh, VNAME_WW3TIME, v_ww3time)
14831483
if (nf90_err(ncerr) .ne. 0) return
14841484
ncerr = nf90_get_var(fh, v_ww3time, TIME, start = (/ 1, itime/), &
@@ -1576,7 +1576,7 @@ SUBROUTINE W3IOPON_READ(IOTST, IMOD_IN, filename, ncerr, TOUT )
15761576
! and are at the end of the
15771577
IOTST = -1
15781578
END IF
1579-
1579+
15801580
! Close the file.
15811581
ncerr = nf90_close(fh)
15821582
if (nf90_err(ncerr) .ne. 0) return

model/src/ww3_outp.F90

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -494,20 +494,22 @@ PROGRAM W3OUTP
494494
CLOSE(NDBO)
495495
#endif
496496
!
497-
WRITE (NDSO,942) ITYPE, 'Checking contents of file'
498-
DO
499-
CALL STME21 ( TIME , IDTIME )
500-
WRITE (NDSO,948) IDTIME
497+
IF (dynpnt == 0) THEN
498+
WRITE (NDSO,942) ITYPE, 'Checking contents of file'
499+
DO
500+
CALL STME21 ( TIME , IDTIME )
501+
WRITE (NDSO,948) IDTIME
501502
#ifdef W3_BIN2NC
502-
CALL W3IOPON ( 'READ', NDSOP, IOTEST )
503+
CALL W3IOPON ( 'READ', NDSOP, IOTEST )
503504
#else
504-
CALL W3IOPO ( 'READ', NDSOP, IOTEST )
505+
CALL W3IOPO ( 'READ', NDSOP, IOTEST )
505506
#endif
506-
IF ( IOTEST .EQ. -1 ) THEN
507-
WRITE (NDSO,949)
508-
GOTO 888
509-
END IF
510-
END DO
507+
IF ( IOTEST .EQ. -1 ) THEN
508+
WRITE (NDSO,949)
509+
GOTO 888
510+
END IF
511+
END DO
512+
END IF
511513

512514
!
513515
! ... ITYPE = 1

0 commit comments

Comments
 (0)