2013-12-19 02:00:00 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-24 00:14:52 -05:00
|
|
|
// Copyright (C) Statoil ASA
|
|
|
|
// Copyright (C) Ceetron Solutions AS
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
2013-12-19 02:00:00 -06:00
|
|
|
// 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.
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
2013-12-19 02:00:00 -06:00
|
|
|
// 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.
|
2018-09-19 02:51:55 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-12-19 02:00:00 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "RivSourceInfo.h"
|
2018-09-19 02:51:55 -05:00
|
|
|
|
2014-06-24 10:19:30 -05:00
|
|
|
#include "cvfStructGridGeometryGenerator.h"
|
2013-12-19 02:00:00 -06:00
|
|
|
|
2018-09-19 02:51:55 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
RivSourceInfo::RivSourceInfo( caf::PdmObject* pdmObject, size_t gridIndex )
|
|
|
|
: RivObjectSourceInfo( pdmObject )
|
|
|
|
, m_gridIndex( gridIndex )
|
|
|
|
, m_cellSetType( ALL_CELLS )
|
2018-09-19 02:51:55 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
size_t RivSourceInfo::gridIndex() const
|
|
|
|
{
|
|
|
|
return m_gridIndex;
|
|
|
|
}
|
2013-12-19 02:00:00 -06:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-09-19 02:51:55 -05:00
|
|
|
///
|
2013-12-19 02:00:00 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2014-06-24 10:19:30 -05:00
|
|
|
bool RivSourceInfo::hasCellFaceMapping() const
|
2013-12-19 02:00:00 -06:00
|
|
|
{
|
2014-06-24 10:19:30 -05:00
|
|
|
return m_cellFaceFromTriangleMapper.notNull();
|
2013-12-19 02:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-09-19 02:51:55 -05:00
|
|
|
///
|
2013-12-19 02:00:00 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2013-12-20 03:57:53 -06:00
|
|
|
bool RivSourceInfo::hasNNCIndices() const
|
2013-12-19 02:00:00 -06:00
|
|
|
{
|
2013-12-20 03:57:53 -06:00
|
|
|
return m_NNCIndices.notNull();
|
2013-12-19 02:00:00 -06:00
|
|
|
}
|
2018-09-19 04:01:11 -05:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
RivCellSetEnum RivSourceInfo::cellSetType() const
|
|
|
|
{
|
|
|
|
return m_cellSetType;
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
void RivSourceInfo::setCellSetType( RivCellSetEnum cellSetEnum )
|
2018-09-19 04:01:11 -05:00
|
|
|
{
|
|
|
|
m_cellSetType = cellSetEnum;
|
|
|
|
}
|