File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 4242 libglu1-mesa-dev \
4343 xorg-dev \
4444 mpi \
45+ trilinos \
4546 ccache
4647 echo 'CACHE_PATH=~/.ccache' >> "$GITHUB_ENV"
4748
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ option(POLYSOLVE_WITH_SUPERLU "Enable SuperLU library"
7777option (POLYSOLVE_WITH_MKL "Enable MKL library" ${POLYSOLVE_NOT_ON_APPLE_SILICON} )
7878option (POLYSOLVE_WITH_CUSOLVER "Enable cuSOLVER library" OFF )
7979option (POLYSOLVE_WITH_PARDISO "Enable Pardiso library" OFF )
80- option (POLYSOLVE_WITH_HYPRE "Enable hypre" ON )
80+ option (POLYSOLVE_WITH_HYPRE "Enable hypre" OFF )
8181option (POLYSOLVE_WITH_AMGCL "Use AMGCL" ON )
8282option (POLYSOLVE_WITH_SPECTRA "Enable Spectra library" ON )
8383option (POLYSOLVE_WITH_TRILINOS "Enable Trilinos" ON )
@@ -288,8 +288,12 @@ endif()
288288# Trilinos
289289if (POLYSOLVE_WITH_TRILINOS)
290290 include (trilinos)
291- target_link_libraries (polysolve_linear PUBLIC Trilinos::Trilinos)
292- target_compile_definitions (polysolve_linear PRIVATE -DPOLYSOLVE_WITH_TRILINOS)
291+ if (TARGET Trilinos::Trilinos)
292+ target_link_libraries (polysolve_linear PUBLIC Trilinos::Trilinos)
293+ target_compile_definitions (polysolve_linear PRIVATE -DPOLYSOLVE_WITH_TRILINOS)
294+ else ()
295+ message (WARNING "Trilinos not found, solver will not be available." )
296+ endif ()
293297endif ()
294298
295299# cuSolver solvers
You can’t perform that action at this time.
0 commit comments