Fix compile warning in GeoMechContourMapProjection

This commit is contained in:
Gaute Lindkvist 2019-01-23 09:44:22 +01:00
parent f0731ace6f
commit 3fddca093e

View File

@ -448,7 +448,7 @@ double RimGeoMechContourMapProjection::getParameterWeightForCell(size_t
std::vector<double> RimGeoMechContourMapProjection::gridCellValues(RigFemResultAddress resAddr, std::vector<float>& resultValues) const
{
std::vector<double> gridCellValues(m_femPart->elementCount(), std::numeric_limits<double>::infinity());
for (size_t globalCellIdx = 0; globalCellIdx < m_femPart->elementCount(); ++globalCellIdx)
for (size_t globalCellIdx = 0; globalCellIdx < static_cast<size_t>(m_femPart->elementCount()); ++globalCellIdx)
{
RigElementType elmType = m_femPart->elementType(globalCellIdx);
if (!(elmType == HEX8 || elmType == HEX8P)) continue;