Skip to content
Snippets Groups Projects
Commit b65f38a7 authored by Emmanuel Labourasse's avatar Emmanuel Labourasse
Browse files

trick to pass the tests: third attempt

parent 71a13ad1
No related branches found
No related tags found
No related merge requests found
...@@ -638,7 +638,6 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -638,7 +638,6 @@ TEST_CASE("EigenvalueSolver", "[algebra]")
SECTION("symmetric tiny matrix") SECTION("symmetric tiny matrix")
{ {
#ifdef PUGS_HAS_SLEPC
TinyMatrix<3> TestA{3e10, 2e10, 4e10, 2e10, 0, 2e10, 4e10, 2e10, 3e10}; TinyMatrix<3> TestA{3e10, 2e10, 4e10, 2e10, 0, 2e10, 4e10, 2e10, 3e10};
TinyMatrix<3> TestA2{4, 2, 3, 2, 0, 2, 3, 2, 4}; TinyMatrix<3> TestA2{4, 2, 3, 2, 0, 2, 3, 2, 4};
TinyMatrix<3> TestB{1, -1, 0, -1, 1, 0, 0, 0, 3}; TinyMatrix<3> TestB{1, -1, 0, -1, 1, 0, 0, 0, 3};
...@@ -647,6 +646,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -647,6 +646,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]")
TinyMatrix<3> TestE{3e-10, 2e-10, 4e-10, 2e-10, 0, 2e-10, 4e-10, 2e-10, 3e-10}; TinyMatrix<3> TestE{3e-10, 2e-10, 4e-10, 2e-10, 0, 2e-10, 4e-10, 2e-10, 3e-10};
TinyMatrix<3> expA2; TinyMatrix<3> expA2;
#ifdef PUGS_HAS_SLEPC
auto [eigenvalues, eigenmatrix] = EigenvalueSolver{}.findEigen(TestA); auto [eigenvalues, eigenmatrix] = EigenvalueSolver{}.findEigen(TestA);
TinyMatrix<3> Diag = zero; TinyMatrix<3> Diag = zero;
...@@ -729,7 +729,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -729,7 +729,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]")
REQUIRE((B(i, j) - TestE(i, j)) / frobeniusNorm(TestE) == Catch::Approx(0).margin(1E-8)); REQUIRE((B(i, j) - TestE(i, j)) / frobeniusNorm(TestE) == Catch::Approx(0).margin(1E-8));
} }
} }
}
#endif #endif
} }
} }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment