Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xpetra, MueLu: Remove Epetra #13369

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 0 additions & 43 deletions packages/muelu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ TRIBITS_PACKAGE(MueLu ENABLE_SHADOWING_WARNINGS)
# B) Set up package-specific options
#

ASSERT_DEFINED(Xpetra_ENABLE_Epetra)
ASSERT_DEFINED(Xpetra_ENABLE_Tpetra)
ASSERT_DEFINED(Xpetra_INT_LONG_LONG)
ASSERT_DEFINED(Xpetra_ENABLE_Experimental)
Expand Down Expand Up @@ -64,32 +63,13 @@ IF (HAVE_${PACKAGE_NAME_UC}_DEPRECATED_TESTS)
MESSAGE(STATUS "MueLu: Enabling deprecated tests")
ENDIF ()

IF (${PACKAGE_NAME}_ENABLE_Epetra AND NOT ${PACKAGE_NAME}_ENABLE_EpetraExt)
MESSAGE(FATAL_ERROR "You have enabled Epetra, but not EpetraExt. MueLu requires that either both are enabled, or both are disabled. Please either disable Epetra, or enable EpetraExt.")
ENDIF()


# If you want MueLu Epetra, you need Xpetra Epetra
ASSERT_DEFINED(Xpetra_ENABLE_Epetra)
IF (NOT Xpetra_ENABLE_Epetra AND ${PACKAGE_NAME}_ENABLE_Epetra)
MESSAGE(FATAL_ERROR "MueLu Epetra support requires Xpetra Epetra support")
ENDIF()

# If you want MueLu Epetra, you need Xpetra Tpetra
ASSERT_DEFINED(Xpetra_ENABLE_Tpetra)
IF (NOT Xpetra_ENABLE_Tpetra)
MESSAGE(FATAL_ERROR "MueLu Tpetra support requires Xpetra Tpetra support")
ENDIF()

# Need to do this because Xpetra_ENABLE_Epetra might have been disabled after
# HAVE_MUELU_EPETRA was first set automatically
GLOBAL_SET(HAVE_${PACKAGE_NAME_UC}_EPETRA ${${PACKAGE_NAME}_ENABLE_Epetra})

# Print a warning when we might be lacking a coarse solver.
ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_Amesos)
IF (${PACKAGE_NAME}_ENABLE_Epetra AND NOT ${PACKAGE_NAME}_ENABLE_Amesos)
MESSAGE(WARNING "MueLu's Epetra backend is enabled, but Amesos is disabled. This means only iterative coarse solves are available when using Epetra.")
ENDIF ()
ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_Amesos2)
IF (NOT ${PACKAGE_NAME}_ENABLE_Amesos2)
MESSAGE(WARNING "MueLu's Amesos2 backend is disabled. This means only iterative coarse solves are available when using Tpetra.")
Expand Down Expand Up @@ -215,7 +195,6 @@ IF(${PACKAGE_NAME}_ENABLE_EXPLICIT_INSTANTIATION)
GLOBAL_SET(${PACKAGE_NAME}_HAVE_GO_LONG_LONG OFF)

# <double, int, int>
# Examples and tests need at least this one, also if Epetra is enabled
IF(Tpetra_INST_DOUBLE AND Tpetra_INST_INT_INT)
GLOBAL_SET(${PACKAGE_NAME}_HAVE_GO_INT ON)
GLOBAL_SET(${PACKAGE_NAME}_INST_DOUBLE_INT_INT ON)
Expand All @@ -231,12 +210,6 @@ IF(${PACKAGE_NAME}_ENABLE_EXPLICIT_INSTANTIATION)
# ENDIF()
#ENDIF()

#IF(${PACKAGE_NAME}_ENABLE_Epetra)
# IF (NOT ${PACKAGE_NAME}_INST_DOUBLE_INT_INT)
# MESSAGE(FATAL_ERROR "Error: MueLu needs explicit template instantation with <double, int, int> when enabling Epetra. Turn on the options Tpetra_INST_DOUBLE and Tpetra_INST_INT_INT or disable Epetra.")
# ENDIF()
#ENDIF()

# <double, int, long>
IF(Tpetra_INST_DOUBLE AND Tpetra_INST_INT_LONG)
GLOBAL_SET(${PACKAGE_NAME}_HAVE_GO_LONG ON)
Expand Down Expand Up @@ -328,10 +301,6 @@ IF(${PACKAGE_NAME}_ENABLE_EXPLICIT_INSTANTIATION)
GLOBAL_SET (HAVE_${PACKAGE_NAME_UC}_CUDA ${Tpetra_INST_CUDA})
GLOBAL_SET (HAVE_${PACKAGE_NAME_UC}_HIP ${Tpetra_INST_HIP})
GLOBAL_SET (HAVE_${PACKAGE_NAME_UC}_SYCL ${Tpetra_INST_SYCL})
IF (${PACKAGE_NAME}_ENABLE_Epetra)
# If Epetra is active, always activate SerialNode
GLOBAL_SET (HAVE_${PACKAGE_NAME_UC}_SERIAL ON)
ENDIF ()
MESSAGE(STATUS " HAVE_${PACKAGE_NAME_UC}_SERIAL : ${HAVE_${PACKAGE_NAME_UC}_SERIAL}")
MESSAGE(STATUS " HAVE_${PACKAGE_NAME_UC}_OPENMP : ${HAVE_${PACKAGE_NAME_UC}_OPENMP}")
MESSAGE(STATUS " HAVE_${PACKAGE_NAME_UC}_CUDA : ${HAVE_${PACKAGE_NAME_UC}_CUDA}")
Expand All @@ -350,14 +319,6 @@ ELSE()
GLOBAL_SET(${PACKAGE_NAME}_INST_FLOAT_INT_LONG_LONG OFF)
GLOBAL_SET(HAVE_${PACKAGE_NAME_UC}_INST_FLOAT_INT_LONG_LONG OFF)

# If Epetra only is enabled, ETI is off by default. We have to make sure that
# the HAVE_MUELU_SERIAL variable is set such that the IfpackSmoother and other
# purely Epetra-related routines are enabled properly
IF (${PACKAGE_NAME}_ENABLE_Epetra)
# If Epetra only is active, only activate SerialNode by default
GLOBAL_SET (HAVE_${PACKAGE_NAME_UC}_SERIAL ON)
ENDIF()

# With ETI off, free to leave int as the default GO
ENDIF()

Expand Down Expand Up @@ -425,10 +386,6 @@ if(TPL_ENABLE_MATLAB)
IF (NOT ${PROJECT_NAME}_ENABLE_EXPLICIT_INSTANTIATION)
MESSAGE(FATAL_ERROR "Muemex interfaces require \"-D${PROJECT_NAME}_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON\".")
ENDIF()

IF(NOT ${PACKAGE_NAME}_ENABLE_Epetra)
MESSAGE(FATAL_ERROR "Muemex interfaces require \"-D${PACKAGE_NAME}_ENABLE_Epetra:BOOL=ON\".")
ENDIF()
ENDIF()

if(TPL_ENABLE_MATLAB)
Expand Down
22 changes: 0 additions & 22 deletions packages/muelu/adapters/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,6 @@ IF (${PACKAGE_NAME}_ENABLE_Belos)

ENDIF()

#
# Epetra
#
IF (${PACKAGE_NAME}_ENABLE_Epetra)

TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/epetra)
TRIBITS_SET_AND_INC_DIRS(DIR ${CMAKE_CURRENT_SOURCE_DIR}/aztecoo)

APPEND_SET(HEADERS
epetra/MueLu_EpetraOperator.hpp
epetra/MueLu_CreateEpetraPreconditioner.hpp
aztecoo/MueLu_AztecEpetraOperator.hpp
)

APPEND_SET(SOURCES
epetra/MueLu_EpetraOperator.cpp
epetra/MueLu_CreateEpetraPreconditioner.cpp
aztecoo/MueLu_AztecEpetraOperator.cpp
)

ENDIF()

#
# Tpetra
#
Expand Down
100 changes: 0 additions & 100 deletions packages/muelu/adapters/aztecoo/MueLu_AztecEpetraOperator.cpp

This file was deleted.

128 changes: 0 additions & 128 deletions packages/muelu/adapters/aztecoo/MueLu_AztecEpetraOperator.hpp

This file was deleted.

Loading
Loading