Skip to content

Commit 4e30455

Browse files
authored
- change file creation mode to logical AND of flags (#2051)
1 parent 9b01fe9 commit 4e30455

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utilities/Export/DisNCStructured.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ subroutine dis_export_init(this, modelname, modeltype, modelfname, disenum, &
149149
!
150150
! -- create the netcdf file
151151
call nf_verify(nf90_create(this%nc_fname, &
152-
IOR(NF90_CLOBBER, NF90_NETCDF4), this%ncid), &
152+
IAND(NF90_CLOBBER, NF90_NETCDF4), this%ncid), &
153153
this%nc_fname)
154154
end subroutine dis_export_init
155155

src/Utilities/Export/MeshNCModel.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ subroutine mesh_init(this, modelname, modeltype, modelfname, disenum, &
126126
!
127127
! -- create the netcdf file
128128
call nf_verify(nf90_create(this%nc_fname, &
129-
IOR(NF90_CLOBBER, NF90_NETCDF4), this%ncid), &
129+
IAND(NF90_CLOBBER, NF90_NETCDF4), this%ncid), &
130130
this%nc_fname)
131131
end subroutine mesh_init
132132

0 commit comments

Comments
 (0)