Add const to several geomech functions

This commit is contained in:
Magne Sjaastad 2017-06-19 20:49:06 +02:00
parent 36b4ad8860
commit b5b13789b4
4 changed files with 5 additions and 5 deletions

View File

@ -283,7 +283,7 @@ cvf::Vec3f RigFemPart::faceNormal(int elmIdx, int faceIdx) const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
float RigFemPart::characteristicElementSize()
float RigFemPart::characteristicElementSize() const
{
if (m_characteristicElementSize != std::numeric_limits<float>::infinity()) return m_characteristicElementSize;

View File

@ -78,7 +78,7 @@ public:
{ return m_elmNeighbors[elementIndex].faceInNeighborElm[faceIndex]; }
cvf::BoundingBox boundingBox() const;
float characteristicElementSize();
float characteristicElementSize() const;
const std::vector<int>& possibleGridCornerElements() const { return m_possibleGridCornerElements; }
void findIntersectingCells(const cvf::BoundingBox& inputBB, std::vector<size_t>* elementIndices) const;
@ -106,7 +106,7 @@ private:
std::vector< Neighbors > m_elmNeighbors;
std::vector<int> m_possibleGridCornerElements;
float m_characteristicElementSize;
mutable float m_characteristicElementSize;
mutable cvf::BoundingBox m_boundingBox;
mutable cvf::ref<cvf::BoundingBoxTree> m_elementSearchTree;

View File

@ -88,7 +88,7 @@ size_t RigFemPartCollection::totalElementCount() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
float RigFemPartCollection::characteristicElementSize()
float RigFemPartCollection::characteristicElementSize() const
{
if (partCount())
{

View File

@ -36,7 +36,7 @@ public:
int partCount() const;
size_t totalElementCount() const;
float characteristicElementSize();
float characteristicElementSize() const;
cvf::BoundingBox boundingBox() const;