-
Notifications
You must be signed in to change notification settings - Fork 2
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
#153: Provide Tpetra
version of CDR_Model
#120
#153: Provide Tpetra
version of CDR_Model
#120
Conversation
Thanks @cwschilly for the comments. This PR is still in development, I've pushed the changes because I'm working on two separate machines and I want to keep the code in sync, it's not yet ready. |
492b5a7
to
8776bf4
Compare
Epetra
dependency from Tempus_HHTAlpha
Tpetra
version of CDR_Model
Tpetra
version of CDR_Model
Tpetra
version of CDR_Model
d1ecd54
to
efa30d1
Compare
⚡ Code quality check ⚡ 🔴 clang-tidy found 24 issues! Click here to see details.Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 331 to 336 in 11ed636
!Line: 331 - warning: function 'CDR_Test' has cognitive complexity of 26 (threshold 25) [readability-function-cognitive-complexity]
!Line: 400 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 400 - note: +1
!Line: 447 - note: +1, including nesting penalty of 0, nesting level increased to 1
!Line: 349 - note: inferred assignment of ID-dependent value from ID-dependent variable model_pl [altera-id-dependent-backward-branch]
!Line: 349 - note: inferred assignment of ID-dependent value from ID-dependent variable model_pl [altera-id-dependent-backward-branch] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 472 to 477 in 11ed636
!Line: 472 - warning: initialization of 'instance_BackwardEuler_CDR_UnitTest' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]
!Line: 472 - note: possibly throwing constructor declared here Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 472 to 477 in 11ed636
!Line: 472 - warning: variable 'instance_BackwardEuler_CDR_UnitTest' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 472 to 477 in 11ed636
!Line: 472 - warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 472 to 477 in 11ed636
!Line: 472 - warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 487 to 492 in 11ed636
!Line: 487 - warning: initialization of 'instance_BackwardEuler_CDR_Tpetra_UnitTest' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]
!Line: 487 - note: possibly throwing constructor declared here Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 487 to 492 in 11ed636
!Line: 487 - warning: variable 'instance_BackwardEuler_CDR_Tpetra_UnitTest' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 487 to 492 in 11ed636
!Line: 487 - warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] Trilinos/packages/tempus/test/BackwardEuler/Tempus_BackwardEulerTest.cpp Lines 487 to 492 in 11ed636
!Line: 487 - warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 480 to 485 in 11ed636
!Line: 480 - warning: function 'CDR_Test' has cognitive complexity of 35 (threshold 25) [readability-function-cognitive-complexity]
!Line: 555 - note: +2, including nesting penalty of 1, nesting level increased to 2
!Line: 555 - note: +1
!Line: 605 - note: +1, including nesting penalty of 0, nesting level increased to 1 Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 490 to 495 in 11ed636
!Line: 490 - warning: variable name 'pl' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 491 to 496 in 11ed636
!Line: 491 - warning: variable name 'dt' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 559 to 564 in 11ed636
!Line: 559 - warning: variable name 'dx' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 566 to 571 in 11ed636
!Line: 566 - warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 612 to 617 in 11ed636
!Line: 612 - warning: variable name 'x' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 616 to 621 in 11ed636
!Line: 616 - warning: variable name 'dx' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 629 to 634 in 11ed636
!Line: 629 - warning: initialization of 'instance_BDF2_CDR_UnitTest' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]
!Line: 629 - note: possibly throwing constructor declared here Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 629 to 634 in 11ed636
!Line: 629 - warning: variable 'instance_BDF2_CDR_UnitTest' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 629 to 634 in 11ed636
!Line: 629 - warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 629 to 634 in 11ed636
!Line: 629 - warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 644 to 649 in 11ed636
!Line: 644 - warning: initialization of 'instance_BDF2_CDR_Tpetra_UnitTest' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp]
!Line: 644 - note: possibly throwing constructor declared here Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 644 to 649 in 11ed636
!Line: 644 - warning: variable 'instance_BDF2_CDR_Tpetra_UnitTest' is non-const and globally accessible, consider making it const [cppcoreguidelines-avoid-non-const-global-variables] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 644 to 649 in 11ed636
!Line: 644 - warning: inheriting multiple classes that aren't pure virtual is discouraged [fuchsia-multiple-inheritance] Trilinos/packages/tempus/test/BDF2/Tempus_BDF2Test.cpp Lines 644 to 649 in 11ed636
!Line: 644 - warning: static objects are disallowed; if possible, use a constexpr constructor instead [fuchsia-statically-constructed-objects] |
a61bd1c
to
a4b2fed
Compare
@stmcgovern @cwschilly Ok I think it's ready to be reviewed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll have to rebase the commits, one of them is not signed |
…so it can be reused by both Epetra/Tpetra
a4b2fed
to
fb45636
Compare
Fixes #119 Fixes #153