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

introduced new benchmark results

parent cb4986dc
......@@ -26,19 +26,26 @@ protected:
}
};
INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticResults, Values(
/*
* Elliptic Convergence Results
*
*/
class TestEllipticConvergenceResults : public TestEllipticResults{};
INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticConvergenceResults, Values(
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"sigma", "1.5"}}},
......@@ -46,7 +53,7 @@ INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticResults, Values(
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"sigma", "2.0"}}},
......@@ -54,7 +61,7 @@ INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticResults, Values(
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"lambda", "0.05"}}},
......@@ -62,7 +69,7 @@ INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticResults, Values(
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"lambda", "0.15"}}},
......@@ -78,16 +85,117 @@ INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticResults, Values(
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "20"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "ConvergenceTest"},
{"initLevels", "[3, 4, 5, 6, 7, 8, 9]"},
{"maxLevel", "9"},
{"uniformSampleAmount", "500"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}}
));
TEST_P(TestEllipticConvergenceResults, TestResults) {
ASSERT_EQ(mainProgram->Run(), 0);
// Todo check for alpha beta gamma
}
/*
* Elliptic MLMC Results
*
*/
class TestEllipticMLMCResults : public TestEllipticResults{};
INSTANTIATE_TEST_CASE_P(TestEllipticResults, TestEllipticMLMCResults, Values(
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.01"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.4"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.005"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.4"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.001"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.4"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.0005"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.4"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.01"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.005"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.001"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Experiment", "MLMCExperiment"},
{"initLevels", "[3, 4, 5]"},
{"initSampleAmount", "[12, 6, 3]"},
{"epsilon", "0.0005"},
{"maxLevel", "10"},
{"Problem", "StochasticLaplace2D"},
{"smoothing", "1.8"}}}
));
TEST_P(TestEllipticResults, TestOldResults) {
TEST_P(TestEllipticMLMCResults, TestResults) {
ASSERT_EQ(mainProgram->Run(), 0);
ASSERT_TRUE(mainProgram->mlmc->totalErr < mainProgram->epsilon);
}
/*
* Elliptic Discretization Results
* TODO: Open Research Topic
*/
int main(int argc, char **argv) {
return MAIN_TEST_WITH_PPM(argc, argv, "../../mlmc/");
}
\ No newline at end of file
......@@ -3,7 +3,7 @@
# Test Executables
add_executable(TestMainProgram TestMainProgram.cpp)
add_executable(BenchmarkOldResults BenchmarkOldResults.cpp)
add_executable(BenchmarkOldResults BenchmarkResults.cpp)
#add_executable(TestMultilevelPlotter TestMultilevelPlotter.cpp)
# Manage folder structure build folder
......
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