findRefCell: Corrected the type of the reduction function.
authorhenry <henry>
Wed, 16 Jun 2010 21:29:00 +0000 (16 22:29 +0100)
committerhenry <henry>
Wed, 16 Jun 2010 21:29:00 +0000 (16 22:29 +0100)
src/finiteVolume/cfdTools/general/findRefCell/findRefCell.C

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