Skip to content

Commit e5d5a03

Browse files
committed
open(mpi=) not optional
1 parent 3b24dc9 commit e5d5a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interface.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ subroutine ph5open(self, filename, action, mpi, comp_lvl, shuffle, fletcher32, d
334334
class(hdf5_file), intent(inout) :: self
335335
character(*), intent(in) :: filename
336336
character(*), intent(in), optional :: action
337-
logical, intent(in), optional :: mpi
337+
logical, intent(in) :: mpi
338338
integer, intent(in), optional :: comp_lvl
339339
logical, intent(in), optional :: shuffle
340340
logical, intent(in), optional :: fletcher32
@@ -349,7 +349,7 @@ subroutine ph5open(self, filename, action, mpi, comp_lvl, shuffle, fletcher32, d
349349
laction = "rw"
350350
if (present(action)) laction = action
351351

352-
if (present(mpi)) self%use_mpi = mpi
352+
self%use_mpi = mpi
353353

354354
if(self%use_mpi) then
355355
call mpi_comm_rank(MPI_COMM_WORLD, self%mpi_id, ierr)

0 commit comments

Comments
 (0)