Bugfix: return scalar instead of truncated label. Daniel Khazaei.
This commit is contained in:
parent
6a466c4378
commit
67ee1222b5
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ Foam::scalar Foam::getRefCellValue
|
|||
)
|
||||
{
|
||||
scalar refCellValue = (refCelli >= 0 ? field[refCelli] : 0.0);
|
||||
return returnReduce<label>(refCellValue, sumOp<scalar>());
|
||||
return returnReduce<scalar>(refCellValue, sumOp<scalar>());
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in a new issue