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

added test cases

parent 201348a1
Pipeline #158394 canceled with stages
in 8 minutes and 13 seconds
......@@ -40,7 +40,7 @@ protected:
std::unique_ptr<PDESolver> pdeSolver;
TestPDESolver(const std::string &meshName, int commSplit = 0) {
explicit TestPDESolver(const std::string &meshName, int commSplit = 0) {
std::filesystem::remove_all("data/vtk/");
std::filesystem::create_directory("data/vtk/");
......@@ -132,11 +132,21 @@ INSTANTIATE_TEST_SUITE_P(TestPDESolver, TestLaplace2D, Values(
class TestTransport1D : public TestPDESolver {
public:
TestTransport1D() : TestPDESolver("Interval") {};
TestTransport1D() : TestPDESolver("Interval") {};
};
INSTANTIATE_TEST_SUITE_P(TestPDESolver, TestTransport1D, Values(
TestParams{"DGTransport", "CosHat1D", "Mass", 1.0}
TestParams{"DGTransport", "Pollution1D", "Energy", 1.0},
TestParams{"DGTransport", "Pollution1D", "Mass", 1.0},
TestParams{"DGTransport", "Pollution1D", "Error", 1.0},
TestParams{"DGTransport", "Pollution1D", "Inflow", 1.0},
TestParams{"DGTransport", "Pollution1D", "Outflow", 1.0},
TestParams{"DGTransport", "PollutionCosHat1D", "Energy", 1.0},
TestParams{"DGTransport", "PollutionCosHat1D", "Mass", 1.0},
TestParams{"DGTransport", "PollutionCosHat1D", "Error", 1.0},
TestParams{"DGTransport", "PollutionCosHat1D", "Inflow", 1.0},
TestParams{"DGTransport", "PollutionCosHat1D", "Outflow", 1.0}
));
class TestTransport2D : public TestPDESolver {
......@@ -145,7 +155,29 @@ public:
};
INSTANTIATE_TEST_SUITE_P(TestPDESolver, TestTransport2D, Values(
TestParams{"DGTransport", "CosHat2D", "Mass", 0.036012725}
// TestParams{"DGTransport", "Pollution2D", "Mass", 0.036012725},
// TestParams{"DGTransport", "Pollution2D", "Energy", 0.036012725},
// TestParams{"DGTransport", "Pollution2D", "Inflow", 0.036012725},
// TestParams{"DGTransport", "Pollution2D", "Outflow", 0.036012725},
// TestParams{"DGTransport", "Pollution2D", "Error", 0.036012725},
//
// TestParams{"DGTransport", "PollutionCosHat2D", "Mass", 0.036012725},
// TestParams{"DGTransport", "PollutionCosHat2D", "Energy", 0.036012725},
// TestParams{"DGTransport", "PollutionCosHat2D", "Inflow", 0.036012725},
// TestParams{"DGTransport", "PollutionCosHat2D", "Outflow", 0.036012725},
// TestParams{"DGTransport", "PollutionCosHat2D", "Error", 0.036012725},
//
// TestParams{"DGTransport", "GaussHat2D", "Mass", 0.036012725},
// TestParams{"DGTransport", "GaussHat2D", "Energy", 0.036012725},
// TestParams{"DGTransport", "GaussHat2D", "Inflow", 0.036012725},
// TestParams{"DGTransport", "GaussHat2D", "Outflow", 0.036012725},
// TestParams{"DGTransport", "GaussHat2D", "Error", 0.036012725},
//
// TestParams{"DGTransport", "CosHat2D", "Mass", 0.036012725},
// TestParams{"DGTransport", "CosHat2D", "Energy", 0.036012725},
// TestParams{"DGTransport", "CosHat2D", "Inflow", 0.036012725},
// TestParams{"DGTransport", "CosHat2D", "Outflow", 0.036012725},
TestParams{"DGTransport", "CosHat2D", "Error", 0.036012725}
));
#define PDESOLVERTEST_TESTRUN(TestClass)\
......
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