summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/FindMPI/mpiver.f90.in
diff options
context:
space:
mode:
Diffstat (limited to 'config/cmake_ext_mod/FindMPI/mpiver.f90.in')
-rw-r--r--config/cmake_ext_mod/FindMPI/mpiver.f90.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/FindMPI/mpiver.f90.in b/config/cmake_ext_mod/FindMPI/mpiver.f90.in
new file mode 100644
index 0000000..a254523
--- /dev/null
+++ b/config/cmake_ext_mod/FindMPI/mpiver.f90.in
@@ -0,0 +1,10 @@
+ program mpi_ver
+ @MPI_Fortran_INCLUDE_LINE@
+ integer(kind=kind(MPI_VERSION)), parameter :: zero = ichar('0')
+ character, dimension(17), parameter :: mpiver_str =&
+ (/ 'I', 'N', 'F', 'O', ':', 'M', 'P', 'I', '-', 'V', 'E', 'R', '[', &
+ char(zero + MPI_VERSION), &
+ '.', &
+ char(zero + MPI_SUBVERSION), ']' /)
+ print *, mpiver_str
+ end program mpi_ver