From 327be98074ffe9c05877d8d543f4b09db95bdf41 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 6 Oct 2016 12:48:55 +0100 Subject: [PATCH] Bugfix: use optimised comm --- src/lduSolvers/amg/fineAmgLevel.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lduSolvers/amg/fineAmgLevel.C b/src/lduSolvers/amg/fineAmgLevel.C index d84129676..fc7908c5e 100644 --- a/src/lduSolvers/amg/fineAmgLevel.C +++ b/src/lduSolvers/amg/fineAmgLevel.C @@ -257,8 +257,8 @@ void Foam::fineAmgLevel::scaleX scalingFactorDenom += x[i]*Ax[i]; } - vector scalingVector(scalingFactorNum, scalingFactorDenom, 0); - reduce(scalingVector, sumOp()); + vector2D scalingVector(scalingFactorNum, scalingFactorDenom); + reduce(scalingVector, sumOp()); // Scale x if