Skip to content
Snippets Groups Projects
Commit cc2f2c51 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

fix ComponentVisualizer

parent b5e95272
No related branches found
No related tags found
1 merge request!21fix ComponentVisualizer
...@@ -148,11 +148,12 @@ public: ...@@ -148,11 +148,12 @@ public:
double evaluate(const int& comp, const RangeType& val) const override final double evaluate(const int& comp, const RangeType& val) const override final
{ {
return val[comp]; DUNE_THROW_IF(comp != 0, Dune::InvalidStateException, "This visualizer plots only a single component!");
return val[comp_];
} }
private: private:
int comp_; const int comp_;
}; // class ComponentVisualizer }; // class ComponentVisualizer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment