Initialize cell scalar value

This commit is contained in:
Magne Sjaastad 2013-12-17 12:19:29 +01:00
parent f6510210b0
commit decb0a756e

View File

@ -472,6 +472,8 @@ void RivTransmissibilityColorMapper::updateCombinedTransmissibilityTextureCoordi
#pragma omp parallel for private(texCoord, cellScalarValue)
for (int idx = 0; idx < static_cast<int>(quadsToGridCells.size()); idx++)
{
cellScalarValue = HUGE_VAL;
if (quadsToFaceTypes[idx] == cvf::StructGridInterface::POS_I)
{
cellScalarValue = dataAccessObjectTranX->cellScalar(quadsToGridCells[idx]);
@ -514,10 +516,6 @@ void RivTransmissibilityColorMapper::updateCombinedTransmissibilityTextureCoordi
cellScalarValue = dataAccessObjectTranZ->cellScalar(neighborGridCellIdx);
}
}
else
{
cellScalarValue = HUGE_VAL;
}
texCoord = mapper->mapToTextureCoord(cellScalarValue);
if (cellScalarValue == HUGE_VAL || cellScalarValue != cellScalarValue) // a != a is true for NAN's