Skip to content

Commit

Permalink
GRIDEDIT-1611 Prefer explicit type conversion when calling GetNum-ent…
Browse files Browse the repository at this point in the history
…ities
  • Loading branch information
BillSenior committed Feb 5, 2025
1 parent 8a901e9 commit e09cfd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/MeshKernel/include/MeshKernel/Mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,17 @@ namespace meshkernel
/// @brief Get the number of edges for a node
/// @param[in] nodeIndex The node index
/// @return The number of valid nodes
[[nodiscard]] UInt GetNumNodesEdges(UInt nodeIndex) const { return m_nodesNumEdges[nodeIndex]; }
[[nodiscard]] UInt GetNumNodesEdges(UInt nodeIndex) const { return static_cast<UInt>(m_nodesNumEdges[nodeIndex]); }

/// @brief Get the number of edges for a face
/// @param[in] faceIndex The face index
/// @return The number of valid faces
[[nodiscard]] UInt GetNumFaceEdges(UInt faceIndex) const { return m_numFacesNodes[faceIndex]; }
[[nodiscard]] UInt GetNumFaceEdges(UInt faceIndex) const { return static_cast<UInt>(m_numFacesNodes[faceIndex]); }

/// @brief Get the number of faces an edges shares
/// @param[in] edgeIndex The edge index
/// @return The number of faces an edges shares
[[nodiscard]] UInt GetNumEdgesFaces(UInt edgeIndex) const { return m_edgesNumFaces[edgeIndex]; }
[[nodiscard]] UInt GetNumEdgesFaces(UInt edgeIndex) const { return static_cast<UInt>(m_edgesNumFaces[edgeIndex]); }

/// @brief Get the local edge number for an element edge.
// TODO add unit test and with all failing cases
Expand Down

0 comments on commit e09cfd2

Please sign in to comment.