Skip to content
Snippets Groups Projects
Commit 9e38b6b3 authored by Porrmann, Maik's avatar Porrmann, Maik
Browse files

bugfix update()

parent 48a9ccbf
No related branches found
No related tags found
No related merge requests found
......@@ -377,7 +377,11 @@ namespace Dune
const GridView &gridView() const { return gridView_; }
//! Update the stored grid view, to be called if the grid has changed
void update(const GridView &gv) { gridView_ = gv; }
void update(const GridView &gv)
{
gridView_ = gv;
finiteElementMap_ = FiniteElementMap(gv);
}
/**
* \brief Create tree node
......
......@@ -315,6 +315,7 @@ namespace Dune
void update(const GridView &gv)
{
gridView_ = gv;
finiteElementMap_ = FiniteElementMap(gv);
}
/**
......
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