Commit e13928ab authored by niklas.baumgarten's avatar niklas.baumgarten

using MeshesCreator

parent 4ef56f52
#include "pdesolver/PDESolver.hpp"
#include "MeshesCreator.hpp"
#include "TestEnvironment.hpp"
#include <filesystem>
namespace fs = std::filesystem;
namespace fs = std::filesystem;
class TestPlotMap : public Test {
protected:
......@@ -26,8 +29,11 @@ protected:
SampleID(Level(5, 0), false, -1),
SampleID(Level(6, 0), false, -1)
};
meshes = createTestMeshes(meshName, dummyIDs.back().level.pLevel,
dummyIDs.back().level.fine);
meshes = MeshesCreator(meshName).
WithPLevel(dummyIDs.back().level.pLevel).
WithLevel(dummyIDs.back().level.fine).
Create();
someMGraphs = {
new MatrixGraphs(*meshes, *(new LagrangeDiscretization(*meshes, 0))),
......@@ -35,7 +41,7 @@ protected:
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, *(new RTLagrangeDiscretization(*meshes, 0, 0))),
new MatrixGraphs(*meshes, dof(new FaceDoF(1))),
new CellMatrixGraphs(*meshes, *(new DGDiscretization(*meshes, 0))),
......
#include "generators/algorithms/CirculantEmbedding.hpp"
#include "TestCirculantEmbedding.hpp"
#include "MeshesCreator.hpp"
#include "TestEnvironment.hpp"
......@@ -10,7 +11,10 @@ protected:
Meshes *meshes;
void SetUp() override {
meshes = createTestMeshes("Interval_DirichletBC", 0, 2);
meshes = MeshesCreator("Interval").
WithPLevel(0).
WithLevel(2).
Create();
generator = new CirculantEmbedding1D(2, *meshes);
}
......@@ -136,7 +140,10 @@ protected:
Meshes *meshes;
void SetUp() override {
meshes = createTestMeshes("Square_DirichletBC", 0, 2);
meshes = MeshesCreator("Square").
WithPLevel(0).
WithLevel(2).
Create();
ce = new CirculantEmbedding2D(2, *meshes);
}
......
#include "generators/algorithms/HybridFluxGenerator.hpp"
#include "MeshesCreator.hpp"
#include "TestEnvironment.hpp"
......@@ -19,9 +20,9 @@ protected:
void SetUp() override {
id = new SampleID(6, false, 0);
meshes = createTestMeshes("Interval_DirichletBC",
id->level.pLevel,
id->level.fine);
meshes = MeshesCreator("Interval").
WithPLevel(id->level.pLevel).
WithLevel(id->level.fine).Create();
faceNormalFluxGen = new HybridFaceNormalFluxGenerator(*meshes);
cellFluxGen = new HybridCellFluxGenerator(*meshes, *faceNormalFluxGen);
}
......
#include "generators/algorithms/NormalDistribution.hpp"
#include "basics/Utilities.hpp"
#include "TestEnvironment.hpp"
#include "MeshesCreator.hpp"
typedef std::vector<SampleID> TestSampleIDs;
......@@ -14,7 +15,7 @@ protected:
int testSamples = 1e6;
void SetUp() override {
meshes = createTestMeshes("Interval_DirichletBC", 0, 0);
meshes = MeshesCreator("Interval").Create();
for (int number = 0; number < testSamples; number++)
sampleIDs.push_back(SampleID(Level(), number, false));
}
......
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