Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added dimension id inquiry steps so that the dimension ids are availa…
Browse files Browse the repository at this point in the history
…ble when reading an old NetCDF file
  • Loading branch information
daminton committed Oct 15, 2021
1 parent 46860e7 commit 0ab3f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ module subroutine netcdf_open(self, param)

call check( nf90_open(param%outfile, NF90_WRITE, self%ncid) )

call check( nf90_inq_dimid(self%ncid, TIME_DIMNAME, self%time_dimid) )
call check( nf90_inq_dimid(self%ncid, ID_DIMNAME, self%id_dimid) )
call check( nf90_inq_dimid(self%ncid, STR_DIMNAME, self%str_dimid) )

call check( nf90_inq_varid(self%ncid, TIME_DIMNAME, self%time_varid))
call check( nf90_inq_varid(self%ncid, ID_DIMNAME, self%id_varid))
call check( nf90_inq_varid(self%ncid, NPL_VARNAME, self%npl_varid))
Expand Down

0 comments on commit 0ab3f68

Please sign in to comment.