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