Commit c1bdf5f1 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

excluding Multilevel test with epsilon

parent 1d54a809
Pipeline #159213 passed with stages
in 11 minutes and 46 seconds
......@@ -75,7 +75,7 @@ protected:
WithParallel(true).
CreateUnique()) {}
void TearDown() { PPM->Barrier(0); }
void TearDown() override { PPM->Barrier(0); }
};
class TestMonteCarloWithoutEpsilon : public TestMonteCarlo {
......
......@@ -10,11 +10,11 @@ INSTANTIATE_TEST_SUITE_P(
INSTANTIATE_TEST_SUITE_P(
TestMultilevelMonteCarlo, TestMultilevelMonteCarloWithEpsilon, Values(
//INSTANTIATE_TEST_SUITE_P(
// TestMultilevelMonteCarlo, TestMultilevelMonteCarloWithEpsilon, Values(
// TestParams{"StochasticLaplace1D", "L2", "LagrangeElliptic"},
TestParams{"StochasticLaplace2D", "L2", "LagrangeElliptic"}
));
// TestParams{"StochasticLaplace2D", "L2", "LagrangeElliptic"}
//));
TEST_P(TestMultilevelMonteCarloWithoutEpsilon, TestSeriellAgainstParallel) {
mout << GetParam() << endl;
......@@ -45,22 +45,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(
......
......@@ -54,6 +54,8 @@ protected:
WithEpsilon(epsilon).
WithParallel(true).
CreateUnique()) {}
void TearDown() override { PPM->Barrier(0); }
};
class TestMultilevelMonteCarloWithoutEpsilon : public TestMultilevelMonteCarlo {
......
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