mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Enable use of parallel version of MUMPS
If we have enabled MPI, then we must call MPI_Init and MPI_Finalize in the program anyway so we may as well use the parallel version of MUMPS.
This commit is contained in:
parent
30a7e953a7
commit
7e992a2894
@ -23,13 +23,23 @@ find_file (AGMG_SOURCES
|
|||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# USE_MPI is an option that must be declared in the program
|
||||||
|
# if this is enabled, then we use the parallel version of MUMPS
|
||||||
|
# in package "libmumps-dev"; otherwise use serial version in
|
||||||
|
# "libmumps-seq-dev"
|
||||||
|
if (USE_MPI)
|
||||||
|
set (_seq "")
|
||||||
|
else ()
|
||||||
|
set (_seq "_seq")
|
||||||
|
endif ()
|
||||||
|
|
||||||
# AGMG is dependent on having the MUMPS library present
|
# AGMG is dependent on having the MUMPS library present
|
||||||
find_path (MUMPS_INCLUDE_DIR
|
find_path (MUMPS_INCLUDE_DIR
|
||||||
dmumps_struc.h
|
dmumps_struc.h
|
||||||
PATH_SUFFIXES include
|
PATH_SUFFIXES include
|
||||||
)
|
)
|
||||||
find_library (MUMPS_LIBRARY
|
find_library (MUMPS_LIBRARY
|
||||||
NAMES dmumps_seq
|
NAMES dmumps${_seq}
|
||||||
DOC "MUltifrontal Massive Parallel sparse direct Solver"
|
DOC "MUltifrontal Massive Parallel sparse direct Solver"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user