set the PVT region index inside the problem's initial() method

also, do not touch the region index in scalar assignments for black
oil primary variable objects. the first change is required by because
assignMassConservative() accesses the region index and the second
because scalar assignments should not modify the PVT region of the
primary variables. found by clang's ASAN.
This commit is contained in:
Andreas Lauser 2015-01-19 20:31:01 +01:00
parent a4f1aa95cc
commit 597bd22b9a

View File

@ -588,6 +588,8 @@ public:
{
int globalDofIdx = context.globalSpaceIndex(spaceIdx, timeIdx);
values.setPvtRegionIndex(pvtRegionIndex(context, spaceIdx, timeIdx));
const auto& matParams = materialLawParams(context, spaceIdx, timeIdx);
values.assignMassConservative(initialFluidStates_[globalDofIdx], matParams);
}