Commit c0b6f10a authored by chinsp's avatar chinsp
Browse files

fixed test for Gauss Hermite rule

parent 788a283a
Pipeline #160453 failed with stages
in 7 minutes and 33 seconds
......@@ -13,5 +13,7 @@ CreateStochasticEllipticProblem(const string &problemName, const Meshes &meshes)
return new Laplace2D(meshes);
if (problemName == "StochasticLaplace2DTest")
return new StochasticLaplace2DTest(meshes);
if (problemName == "SparseGridTestPDE")
return new SparseGridTestPDE(meshes);
Exit(problemName + " not found")
}
\ No newline at end of file
......@@ -164,6 +164,32 @@ public:
string Name() const override { return "Laplace2D"; }
};
class SparseGridTestPDE : public IStochasticEllipticProblem {
public:
explicit SparseGridTestPDE(const Meshes &meshes) : IStochasticEllipticProblem(meshes) {}
void DrawSample(const SampleID &id) override {}
//Sets dirichlet boundary condition
Scalar Solution(const Point &x) const override{
return 0.0;
}
//sets neumann boundary conditions
// VectorField Flux(const Point &x) const override {
// return VectorField(1.0,0.0);
// }
Scalar Load(const Point &x) const override {
return 0.0;
}
Tensor Permeability(const cell &c) const override {
return One;
}
string Name() const override { return "SparseGridTestPDE";}
};
IStochasticEllipticProblem *
CreateStochasticEllipticProblem(const string &problemName, const Meshes &meshes);
......
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