Commit 81d2ff50 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

quick fix = issues of vector

parent d34ce8b5
Pipeline #243016 passed with stages
in 32 minutes and 26 seconds
......@@ -37,14 +37,16 @@ void EllipticPDESolver::plotSolution(SampleSolution &solution) {
if (!plotting) return;
std::unique_ptr<IDiscretization> pressureDisc;
if (typeid(*assemble).name() == typeid(HybridEllipticAssemble).name())
if (typeid(*assemble).name() == typeid(HybridEllipticAssemble).name()) {
pressureDisc = std::make_unique<LagrangeDiscretization>(GetDisc().GetMeshes(), 0, 1);
else
}
else {
pressureDisc = std::make_unique<LagrangeDiscretization>(GetDisc().GetMeshes(), 1, 1);
SampleSolution pressure(*pressureDisc, solution.Id(), "Pressure");
assemble->SetPressure(solution.U, pressure.U);
mpp::plot(pressure.IdString()) << pressure.U << mpp::endp;
}
SampleSolution pressure(*pressureDisc, solution.Id(), "Pressure");
assemble->SetPressure(solution.U, pressure.U);
mpp::plot(pressure.IdString()) << pressure.U << mpp::endp;
LagrangeDiscretization fluxDisc(GetDisc().GetMeshes(), 0, SpaceDimension);
SampleSolution flux(fluxDisc, solution.Id(), "Flux");
......
Supports Markdown
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