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

further progress in plotting

parent 3a2c61f5
......@@ -27,6 +27,14 @@ void EllipticPDESolver::computeCost(SampleSolution &solution) {
}
void EllipticPDESolver::plotSolution(SampleSolution &solution) {
plotMap.VtkPlot(solution, 1, "VertexData");
// const auto d = dof(new CellDoF(3));
// MatrixGraph *fluxMGraph = new MatrixGraph(d, solution.U.GetMesh());
// SampleSolution fluxSolution(fluxMGraph);
// mout << fluxSolution.U << endl;
// assemble->SetFlux(solution.U, fluxSolution.U);
// plotMap.VtkPlot(fluxSolution, 3, "CellData");
}
void TransportPDESolver::run(SampleSolution &solution) {
......@@ -49,8 +57,7 @@ void TransportPDESolver::computeCost(SampleSolution &solution) {
}
void TransportPDESolver::plotSolution(SampleSolution &solution) {
plotMap.Update(solution.id.level, solution.U.GetMesh());
assemble->SetPlot(plotMap[solution.id.level]);
assemble->SetPlot(plotMap[plotMap.GetLevelInteger(solution)]);
}
TimeSeries TransportPDESolver::createTimeSeries(SampleSolution &solution) {
......
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