Commit 16528c70 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

introducing setUpPlot

parent 981ac39b
Pipeline #117621 failed with stages
in 6 minutes and 11 seconds
......@@ -28,7 +28,7 @@ void EllipticPDESolver::computeCost(SampleSolution &solution) {
void EllipticPDESolver::plotSolution(SampleSolution &solution) {
plotMap.VtkPlot(solution, 1, "VertexData");
// Todo plot flux
// const auto d = dof(new CellDoF(3));
// MatrixGraph *fluxMGraph = new MatrixGraph(d, solution.U.GetMesh());
// SampleSolution fluxSolution(fluxMGraph);
......@@ -57,6 +57,10 @@ void TransportPDESolver::computeCost(SampleSolution &solution) {
}
void TransportPDESolver::plotSolution(SampleSolution &solution) {
}
void TransportPDESolver::setUpPlot(SampleSolution &solution) {
plotMap.UpdateMap(solution);
assemble->SetPlot(plotMap[plotMap.GetLevelInteger(solution)]);
}
......
......@@ -27,7 +27,6 @@
#include <typeinfo>
class PDESolver {
protected:
PlotMap plotMap;
......@@ -181,6 +180,8 @@ protected:
void plotSolution(SampleSolution &solution) override;
void setUpPlot(SampleSolution &solution) override;
TimeSeries createTimeSeries(SampleSolution &solution); // Todo shouldn't be here
public:
......
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