2015-11-18 18:21:22 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2017-01-03 11:11:36 +01:00
|
|
|
#include "RivSimWellPipeSourceInfo.h"
|
2015-11-18 18:21:22 +01:00
|
|
|
|
2017-01-03 15:05:26 +01:00
|
|
|
#include "RimEclipseView.h"
|
2017-10-13 14:20:47 +02:00
|
|
|
#include "RimSimWellInViewCollection.h"
|
2017-10-13 09:29:42 +02:00
|
|
|
#include "RimSimWellInView.h"
|
2015-11-18 18:21:22 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-10-13 10:16:01 +02:00
|
|
|
RivSimWellPipeSourceInfo::RivSimWellPipeSourceInfo(RimSimWellInView* simWell, size_t branchIndex)
|
|
|
|
|
: m_simWell(simWell),
|
2017-01-03 11:11:36 +01:00
|
|
|
m_branchIndex(branchIndex)
|
2015-11-18 18:21:22 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-10-13 09:29:42 +02:00
|
|
|
RimSimWellInView* RivSimWellPipeSourceInfo::well() const
|
2015-11-18 18:21:22 +01:00
|
|
|
{
|
2017-10-13 10:16:01 +02:00
|
|
|
return m_simWell.p();
|
2015-11-18 18:21:22 +01:00
|
|
|
}
|
2017-01-03 15:05:26 +01:00
|
|
|
|
2017-01-30 14:28:37 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
///
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
|
size_t RivSimWellPipeSourceInfo::branchIndex() const
|
|
|
|
|
{
|
|
|
|
|
return m_branchIndex;
|
|
|
|
|
}
|
|
|
|
|
|