CartesianIndexMapper: use the CartesianIndexMapper to applied the mapping from the

Cartesian coordinate to the flat index and vice versa.
This commit is contained in:
Robert Kloefkorn committed 2015-09-10 16:01:53 +02:00
1 parent 58aeddf431
commit f6b3bbc386
5 files changed
+249 -23

No files matched your search

+1 -1
View File
@@ -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];