Skip to content

Commit

Permalink
Remove detection of PETSc complex from CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Apr 15, 2024
1 parent e2f55cf commit d47acdd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,6 @@ if(DOLFINX_ENABLE_PETSC)
# Setting for FeatureSummary
if(PETSC_FOUND)
message(STATUS "Found PETSc version ${PETSC_VERSION}, prefix: ${PETSC_PREFIX}")

# Check if PETSc build uses real or complex scalars (this is
# configured in DOLFINxConfig.cmake.in)
include(CheckSymbolExists)
set(CMAKE_REQUIRED_INCLUDES ${PETSC_INCLUDE_DIRS})
check_symbol_exists(PETSC_USE_COMPLEX petscsystypes.h HAVE_PETSC_SCALAR_COMPLEX)
set_property(GLOBAL APPEND PROPERTY PACKAGES_FOUND PETSc)
else()
set_property(GLOBAL APPEND PROPERTY PACKAGES_NOT_FOUND PETSc)
Expand Down
2 changes: 0 additions & 2 deletions python/dolfinx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@

try:
from petsc4py import PETSc as _PETSc

default_scalar_type = _PETSc.ScalarType # type: ignore
default_real_type = _PETSc.RealType # type: ignore
except ImportError:
import numpy as _np

default_scalar_type = _np.float64
default_real_type = _np.float64

Expand Down

0 comments on commit d47acdd

Please sign in to comment.