Commit 5f7070c3 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

adapted to template based stochastic problems

parent ae0b64f5
......@@ -8,12 +8,12 @@
class DGTransportAssemble : public DGTAssemble {
public:
StochasticTransportProblem *problem;
IStochasticTransportProblem *problem;
double flux_alpha = 1.0;
double diffusion = 0.0;
DGTransportAssemble(IDiscretization *disc, StochasticTransportProblem *problem,
DGTransportAssemble(IDiscretization *disc, IStochasticTransportProblem *problem,
Plot *plot)
: DGTAssemble(dynamic_cast<DGDiscretizationT<> *>(disc),
plot), problem(problem) {
......
......@@ -7,7 +7,7 @@
class HybridEllipticAssemble : public MixedEllipticAssemble {
public:
HybridEllipticAssemble(IDiscretization *disc, StochasticEllipticProblem *problem)
HybridEllipticAssemble(IDiscretization *disc, IStochasticEllipticProblem *problem)
: MixedEllipticAssemble(disc, problem) {}
const char *Name() const override;
......
......@@ -12,9 +12,9 @@ protected:
int verbose = 1;
public:
StochasticEllipticProblem *problem;
IStochasticEllipticProblem *problem;
explicit IEllipticAssemble(StochasticEllipticProblem *problem) : problem(problem) {
explicit IEllipticAssemble(IStochasticEllipticProblem *problem) : problem(problem) {
config.get("EllipticVerbose", verbose);
};
......
......@@ -7,9 +7,9 @@
class LagrangeEllipticAssemble : public IEllipticAssemble {
public:
IDiscretizationT<> *disc;
IDiscretization *disc;
LagrangeEllipticAssemble(IDiscretization *disc, StochasticEllipticProblem *problem)
LagrangeEllipticAssemble(IDiscretization *disc, IStochasticEllipticProblem *problem)
: IEllipticAssemble(problem), disc(disc) {}
const char *Name() const override;
......
......@@ -9,9 +9,9 @@
class MixedEllipticAssemble : public IEllipticAssemble {
public:
IDiscretizationT<> *disc;
IDiscretization *disc;
MixedEllipticAssemble(IDiscretizationT<> *disc, StochasticEllipticProblem *problem) :
MixedEllipticAssemble(IDiscretization *disc, IStochasticEllipticProblem *problem) :
IEllipticAssemble(problem), disc(disc) {};
const char *Name() const override;
......
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