Merge pull request #3578 from bska/reset-actnum-eclipsestate

Reset ACTNUM at EclipseState Level
This commit is contained in:
Tor Harald Sandve 2021-10-08 09:51:54 +02:00 committed by GitHub
commit 40e94268cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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_));
}
{