Skip to content
Snippets Groups Projects
Commit a838566e authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[vtkfunction][p1] fix condition for exception

parent 2eceef91
No related branches found
No related tags found
1 merge request!1010Feature/improve vtk function docu
......@@ -130,7 +130,7 @@ public:
VectorP1VTKFunction(const GridView& gridView, const Mapper& mapper, const F& field, const std::string& name, int nComps)
: field_(field), name_(name), nComps_(nComps), mapper_(mapper)
{
if (field.size()!=(unsigned int)( gridView.size(/*codim*/dim)) )
if (field.size()!=(unsigned int)( mapper.size() ))
DUNE_THROW(Dune::IOError, "VectorP1VTKFunction: size mismatch");
}
private:
......
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