mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Adapt to new (>= DUNE 2.8) way of updating mappers.
This commit is contained in:
parent
3c7ba992f1
commit
f137d15c65
@ -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()
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user