Skip to content
Snippets Groups Projects
Commit fcc18b6d authored by wenqing's avatar wenqing Committed by Dmitri Naumov
Browse files

Modify cmake for Petsc config.

parent f6b2e170
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,9 @@ IF(OGS_USE_LIS)
ADD_DEFINITIONS(-DUSE_LIS)
ENDIF()
IF(OGS_USE_PETSC)
ADD_DEFINITIONS(-DUSE_PETSC)
ENDIF()
IF(OGS_USE_EIGEN)
# ADD_DEFINITIONS(-DEIGEN_DEFAULT_DENSE_INDEX_TYPE=std::size_t)
......
......@@ -119,7 +119,6 @@ ENDIF()
IF(OGS_USE_PETSC)
MESSAGE (STATUS "Configuring for PETSc" )
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/scripts/cmake/findPETSC")
FIND_PACKAGE(PETSc REQUIRED)
......@@ -128,6 +127,4 @@ IF(OGS_USE_PETSC)
)
FIND_PACKAGE(MPI REQUIRED)
ADD_DEFINITIONS(-DOGS_USE_PETSC)
ENDIF()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment