mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
CartesianIndexMapper: use the CartesianIndexMapper to applied the mapping from the
Cartesian coordinate to the flat index and vice versa.
This commit is contained in:
1 parent
58aeddf431
commit
f6b3bbc386
5 files changed
+249
-23
No files matched your search
@@ -135,7 +135,7 @@ public:
|
||||
// set the phase pressures. the Opm::BlackoilState only provides the oil
|
||||
// phase pressure, so we need to calculate the other phases' pressures
|
||||
// ourselfs.
|
||||
Scalar pC[numPhases];
|
||||
Dune::FieldVector< Scalar, numPhases > pC( 0 );
|
||||
const auto& matParams = simulator.problem().materialLawParams(elemIdx);
|
||||
MaterialLaw::capillaryPressures(pC, matParams, fluidState);
|
||||
Scalar po = opmBlackoilState.pressure()[elemIdx];
|
||||
|
||||
Reference in new issue
Block a user