mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix warning
This commit is contained in:
parent
bf1b755dc8
commit
3b46849c79
@ -306,12 +306,12 @@ void RivIntersectionPartMgr::calculateElementBasedGeoMechTextureCoords(cvf::Vec2
|
|||||||
{
|
{
|
||||||
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
cvf::Vec2f* rawPtr = textureCoords->ptr();
|
||||||
|
|
||||||
for (int triangleIdx = 0; triangleIdx < triangleToCellIdx.size(); triangleIdx++)
|
for (size_t triangleIdx = 0; triangleIdx < triangleToCellIdx.size(); triangleIdx++)
|
||||||
{
|
{
|
||||||
size_t resIdx = triangleToCellIdx[triangleIdx];
|
size_t resIdx = triangleToCellIdx[triangleIdx];
|
||||||
float resValue = resultValues[resIdx];
|
float resValue = resultValues[resIdx];
|
||||||
|
|
||||||
int triangleVxIdx = triangleIdx * 3;
|
size_t triangleVxIdx = triangleIdx * 3;
|
||||||
|
|
||||||
if (resValue == HUGE_VAL || resValue != resValue) // a != a is true for NAN's
|
if (resValue == HUGE_VAL || resValue != resValue) // a != a is true for NAN's
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user