Reset ACTNUM at EclipseState Level

This method avoids resorting to const_cast tricks.
This commit is contained in:
Bård Skaflestad committed 2021-10-07 21:58:09 +02:00
1 parent 9cde5ec9e7
commit c7d7fa1146
1 file changed
+1 -3
+1 -3
View File
@@ -291,9 +291,7 @@ void EclGenericCpGridVanguard<ElementMapper,GridView,Scalar>::doCreateGrids_(Ecl
equilGrid_.reset(new Dune::CpGrid(*grid_));
equilCartesianIndexMapper_ = std::make_unique<CartesianIndexMapper>(*equilGrid_);
std::vector<int> actnum = UgGridHelpers::createACTNUM(*grid_);
auto &field_props = eclState.fieldProps();
const_cast<FieldPropsManager&>(field_props).reset_actnum(actnum);
eclState.reset_actnum(UgGridHelpers::createACTNUM(*grid_));
}
{