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: inconsistent declaration of TpetraMap::clone #5537

Closed
Tracked by #5602
tjfulle opened this issue Jul 16, 2019 · 6 comments
Closed
Tracked by #5602

Xpetra: inconsistent declaration of TpetraMap::clone #5537

tjfulle opened this issue Jul 16, 2019 · 6 comments
Assignees
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

Comments

@tjfulle
Copy link
Contributor

tjfulle commented Jul 16, 2019

Bug Report

@trilinos/xpetra

Description

The deprecated Xpetra::TpetraMap<>::clone is declared in xpetra/src/Map/Xpetra_TpetraMap_decl.hpp guarded by #ifdef XPETRA_ENABLE_DEPRECATED_CODE but defined in xpetra/src/Map/Xpetra_TpetraMap_def.hpp guarded by #ifdef TPETRA_ENABLE_DEPRECATED_CODE. The clone method is later called in packages/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

  • replaces #ifdef XPETRA_ENABLE_DEPRECATED_CODE in xpetra/src/Map/Xpetra_TpetraMap_decl.hpp with #ifdef TPETRA_ENABLE_DEPRECATED_CODE
  • replaces #ifdef XPETRA_HAVE_TPETRA in packages/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...

@tjfulle tjfulle added type: bug The primary issue is a bug in Trilinos code or tests pkg: Xpetra labels Jul 16, 2019
@jhux2
Copy link
Member

jhux2 commented Jul 19, 2019

@william76 is this something you could have a look at?

Sent with GitHawk

@tjfulle
Copy link
Contributor Author

tjfulle commented Jul 19, 2019

@jhux2, I have a whole bevy of fixes for building with/without Tpetra deprecated code, including a fix for this.

@tjfulle
Copy link
Contributor Author

tjfulle commented Aug 19, 2019

This should be closed by #5750

@william76
Copy link
Contributor

@tjfulle Just checking in, was this issue ever fixed?

@github-actions
Copy link

This issue has had no activity for 365 days and is marked for closure. It will be closed after an additional 30 days of inactivity.
If you would like to keep this issue open please add a comment and/or remove the MARKED_FOR_CLOSURE label.
If this issue should be kept open even with no activity beyond the time limits you can add the label DO_NOT_AUTOCLOSE.
If it is ok for this issue to be closed, feel free to go ahead and close it. Please do not add any comments or change any labels or otherwise touch this issue unless your intention is to reset the inactivity counter for an additional year.

@github-actions github-actions bot added the MARKED_FOR_CLOSURE Issue or PR is marked for auto-closure by the GitHub Actions bot. label Sep 25, 2021
@github-actions
Copy link

This issue was closed due to inactivity for 395 days.

@github-actions github-actions bot added the CLOSED_DUE_TO_INACTIVITY Issue or PR has been closed by the GitHub Actions bot due to inactivity. label Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants