mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-27 11:40:17 -06:00
ebos: adapt to the Cartesian -> compressed cells change of EclMaterialLawManager
This commit is contained in:
parent
48f889d980
commit
bfcd132553
@ -792,7 +792,11 @@ private:
|
||||
}
|
||||
|
||||
// the fluid-matrix interactions for ECL problems are dealt with by a separate class
|
||||
materialLawManager_.initFromDeck(deck, eclState);
|
||||
std::vector<int> compressedToCartesianElemIdx(numDof);
|
||||
for (unsigned elemIdx = 0; elemIdx < numDof; ++elemIdx)
|
||||
compressedToCartesianElemIdx[elemIdx] = gridManager.cartesianCellId(elemIdx);
|
||||
|
||||
materialLawManager_.initFromDeck(deck, eclState, compressedToCartesianElemIdx);
|
||||
}
|
||||
|
||||
void initFluidSystem_()
|
||||
@ -1129,9 +1133,7 @@ private:
|
||||
|
||||
const MaterialLawParams& materialLawParams_(int globalDofIdx) const
|
||||
{
|
||||
int cartesianCellIdx = this->simulator().gridManager().cartesianCellId(globalDofIdx);
|
||||
|
||||
return materialLawManager_.materialLawParams(cartesianCellIdx);
|
||||
return materialLawManager_.materialLawParams(globalDofIdx);
|
||||
}
|
||||
|
||||
// update the hysteresis parameters of the material laws for the whole grid
|
||||
|
Loading…
Reference in New Issue
Block a user