mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
use const-ref for read-only parameters
quells static analyzer warnings
This commit is contained in:
parent
41bcc182bb
commit
efc49e43b2
@ -348,7 +348,7 @@ std::vector<double> BoundaryGrid::Quad::evalBasis(double xi, double eta) const
|
||||
return res;
|
||||
}
|
||||
|
||||
BoundaryGrid::Vertex minXminY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
BoundaryGrid::Vertex minXminY(const std::vector<BoundaryGrid::Vertex>& in)
|
||||
{
|
||||
// find the nodes with minimal X
|
||||
// then find the minimum Y among these
|
||||
@ -358,7 +358,7 @@ BoundaryGrid::Vertex minXminY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
return *s.begin();
|
||||
}
|
||||
|
||||
BoundaryGrid::Vertex maxXminY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
BoundaryGrid::Vertex maxXminY(const std::vector<BoundaryGrid::Vertex>& in)
|
||||
{
|
||||
// find the nodes with maximum X
|
||||
// then find the minimum Y among these
|
||||
@ -368,7 +368,7 @@ BoundaryGrid::Vertex maxXminY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
return *(s.end()-2);
|
||||
}
|
||||
|
||||
BoundaryGrid::Vertex maxXmaxY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
BoundaryGrid::Vertex maxXmaxY(const std::vector<BoundaryGrid::Vertex>& in)
|
||||
{
|
||||
// find the nodes with maximum X
|
||||
// then find the maximum Y among these
|
||||
@ -378,7 +378,7 @@ BoundaryGrid::Vertex maxXmaxY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
return *(s.end()-1);
|
||||
}
|
||||
|
||||
BoundaryGrid::Vertex minXmaxY(std::vector<BoundaryGrid::Vertex>& in)
|
||||
BoundaryGrid::Vertex minXmaxY(const std::vector<BoundaryGrid::Vertex>& in)
|
||||
{
|
||||
// find the nodes with minimum X
|
||||
// then find the maximum Y among these
|
||||
|
@ -489,19 +489,19 @@ class HexGeometry<2, cdim, GridImp>
|
||||
|
||||
//! \brief Find the vertex in the vector with minimum X and minimum Y
|
||||
//! \returns The requested vertex
|
||||
BoundaryGrid::Vertex minXminY(std::vector<BoundaryGrid::Vertex>& in);
|
||||
BoundaryGrid::Vertex minXminY(const std::vector<BoundaryGrid::Vertex>& in);
|
||||
|
||||
//! \brief Find the vertex in the vector with maximum X and minimum Y
|
||||
//! \returns The requested vertex
|
||||
BoundaryGrid::Vertex maxXminY(std::vector<BoundaryGrid::Vertex>& in);
|
||||
BoundaryGrid::Vertex maxXminY(const std::vector<BoundaryGrid::Vertex>& in);
|
||||
|
||||
//! \brief Find the vertex in the vector with maximum X and maximum Y
|
||||
//! \returns The requested vertex
|
||||
BoundaryGrid::Vertex maxXmaxY(std::vector<BoundaryGrid::Vertex>& in);
|
||||
BoundaryGrid::Vertex maxXmaxY(const std::vector<BoundaryGrid::Vertex>& in);
|
||||
|
||||
//! \brief Find the vertex in the vector with minimum X and maximum Y
|
||||
//! \returns The requested vertex
|
||||
BoundaryGrid::Vertex minXmaxY(std::vector<BoundaryGrid::Vertex>& in);
|
||||
BoundaryGrid::Vertex minXmaxY(const std::vector<BoundaryGrid::Vertex>& in);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user