mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#6364 Fix unit conversion for reservoir pressure in FRK export.
This commit is contained in:
parent
d4d010c5d5
commit
202bcba93d
@ -319,7 +319,15 @@ std::vector<double> RimFractureModelPlot::calculatePorosity() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<double> RimFractureModelPlot::calculateReservoirPressure() const
|
||||
{
|
||||
return findCurveAndComputeTopOfLayer( RiaDefines::CurveProperty::PRESSURE );
|
||||
std::vector<double> pressureBar = findCurveAndComputeTopOfLayer( RiaDefines::CurveProperty::PRESSURE );
|
||||
|
||||
std::vector<double> pressurePsi;
|
||||
for ( double p : pressureBar )
|
||||
{
|
||||
pressurePsi.push_back( RiaEclipseUnitTools::barToPsi( p ) );
|
||||
}
|
||||
|
||||
return pressurePsi;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user