Commit 35b24abc authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

new update function

parent 1180a8e9
......@@ -28,6 +28,11 @@ struct PlotMap : public std::map<int, Plot *> {
PlotMap(std::allocator<std::pair<int, Plot *>> plotMap) :
std::map<int, Plot *>(plotMap) {};
void UpdateMap(SampleSolution &dataToPlot) {
int level = GetLevelInteger(dataToPlot);
UpdateMap(level, dataToPlot.U.GetMesh());
}
void UpdateMap(int newLevel, const Mesh &mesh) {
if (this->find(newLevel) == this->end())
(*this)[newLevel] = new Plot(mesh);
......
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