Adapt to new (>= DUNE 2.8) way of updating mappers.

This commit is contained in:
Markus Blatt 2022-10-10 21:54:22 +02:00
parent 3c7ba992f1
commit f137d15c65
3 changed files with 17 additions and 2 deletions

View File

@ -1373,8 +1373,13 @@ public:
// if the grid has potentially changed, we need to re-create the
// supporting data structures.
#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 8)
elementMapper_.update(gridView_);
vertexMapper_.update(gridView_);
#else
elementMapper_.update();
vertexMapper_.update();
#endif
resetLinearizer();
// this is a bit hacky because it supposes that Problem::finishInit()

View File

@ -300,8 +300,13 @@ public:
*/
void gridChanged()
{
elementMapper_.update();
vertexMapper_.update();
#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 8)
elementMapper_.update(gridView_);
vertexMapper_.update(gridView_);
#else
elementMapper_.update();
vertexMapper_.update();
#endif
if (enableVtkOutput_())
defaultVtkWriter_->gridChanged();

View File

@ -163,8 +163,13 @@ public:
*/
void gridChanged()
{
#if DUNE_VERSION_NEWER(DUNE_GRID, 2, 8)
elementMapper_.update(gridView_);
vertexMapper_.update(gridView_);
#else
elementMapper_.update();
vertexMapper_.update();
#endif
}
/*!