-
Notifications
You must be signed in to change notification settings - Fork 2
#197: NOX: Provide Tpetra
versions of LOCA_TestProblems
tests
#199
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
base: NGA-FY23-develop
Are you sure you want to change the base?
#197: NOX: Provide Tpetra
versions of LOCA_TestProblems
tests
#199
Conversation
WIP StateLOCA_TestProblems is a Test library providing a set of classes that are used by LOCA_UnitTests (and maybe in other tests) The work is in in the following state:
We added also a |
⚡ Code quality check ⚡ 🔴 cppcheck found 4 issues! Click here to see details.Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - performance: Function parameter 'x' should be passed by const reference. [passedByValue] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - performance: Function parameter 'u' should be passed by const reference. [passedByValue] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - style: The function 'getBasis' is never used. [unusedFunction] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Pitchfork_FiniteElementProblem.cpp Lines 55 to 60 in f44de1c
!Line: 55 - information: Include file: "Basis.H" not found. [missingInclude] 🔴 clang-tidy found 21 issues! Click here to see details.Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 55 to 60 in f44de1c
!Line: 55 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 56 to 61 in f44de1c
!Line: 56 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - warning: parameter name 'gp' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - warning: 2 adjacent parameters of 'getBasis' of similar type ('std::vector<double>') are easily swapped by mistake [bugprone-easily-swappable-parameters]
!Line: 66 - note: the first parameter in the range is 'x'
!Line: 66 - note: the last parameter in the range is 'u' Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - warning: parameter name 'x' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 66 to 71 in f44de1c
!Line: 66 - warning: parameter name 'u' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 67 to 72 in f44de1c
!Line: 67 - warning: variable 'N' of type 'int' can be declared 'const' [misc-const-correctness] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 67 to 72 in f44de1c
!Line: 67 - warning: variable name 'N' is too short, expected at least 3 characters [readability-identifier-length] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 68 to 73 in f44de1c
!Line: 68 - warning: 3.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 69 to 74 in f44de1c
!Line: 69 - warning: 3.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 72 to 77 in f44de1c
!Line: 72 - warning: 2.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 73 to 78 in f44de1c
!Line: 73 - warning: 2.0 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 74 to 79 in f44de1c
!Line: 74 - warning: 0.5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 75 to 80 in f44de1c
!Line: 75 - warning: 0.5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 78 to 83 in f44de1c
!Line: 78 - warning: 0.5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 82 to 87 in f44de1c
!Line: 82 - warning: kernel performance could be improved by unrolling this loop with a '#pragma unroll' directive [altera-unroll-loops] Trilinos/packages/nox/test/tpetra/LOCA_TestProblems/Basis.cpp Lines 88 to 89 in f44de1c
!Line: 88 - warning: redundant return statement at the end of a function with a void return type [readability-redundant-control-flow] Trilinos/packages/nox/test/tpetra/LOCA_UnitTests/NGA_DevTests.cpp Lines 18 to 23 in f44de1c
!Line: 18 - warning: variable 'mpiSession' of type 'Teuchos::GlobalMPISession' can be declared 'const' [misc-const-correctness] Trilinos/packages/nox/test/tpetra/LOCA_UnitTests/NGA_DevTests.cpp Lines 18 to 23 in f44de1c
!Line: 18 - warning: calling a function that uses a default argument is disallowed [fuchsia-default-arguments-calls] Trilinos/packages/nox/test/tpetra/LOCA_UnitTests/NGA_DevTests.cpp Lines 23 to 28 in f44de1c
!Line: 23 - warning: variable 'numGlobalElements' of type 'int' can be declared 'const' [misc-const-correctness] Trilinos/packages/nox/test/tpetra/LOCA_UnitTests/NGA_DevTests.cpp Lines 23 to 28 in f44de1c
!Line: 23 - warning: 1000 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers] |
WIP, fixes #197