mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-19 01:24:53 -05:00
#13676 Grid model: Include negative values for DEPTH calculations
This commit is contained in:
committed by
Magne Sjaastad
parent
df79c9913a
commit
8cfbfb9773
@@ -1967,7 +1967,7 @@ void RigCaseCellResultsData::computeDepthRelatedResults()
|
||||
|
||||
if ( computeDepth || isTemporaryGrid )
|
||||
{
|
||||
depth[0][resultIndex] = cvf::Math::abs( cell.center().z() );
|
||||
depth[0][resultIndex] = -cell.center().z();
|
||||
}
|
||||
|
||||
if ( computeDx || isTemporaryGrid )
|
||||
@@ -1990,12 +1990,12 @@ void RigCaseCellResultsData::computeDepthRelatedResults()
|
||||
|
||||
if ( computeTops || isTemporaryGrid )
|
||||
{
|
||||
tops[0][resultIndex] = cvf::Math::abs( cell.faceCenter( cvf::StructGridInterface::NEG_K ).z() );
|
||||
tops[0][resultIndex] = -cell.faceCenter( cvf::StructGridInterface::NEG_K ).z();
|
||||
}
|
||||
|
||||
if ( computeBottom || isTemporaryGrid )
|
||||
{
|
||||
bottom[0][resultIndex] = cvf::Math::abs( cell.faceCenter( cvf::StructGridInterface::POS_K ).z() );
|
||||
bottom[0][resultIndex] = -cell.faceCenter( cvf::StructGridInterface::POS_K ).z();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user