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

Commit

Permalink
Fixed argument in dimension rename
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 7, 2022
1 parent b9a560f commit cc14cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ module subroutine netcdf_open(self, param, readonly)
call check( nf90_inq_dimid(self%ncid, ID_DIMNAME, self%id_dimid) )
call check( nf90_inquire_dimension(self%ncid, max(self%time_dimid,self%id_dimid)+1, name=str_dim_name) )
call check( nf90_inq_dimid(self%ncid, str_dim_name, self%str_dimid) )
if (str_dim_name /= "str") call check( nf90_rename_dim(self%ncid, str_dim_name, STR_DIMNAME) )
if (str_dim_name /= "str") call check( nf90_rename_dim(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))
Expand Down

0 comments on commit cc14cfa

Please sign in to comment.