Commit 206132ac authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

logging

parent cf493403
#include "TestMonteCarlo.hpp"
/*
* MonteCarlo tests with epsilon, level such that total error can be met
* Idea: Point mesh for ode's -> Enables parallelized ode solving
*
* Extend this test idea to multilevel test
* Then Extend idea to Collocation
*
*/
INSTANTIATE_TEST_SUITE_P(TestMonteCarlo, TestMonteCarloWithoutEpsilon, Values(
TestParams{"StochasticDummyScalarGeneratorProblem", "GeneratorValue", "DummyPDESolver"},
TestParams{"StochasticLaplace2DTest", "L2", "LagrangeElliptic"},
......@@ -34,12 +24,16 @@ TEST_P(TestMonteCarloWithoutEpsilon, TestSeriellAgainstParallel) {
mout.EndBlock();
mout << endl;
mcSeriell->EstimatorResults();
mout.StartBlock("Monte Carlo parallel");
mout << "Start" << endl;
mcParallel->Method();
mout.EndBlock();
mout << endl;
mcParallel->EstimatorResults();
EXPECT_NEAR(mcParallel->aggregate.mean.Q, mcSeriell->aggregate.mean.Q, MeanTolerance());
EXPECT_NEAR(mcParallel->aggregate.mean.Y, mcSeriell->aggregate.mean.Y, MeanTolerance());
EXPECT_NEAR(mcParallel->aggregate.sVar.Q, mcSeriell->aggregate.sVar.Q, SVarTolerance());
......@@ -54,6 +48,8 @@ TEST_P(TestMonteCarloWithEpsilon, TestWithEpsilon){
mcParallel->Method();
mout.EndBlock();
mout << endl;
mcParallel->EstimatorResults();
}
int main(int argc, char **argv) {
......
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