mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
a4f1aa95cc
commit
597bd22b9a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user