mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add const to several geomech functions
This commit is contained in:
parent
36b4ad8860
commit
b5b13789b4
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
@ -88,7 +88,7 @@ size_t RigFemPartCollection::totalElementCount() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
float RigFemPartCollection::characteristicElementSize()
|
||||
float RigFemPartCollection::characteristicElementSize() const
|
||||
{
|
||||
if (partCount())
|
||||
{
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
int partCount() const;
|
||||
|
||||
size_t totalElementCount() const;
|
||||
float characteristicElementSize();
|
||||
float characteristicElementSize() const;
|
||||
cvf::BoundingBox boundingBox() const;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user