mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Ability to build with PETSc by setting PETSC_DIR environment variable.
This commit is contained in:
parent
bdcc88d319
commit
9d3d3b403c
1 changed files with 9 additions and 0 deletions
|
|
@ -124,6 +124,15 @@ endif()
|
|||
# PETSc for CMFD functionality
|
||||
#===============================================================================
|
||||
|
||||
if(petsc)
|
||||
find_package(PETSc REQUIRED HINTS $ENV{PETSC_DIR}/conf)
|
||||
find_library(libpetsc petsc $ENV{PETSC_DIR}/lib)
|
||||
message("-- Using PETSC: ${libpetsc}")
|
||||
add_definitions(-DPETSC)
|
||||
set(f90flags "-I$ENV{PETSC_DIR}/include ${f90flags}")
|
||||
set(libraries "${PETSC_PACKAGE_LIBS};${libpetsc};${libraries}")
|
||||
endif()
|
||||
|
||||
#===============================================================================
|
||||
# FoX Fortran XML Library
|
||||
#===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue