Xpetra: inconsistent declaration of TpetraMap::clone #5537
Labels
CLOSED_DUE_TO_INACTIVITY
Issue or PR has been closed by the GitHub Actions bot due to inactivity.
MARKED_FOR_CLOSURE
Issue or PR is marked for auto-closure by the GitHub Actions bot.
pkg: Xpetra
type: bug
The primary issue is a bug in Trilinos code or tests
Bug Report
@trilinos/xpetra
Description
The deprecated
Xpetra::TpetraMap<>::clone
is declared inxpetra/src/Map/Xpetra_TpetraMap_decl.hpp
guarded by#ifdef XPETRA_ENABLE_DEPRECATED_CODE
but defined inxpetra/src/Map/Xpetra_TpetraMap_def.hpp
guarded by#ifdef TPETRA_ENABLE_DEPRECATED_CODE
. Theclone
method is later called inpackages/xpetra/sup/Cloner/Xpetra_Cloner.hpp
but is guarded only by#ifdef XPETRA_HAVE_TPETRA
. The inconsistency causes build errors (#5536).I have a potential fix building right now. It
#ifdef XPETRA_ENABLE_DEPRECATED_CODE
inxpetra/src/Map/Xpetra_TpetraMap_decl.hpp
with#ifdef TPETRA_ENABLE_DEPRECATED_CODE
#ifdef XPETRA_HAVE_TPETRA
inpackages/xpetra/sup/Cloner/Xpetra_Cloner.hpp
with#if defined(XPETRA_HAVE_TPETRA) && defined(TPETRA_ENABLE_DEPRECATED_CODE)
The build seems to get by this error but fails at MueLu now...
The text was updated successfully, but these errors were encountered: