Commit 7145ec78 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

expanding test

parent 309cb3f9
Pipeline #117846 passed with stages
in 10 minutes and 1 second
#include "montecarlo/PDESolver.hpp"
#include "TestEnvironment.hpp"
//#include <experimental/filesystem>
//namespace fs = std::experimental::filesystem::v1;
#include <filesystem>
namespace fs = std::filesystem;
......@@ -12,7 +9,7 @@ class TestPlotMap : public Test {
protected:
Meshes *meshes;
MatrixGraphs *mGraphs;
std::vector<MatrixGraphs *> someMGraphs;
std::vector<SampleID> dummyIDs;
......@@ -30,7 +27,23 @@ protected:
};
meshes = createTestMeshes(meshName, dummyIDs.back().level.pLevel,
dummyIDs.back().level.fine);
mGraphs = new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 1)));
someMGraphs = {
new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 0))),
new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 1))),
new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 2))),
new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 3))),
new MatrixGraphs(*meshes, *(new RTLagrangeDiscretization(*meshes, 0,0))),
new MatrixGraphs(*meshes, dof(new FaceDoF(1))),
new CellMatrixGraphs(*meshes, *(new DGDiscretization(*meshes, 0))),
new CellMatrixGraphs(*meshes, *(new DGDiscretization(*meshes, 1))),
new CellMatrixGraphs(*meshes, *(new DGDiscretization(*meshes, 2))),
new CellMatrixGraphs(*meshes, *(new DGDiscretization(*meshes, 3)))
// new CellVertexMatrixGraphs(*meshes, *(new EGDiscretization(*meshes, 0)))
};
}
void TearDown() override {}
......@@ -43,11 +56,12 @@ public:
TEST_F(TestPlotMap2D, TestPlotMap) {
for (auto &dummyID: dummyIDs) {
SampleSolution solution(mGraphs, dummyIDs.back());
solution.U = 0.0;
plotMap.VtkPlot(solution, 1, "VertexData");
ASSERT_TRUE(fs::exists(plotMap.currentFile));
fs::remove_all(plotMap.currentDir);
for (auto &mGraphs: someMGraphs) {
SampleSolution solution(mGraphs, dummyIDs.back());
plotMap.VtkPlot(solution);
// ASSERT_TRUE(fs::exists(plotMap.currentFile));
fs::remove_all(plotMap.currentDir);
}
}
}
......
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