Skip to content

Commit

Permalink
xxx split
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-iob committed May 27, 2024
1 parent d227125 commit 3b05b03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/LA_example_00002.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ int run_dump(int rank, int nProcs)
if (globalDOF == 0) {
expectedSolution = 1;
} else if ((globalDOF == 1) || ((globalDOF + 1) % blockSize) != 0) {
expectedSolution = std::static_cast<double>(globalDOF + 1);
expectedSolution = static_cast<double>(globalDOF + 1);
} else {
expectedSolution = std::static_cast<double>(10 * (globalDOF + 1));
expectedSolution = static_cast<double>(10 * (globalDOF + 1));
}

if (!utils::DoubleFloatingEqual()(expectedSolution - solution[i], 0.0, SOLVER_RTOL, SOLVER_RTOL)) {
Expand Down
4 changes: 2 additions & 2 deletions test/integration_tests/LA/test_LA_00006.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ int subtest_001()
if (globalDOF == 0) {
expectedSolution = 1.;
} else if ((globalDOF == 1) || ((globalDOF + 1) % blockSize) != 0) {
expectedSolution = std::static_cast<double>(globalDOF + 1);
expectedSolution = static_cast<double>(globalDOF + 1);
} else {
expectedSolution = std::static_cast<double>(10 * (globalDOF + 1));
expectedSolution = static_cast<double>(10 * (globalDOF + 1));
}

if (!utils::DoubleFloatingEqual()(expectedSolution - solution[i], 0.0, SOLVER_RTOL, SOLVER_RTOL)) {
Expand Down
4 changes: 2 additions & 2 deletions test/integration_tests/LA/test_LA_00007.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ int solve_linear_system(SystemSplitStrategy splitStrategy)
if (globalDOF == 0) {
expectedSolution = 1.;
} else if ((globalDOF == 1) || ((globalDOF + 1) % blockSize) != 0) {
expectedSolution = std::static_cast<double>(globalDOF + 1);
expectedSolution = static_cast<double>(globalDOF + 1);
} else {
expectedSolution = std::static_cast<double>(10 * (globalDOF + 1));
expectedSolution = static_cast<double>(10 * (globalDOF + 1));
}

if (!utils::DoubleFloatingEqual()(expectedSolution - solution[i], 0.0, SOLVER_RTOL, SOLVER_RTOL)) {
Expand Down

0 comments on commit 3b05b03

Please sign in to comment.