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

Tpetra: compile error in FECrsMatrix unit-test #5174

Closed
alanw0 opened this issue May 14, 2019 · 3 comments
Closed

Tpetra: compile error in FECrsMatrix unit-test #5174

alanw0 opened this issue May 14, 2019 · 3 comments
Labels
type: bug The primary issue is a bug in Trilinos code or tests

Comments

@alanw0
Copy link
Contributor

alanw0 commented May 14, 2019

Bug Report

@trilinos/<PackageName>

Description

What went wrong? What should have happened? Do you have an idea what might
fix things? How has this bug affected you? What are you trying to accomplish?
What specifically must we demonstrate to call this work complete?

Steps to Reproduce

  1. SHA1: b3a8dc8 (develop branch)

/path/Trilinos/packages/tpetra/core/test/FECrsMatrix/FECrsMatrix_UnitTests.cpp:369:3: required from here
/path/Trilinos/packages/tpetra/core/test/FECrsMatrix/FECrsMatrix_UnitTests.cpp:119:71: error: 'eps' is not a member of 'Teuchos::ScalarTraits'
const Mag tol = errorTolSlack * Teuchos::ScalarTraits::eps();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

@alanw0 alanw0 added the type: bug The primary issue is a bug in Trilinos code or tests label May 14, 2019
@mhoemmen
Copy link
Contributor

@alanw0 Best practice is to surround error messages in triple back quotes, so that GitHub does not reformat the error message incorrectly. This is why I can't see the error message correctly. In particular, the Scalar type doesn't show, because it's in angle brackets, that GitHub tries to treat like an HTML tag. I will show it again below:

/path/Trilinos/packages/tpetra/core/test/FECrsMatrix/FECrsMatrix_UnitTests.cpp:369:3:   required from here
/path/Trilinos/packages/tpetra/core/test/FECrsMatrix/FECrsMatrix_UnitTests.cpp:119:71: error: 'eps' is not a member of 'Teuchos::ScalarTraits<long int>'
const Mag tol = errorTolSlack * Teuchos::ScalarTraits<Scalar>::eps();
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~

The test is trying to build with Scalar=long.

@alanw0
Copy link
Contributor Author

alanw0 commented May 14, 2019

ok thanks Mark.

@mhoemmen
Copy link
Contributor

@trilinos/tpetra The problem is that the test tries to instantiate the test for Scalar=GlobalOrdinal. This is because the test uses the TPETRA_INSTANTIATE_SLGN macro:

TPETRA_INSTANTIATE_SLGN( UNIT_TEST_GROUP )

The easy fix is to use TPETRA_INSTANTIATE_SLGN_NO_ORDINAL_SCALAR. I will submit a PR with this change.

csiefer2 added a commit that referenced this issue May 15, 2019
jmgate pushed a commit to tcad-charon/Trilinos that referenced this issue May 16, 2019
…s:develop' (c0a5ed6).

* trilinos-develop: (27 commits)
  MueLu: fixing configuration of no_int_no_serial nightly build on trappist, see trilinos#5180
  Correct ifdef DEBUG to ifndef NDEBUG
  Tpetra: Fix trilinos#5174
  Xpetra: Nuking debug
  MueLu: Missed something in relative diagonal support
  MueLu Maxwell test: Allow using stacked timer
  MueLu RefMaxwell: Enable reuse
  MueLu RefMaxwell: Allow passing ML-style parameter lists
  MueLu RefMaxwell: Set better defaults
  MueLu: Hook up ML RefMaxwell in MueLu's Maxwell test
  MiniEM: Add xml files for bdot and exterior meshes
  Xpetra: TpetraMap Fix
  Xpetra: ETI TpetraMap minor style change
  MiniEM: Use Chebyshev and different rebalancing on Cuda
  Xpetra: ETI TpetraMap - Fix clone() sig in def file
  panzer: fix type in doxygen
  Tpetra: testing: fix testing directory
  Tpetra: testing: fix cmake error
  Xpetra: Xpetra_TpetraMap ETI Cleanup
  Tpetra: Testing: fix cmake options
  ...
jmgate pushed a commit to tcad-charon/Trilinos that referenced this issue May 16, 2019
…s:develop' (c0a5ed6).

* trilinos-develop: (27 commits)
  MueLu: fixing configuration of no_int_no_serial nightly build on trappist, see trilinos#5180
  Correct ifdef DEBUG to ifndef NDEBUG
  Tpetra: Fix trilinos#5174
  Xpetra: Nuking debug
  MueLu: Missed something in relative diagonal support
  MueLu Maxwell test: Allow using stacked timer
  MueLu RefMaxwell: Enable reuse
  MueLu RefMaxwell: Allow passing ML-style parameter lists
  MueLu RefMaxwell: Set better defaults
  MueLu: Hook up ML RefMaxwell in MueLu's Maxwell test
  MiniEM: Add xml files for bdot and exterior meshes
  Xpetra: TpetraMap Fix
  Xpetra: ETI TpetraMap minor style change
  MiniEM: Use Chebyshev and different rebalancing on Cuda
  Xpetra: ETI TpetraMap - Fix clone() sig in def file
  panzer: fix type in doxygen
  Tpetra: testing: fix testing directory
  Tpetra: testing: fix cmake error
  Xpetra: Xpetra_TpetraMap ETI Cleanup
  Tpetra: Testing: fix cmake options
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The primary issue is a bug in Trilinos code or tests
Projects
None yet
Development

No branches or pull requests

2 participants