Skip to content

Commit

Permalink
more work on netcdf out
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Nov 8, 2023
1 parent fb90776 commit 060519e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions model/src/w3iopomd.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,7 @@ SUBROUTINE W3IOPON_READ (NDSOP, IOTST, IMOD, filename, ncerr)
integer, intent(inout) :: ncerr
integer :: fh
integer :: d_nopts, d_nspec, d_vsize, d_namelen, d_grdidlen
integer :: d_nopts_len, d_nspec_len, d_vsize_len, d_namelen_len, d_grdidlen_len

IOTST = 0

Expand All @@ -1087,8 +1088,12 @@ SUBROUTINE W3IOPON_READ (NDSOP, IOTST, IMOD, filename, ncerr)
if (ncerr .ne. 0) return

! Read the dimension information.
! ncerr = nc90_inq_dir(

ncerr = nc90_inq_dimid(fh, DNAME_NOPTS, d_nopts)
if (ncerr .ne. 0) return
ncerr = nc90_inquire_dimension(fh, d_nopts, len = d_nopts_len)
if (ncerr .ne. 0) return
print *, 'd_nopts_len = ', d_nopts_len

! Close the file.
ncerr = nf90_close(fh)
if (ncerr .ne. 0) return
Expand Down

0 comments on commit 060519e

Please sign in to comment.