Skip to content

Commit 4f3e6d2

Browse files
committed
test_string: mpi-aware write
1 parent cb11b5a commit 4f3e6d2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/tests/unit/test_string.f90

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ program test_string
2020
call mpi_comm_rank(MPI_COMM_WORLD, mpi_id, ierr)
2121
if (ierr /= 0) error stop "mpi_comm_rank"
2222

23-
if(mpi_id == 0) then
24-
call test_write(fn)
25-
print *, "OK: HDF5 string write"
26-
endif
23+
call test_write(fn)
24+
if(mpi_id == 0) print *, "OK: HDF5 string write"
2725

2826
call test_read(fn)
2927
if(mpi_id == 0) print *,'OK: HDF5 string read'
@@ -40,7 +38,7 @@ subroutine test_write(fn)
4038

4139
type(hdf5_file) :: h
4240

43-
call h%open(fn, action='w', mpi=.false.)
41+
call h%open(fn, action='w', mpi=.true.)
4442

4543
call h%write('/little', '42')
4644
call h%write('/MySentence', 'this is a little sentence.')

0 commit comments

Comments
 (0)