Bugfix: return scalar instead of truncated label. Daniel Khazaei.

This commit is contained in:
Hrvoje Jasak 2019-04-09 11:46:48 +01:00
parent 6a466c4378
commit 67ee1222b5

View file

@ -127,7 +127,7 @@ Foam::scalar Foam::getRefCellValue
) )
{ {
scalar refCellValue = (refCelli >= 0 ? field[refCelli] : 0.0); scalar refCellValue = (refCelli >= 0 ? field[refCelli] : 0.0);
return returnReduce<label>(refCellValue, sumOp<scalar>()); return returnReduce<scalar>(refCellValue, sumOp<scalar>());
} }