Skip to content

Commit 9451902

Browse files
committed
Try using pfunit's "MpiTestMethod" class.
1 parent 259b694 commit 9451902

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/unit/fortran/src/pio_reader/test_pio_reader.pf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ contains
3131
!PIO reader object open/close file tests
3232
!+++++++++++++++++++++++++++++++++++++++++++++++++++++
3333

34-
@test
35-
subroutine test_pio_reader_open_close_file()
34+
@test(npes=[1])
35+
subroutine test_pio_reader_open_close_file(this)
3636
!Check that the PIO reader can open and
3737
!close a file successfully.
3838
!use funit
@@ -42,6 +42,8 @@ subroutine test_pio_reader_open_close_file()
4242
use ccpp_io_reader, only: abstract_netcdf_reader_t
4343
use ccpp_io_reader, only: create_netcdf_reader_t
4444

45+
class (MpiTestMethod), intent(inout) :: this
46+
4547
class(abstract_netcdf_reader_t), allocatable :: reader
4648

4749
integer :: errcode

0 commit comments

Comments
 (0)