mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#404) Using well path pointer instead of index for source info for picking
This commit is contained in:
@@ -19,18 +19,21 @@
|
||||
|
||||
#include "RivWellPathSourceInfo.h"
|
||||
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RivWellPathSourceInfo::RivWellPathSourceInfo(size_t wellPathIndex)
|
||||
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath)
|
||||
{
|
||||
m_wellPathIndex = wellPathIndex;
|
||||
m_wellPath = wellPath;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
size_t RivWellPathSourceInfo::wellPathIndex() const
|
||||
RimWellPath* RivWellPathSourceInfo::wellPath() const
|
||||
{
|
||||
return m_wellPathIndex;
|
||||
return m_wellPath.p();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user