mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Sector Export: fix bug comparing caf::VecIjk1 with caf::VecIjk0.
This commit is contained in:
1 parent
5a7e987034
commit
3a8d521bc2
5 files changed
+7
-8
No files matched your search
@@ -822,7 +822,6 @@ std::vector<RigSimWellData*>
|
||||
for ( const auto& point : resultPoints )
|
||||
{
|
||||
// Get IJK if available
|
||||
// TODO: bug? min/max is zero-indexed?
|
||||
auto ijkOpt = point.cellIjk();
|
||||
if ( !ijkOpt.has_value() ) continue;
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ RigWellResultPoint RifReaderEclipseWell::createWellResultPoint( const RigEclipse
|
||||
|
||||
if ( auto ijk = grid->ijkFromCellIndex( gridCellIndex ) )
|
||||
{
|
||||
resultPoint.setIjk( ijk->toOneBased() );
|
||||
resultPoint.setIjk( ijk.value() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ void RigSimulationWellCenterLineCalculator::calculateWellPipeCenterlineForTimeSt
|
||||
{
|
||||
if ( resultPoint.cellIjk().has_value() )
|
||||
{
|
||||
branchTxt += QString( " %1 \n" ).arg( QString::fromStdString( ( *resultPoint.cellIjk() ).toString() ) );
|
||||
branchTxt += QString( " %1 \n" ).arg( QString::fromStdString( ( *resultPoint.cellIjk() ).toOneBased().toString() ) );
|
||||
}
|
||||
}
|
||||
RiaLogging::debug( branchTxt );
|
||||
|
||||
@@ -305,7 +305,7 @@ cvf::Vec3d RigWellResultPoint::bottomPosition() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::optional<caf::VecIjk1> RigWellResultPoint::cellIjk() const
|
||||
std::optional<caf::VecIjk0> RigWellResultPoint::cellIjk() const
|
||||
{
|
||||
return m_cellIjk;
|
||||
}
|
||||
@@ -313,7 +313,7 @@ std::optional<caf::VecIjk1> RigWellResultPoint::cellIjk() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RigWellResultPoint::setIjk( caf::VecIjk1 cellIJK )
|
||||
void RigWellResultPoint::setIjk( caf::VecIjk0 cellIJK )
|
||||
{
|
||||
m_cellIjk = cellIJK;
|
||||
}
|
||||
@@ -73,8 +73,8 @@ struct RigWellResultPoint
|
||||
|
||||
cvf::Vec3d bottomPosition() const;
|
||||
|
||||
std::optional<caf::VecIjk1> cellIjk() const;
|
||||
void setIjk( caf::VecIjk1 cellIJK );
|
||||
std::optional<caf::VecIjk0> cellIjk() const;
|
||||
void setIjk( caf::VecIjk0 cellIJK );
|
||||
|
||||
private:
|
||||
size_t m_gridIndex;
|
||||
@@ -96,5 +96,5 @@ private:
|
||||
double m_connectionFactor;
|
||||
bool m_isConnectedToValve;
|
||||
|
||||
std::optional<caf::VecIjk1> m_cellIjk;
|
||||
std::optional<caf::VecIjk0> m_cellIjk;
|
||||
};
|
||||
Reference in new issue
Block a user