Skip to content

Commit

Permalink
fix(fpm_meta): set MPI on only for --compiler mpi*
Browse files Browse the repository at this point in the history
  • Loading branch information
rouson committed Jun 2, 2024
1 parent 8d392a7 commit 86b874d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpm_meta.f90
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ subroutine resolve_metapackage_model(model,package,settings,error)
end if

! MPI
if (package%meta%mpi%on) then
if (package%meta%mpi%on .and. any(model%compiler%fc==["mpifort","mpif90 ","mpif77 "])) then
call add_metapackage_model(model,package,settings,"mpi",error)
if (allocated(error)) return
endif
Expand Down

0 comments on commit 86b874d

Please sign in to comment.