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

Commit

Permalink
added NF90_NOWRITE check back in
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Nov 10, 2022
1 parent 58ac545 commit 3ca0ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/netcdf/netcdf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,9 @@ module subroutine netcdf_open(self, param, readonly)
character(len=NF90_MAX_NAME) :: str_dim_name

mode = NF90_WRITE
!if (present(readonly)) then
! if (readonly) mode = NF90_NOWRITE
!end if
if (present(readonly)) then
if (readonly) mode = NF90_NOWRITE
end if

call check( nf90_open(param%outfile, mode, self%ncid), "netcdf_open nf90_open" )

Expand Down

0 comments on commit 3ca0ffd

Please sign in to comment.