Commit 0c01ed65 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

adaption to new SampleSolution

parent 3c604b2a
......@@ -69,7 +69,7 @@ INSTANTIATE_TEST_CASE_P(TestPDESolver, TestLaplace1D, Values(
));
TEST_P(TestLaplace1D, TestRun) {
SampleSolution solution(*mGraphs, dummyID);
SampleSolution solution(mGraphs, dummyID);
pdeSolver->Run(solution);
ASSERT_NEAR(solution.Q, GetParam().Q, PDESOLVER_TEST_TOLERANCE);
}
......@@ -106,7 +106,7 @@ INSTANTIATE_TEST_CASE_P(TestPDESolver, TestLaplace2D, Values(
));
TEST_P(TestLaplace2D, TestRun) {
SampleSolution solution(*mGraphs, dummyID);
SampleSolution solution(mGraphs, dummyID);
pdeSolver->Run(solution);
ASSERT_NEAR(solution.Q, GetParam().Q, PDESOLVER_TEST_TOLERANCE);
}
......@@ -121,10 +121,9 @@ INSTANTIATE_TEST_CASE_P(TestPDESolver, TestGaussHat, Values(
));
TEST_P(TestGaussHat, TestRun) {
SampleSolution solution(*mGraphs, dummyID);
SampleSolution solution(mGraphs, dummyID);
pdeSolver->Run(solution);
ASSERT_NEAR(solution.Q, GetParam().Q, PDESOLVER_TEST_TOLERANCE);
// Todo ASSERT_NEAR(solution.Cost, GetParam().Cost, PDESOLVER_TEST_TOLERANCE);
}
int main(int argc, char **argv) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment