Skip to content

Commit 968a6a1

Browse files
committed
simply use
1 parent cee233d commit 968a6a1

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

test/basic.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
program basic
22

3-
use mpi_f08, only : mpi_init, mpi_finalize
3+
use mpi_f08
44

5-
implicit none
5+
implicit none (type, external)
66

77
print *, "going to init MPI"
88

test/helloworld.f90

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ program hw_mpi
33
!! Original Author: John Burkardt
44
!! Modified: Michael Hirsch, Ph.D.
55

6-
use mpi_f08, only : mpi_init, mpi_comm_size, mpi_comm_world, mpi_wtime, mpi_comm_rank, mpi_finalize
76
use, intrinsic:: iso_fortran_env, only: dp=>real64, compiler_version
87

8+
use mpi_f08
9+
910
implicit none
1011

1112
integer :: id, Nproc

test/mpivers.f90

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ program mpi_vers
22
! https://github.com/open-mpi/ompi/blob/master/examples/hello_usempif08.f90
33

44
use, intrinsic :: iso_fortran_env, only : compiler_version
5-
use mpi_f08, only : MPI_MAX_LIBRARY_VERSION_STRING, mpi_get_library_version, mpi_init, &
6-
MPI_COMM_SIZE, mpi_comm_world, mpi_finalize, mpi_comm_rank
5+
6+
use mpi_f08
77

88
implicit none
99

test/thread_pass.f90

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ program mpi_pass
33
!! This would be much simpler using Fortran 2008 coarray syntax
44
!!
55
!! Original author: John Burkardt
6+
67
use, intrinsic :: iso_fortran_env, only: real32, compiler_version, int64
7-
use mpi_f08, only : mpi_status, mpi_comm_world, mpi_init, mpi_get_count, &
8-
mpi_real, mpi_any_source, mpi_any_tag, mpi_source, mpi_tag, mpi_comm_size, &
9-
mpi_comm_rank, mpi_recv, mpi_send, mpi_finalize
8+
9+
use mpi_f08
1010

1111
implicit none
1212

@@ -46,7 +46,7 @@ program mpi_pass
4646

4747
print *, id, ' Got ', mcount, ' elements.'
4848

49-
if (val(5) /= 4) error stop "data did not transfer"
49+
if (abs(val(5)-4) > epsilon(0.)) error stop "data did not transfer"
5050

5151
! Process 1 sends 100 real values to process 0.
5252
case (1)

0 commit comments

Comments
 (0)