2015-11-18 11:21:22 -06: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 04:11:36 -06:00
|
|
|
#include "RivSimWellPipeSourceInfo.h"
|
2015-11-18 11:21:22 -06:00
|
|
|
|
2017-01-03 08:05:26 -06:00
|
|
|
#include "RimEclipseView.h"
|
2017-10-13 07:20:47 -05:00
|
|
|
#include "RimSimWellInViewCollection.h"
|
2017-10-13 02:29:42 -05:00
|
|
|
#include "RimSimWellInView.h"
|
2015-11-18 11:21:22 -06:00
|
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-10-13 03:16:01 -05:00
|
|
|
RivSimWellPipeSourceInfo::RivSimWellPipeSourceInfo(RimSimWellInView* simWell, size_t branchIndex)
|
|
|
|
: m_simWell(simWell),
|
2017-01-03 04:11:36 -06:00
|
|
|
m_branchIndex(branchIndex)
|
2015-11-18 11:21:22 -06:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-10-13 02:29:42 -05:00
|
|
|
RimSimWellInView* RivSimWellPipeSourceInfo::well() const
|
2015-11-18 11:21:22 -06:00
|
|
|
{
|
2017-10-13 03:16:01 -05:00
|
|
|
return m_simWell.p();
|
2015-11-18 11:21:22 -06:00
|
|
|
}
|
2017-01-03 08:05:26 -06:00
|
|
|
|
2017-01-30 07:28:37 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
size_t RivSimWellPipeSourceInfo::branchIndex() const
|
|
|
|
{
|
|
|
|
return m_branchIndex;
|
|
|
|
}
|
|
|
|
|