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

refactoring

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