Commit 9191aef7 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

include tests

parent 3475b933
Pipeline #159471 failed with stages
in 12 minutes and 24 seconds
......@@ -8,13 +8,11 @@ INSTANTIATE_TEST_SUITE_P(
TestParams{"StochasticLaplace2DTest", "Outflow", "HybridElliptic"}
));
//INSTANTIATE_TEST_SUITE_P(
// TestMultilevelMonteCarlo, TestMultilevelMonteCarloWithEpsilon, Values(
// TestParams{"StochasticLaplace1D", "L2", "LagrangeElliptic"},
// TestParams{"StochasticLaplace2D", "L2", "LagrangeElliptic"}
//));
INSTANTIATE_TEST_SUITE_P(
TestMultilevelMonteCarlo, TestMultilevelMonteCarloWithEpsilon, Values(
TestParams{"StochasticLaplace1D", "L2", "LagrangeElliptic"},
TestParams{"StochasticLaplace2D", "L2", "LagrangeElliptic"}
));
TEST_P(TestMultilevelMonteCarloWithoutEpsilon, TestSeriellAgainstParallel) {
mout << GetParam() << endl;
......@@ -45,22 +43,22 @@ TEST_P(TestMultilevelMonteCarloWithoutEpsilon, TestSeriellAgainstParallel) {
EXPECT_NEAR(mlmcParallel->aggregate.sVar.Y, mlmcSeriell->aggregate.sVar.Y, SVarTol());
}
//TEST_P(TestMultilevelMonteCarloWithEpsilon, TestWithEpsilon) {
// mout << GetParam() << endl;
//
// mout.StartBlock("Monte Carlo parallel");
// mout << "Start" << endl;
// mlmcParallel->Method();
// mout.EndBlock();
// mout << endl;
//
// mlmcParallel->EstimatorResults();
// mlmcParallel->MultilevelResults();
// mlmcParallel->ExponentResults();
//
// EXPECT_LE(mlmcSeriell->TotalError(), epsilon);
// EXPECT_LE(mlmcParallel->TotalError(), epsilon);
//}
TEST_P(TestMultilevelMonteCarloWithEpsilon, TestWithEpsilon) {
mout << GetParam() << endl;
mout.StartBlock("Monte Carlo parallel");
mout << "Start" << endl;
mlmcParallel->Method();
mout.EndBlock();
mout << endl;
mlmcParallel->EstimatorResults();
mlmcParallel->MultilevelResults();
mlmcParallel->ExponentResults();
EXPECT_LE(mlmcSeriell->TotalError(), epsilon);
EXPECT_LE(mlmcParallel->TotalError(), epsilon);
}
int main(int argc, char **argv) {
return MppTest(
......
Markdown is supported
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