Commit dbe66f37 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

refactoring

parent 0dd1c663
...@@ -31,8 +31,10 @@ protected: ...@@ -31,8 +31,10 @@ protected:
public: public:
EllipticPDESolver(IStochasticEllipticAssemble *assemble, EllipticPDESolver(IStochasticEllipticAssemble *assemble,
const string &quantity, const string &costMeasure) : const string &quantity, const string &costMeasure) :
PDESolver(), assemble(assemble), quantity(quantity), costMeasure(costMeasure), PDESolver(), assemble(assemble), quantity(quantity), costMeasure(costMeasure) {
newton(std::make_unique<Newton>()) {
newton = std::make_unique<Newton>();
if (verbose > 0) { if (verbose > 0) {
mout.PrintInfo("EllipticPDESolver", verbose, mout.PrintInfo("EllipticPDESolver", verbose,
PrintInfoEntry("Quantity", quantity), PrintInfoEntry("Quantity", quantity),
......
...@@ -28,13 +28,15 @@ protected: ...@@ -28,13 +28,15 @@ protected:
public: public:
TransportPDESolver(IStochasticLinearTransportAssemble *assemble, TransportPDESolver(IStochasticLinearTransportAssemble *assemble,
const string &quantity, const string &costMeasure) : const string &quantity, const string &costMeasure) :
PDESolver(), assemble(assemble), quantity(quantity), costMeasure(costMeasure), PDESolver(), assemble(assemble), quantity(quantity), costMeasure(costMeasure) {
timeInt(TimeIntegratorCreator(IMPLICIT_MIDPOINT).
timeInt = TimeIntegratorCreator(IMPLICIT_MIDPOINT).
WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))). WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))).
WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))). WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))).
WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))). WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))).
WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))). WithLinearSolver(new GMRES(GetPC("PointBlockJacobi_dG"))).
CreateUnique()) { CreateUnique();
if (verbose) if (verbose)
mout.PrintInfo("TransportPDESolver", verbose, mout.PrintInfo("TransportPDESolver", verbose,
PrintInfoEntry("Quantity", quantity), PrintInfoEntry("Quantity", quantity),
......
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