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

trick to pass the tests: fourth attempt

parent b65f38a7
Branches hyperplastic
No related tags found
No related merge requests found
Pipeline #1962 passed
...@@ -635,7 +635,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -635,7 +635,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]")
} }
} }
} }
#ifdef PUGS_HAS_SLEPC
SECTION("symmetric tiny matrix") SECTION("symmetric tiny matrix")
{ {
TinyMatrix<3> TestA{3e10, 2e10, 4e10, 2e10, 0, 2e10, 4e10, 2e10, 3e10}; TinyMatrix<3> TestA{3e10, 2e10, 4e10, 2e10, 0, 2e10, 4e10, 2e10, 3e10};
...@@ -646,7 +646,6 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -646,7 +646,6 @@ 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 +728,7 @@ TEST_CASE("EigenvalueSolver", "[algebra]") ...@@ -729,7 +728,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