mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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
|
// 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_()
|
void initFluidSystem_()
|
||||||
@ -1129,9 +1133,7 @@ private:
|
|||||||
|
|
||||||
const MaterialLawParams& materialLawParams_(int globalDofIdx) const
|
const MaterialLawParams& materialLawParams_(int globalDofIdx) const
|
||||||
{
|
{
|
||||||
int cartesianCellIdx = this->simulator().gridManager().cartesianCellId(globalDofIdx);
|
return materialLawManager_.materialLawParams(globalDofIdx);
|
||||||
|
|
||||||
return materialLawManager_.materialLawParams(cartesianCellIdx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// update the hysteresis parameters of the material laws for the whole grid
|
// update the hysteresis parameters of the material laws for the whole grid
|
||||||
|
Loading…
Reference in New Issue
Block a user