Commit 4efd39be authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

whateever

parent 99e44b27
Pipeline #164399 failed with stages
in 19 minutes and 51 seconds
......@@ -31,11 +31,11 @@ protected:
void weightSolution(SampleSolution &solution) const;
SampleID generateID(int index, bool coarse) const {
return SampleID(GetDisc()->GetMeshes().Level(), index, coarse);
return {GetDisc()->GetMeshes().Level(), index, coarse};
}
SampleSolution generateSampleSolution(const SampleID &id) const {
return SampleSolution(GetDisc(), id);
return {GetDisc(), id};
}
public:
......
......@@ -31,6 +31,15 @@ public:
virtual int NumOfSamples() { return 0; };
virtual string Name() const = 0;
// virtual std::shared_ptr<CoarseGeometry> CoarseGeometry() {
// if (Name().find("1D") != string::npos)
// return std::make_shared<IntervalCoarseGeometry>();
// else if (Name().find("2D") != string::npos)
// return std::make_shared<SquareCoarseGeometry>();
// else
// return std::make_shared<IntervalCoarseGeometry>();
// }
};
class StochasticDummyProblem : public IStochasticProblem {
......
......@@ -2,7 +2,7 @@
#define STOCHASTICELLIPTICPROBLEM_HPP
#include "IStochasticProblem.hpp"
#include "Meshfile.hpp"
class IStochasticEllipticProblem : public IStochasticProblem {
public:
......@@ -21,6 +21,13 @@ public:
for (cell c = kappa.cells(); c != kappa.cells_end(); ++c)
kappa(c(), 0) = Permeability(c)[0][0];
}
// std::shared_ptr<CoarseGeometry> CoarseGeometry() override {
// if (Name().find("1D") != string::npos)
// return std::make_shared<IntervalCoarseGeometry>();
// else if (Name().find("2D") != string::npos)
// return std::make_shared<SquareCoarseGeometry>();
// }
};
class SparseGridTestPDE : public IStochasticEllipticProblem {
......
Subproject commit da2e2dcbdb9a5ff185043ca52caa0c0348508aad
Subproject commit c8a2e9a5c4a9911f79acf3afa4e08284e9ed4ea0
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