Skip to content

Commit 6a90ad5

Browse files
committed
Also detect MPI compiler for mpif90 and mpif77 wrappers
1 parent 41d6c7b commit 6a90ad5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fpm_compiler.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,9 @@ function get_compiler_id(compiler) result(id)
453453
integer :: stat, io
454454

455455
! Check whether we are dealing with an MPI compiler wrapper first
456-
if (check_compiler(compiler, "mpifort")) then
456+
if (check_compiler(compiler, "mpifort") &
457+
& .or. check_compiler(compiler, "mpif90") &
458+
& .or. check_compiler(compiler, "mpif77")) then
457459
output = get_temp_filename()
458460
call run(compiler//" -showme:command > "//output//" 2>&1", &
459461
& echo=.false., exitstat=stat)

0 commit comments

Comments
 (0)