Bugfix: use optimised comm

This commit is contained in:
Hrvoje Jasak 2016-10-06 12:48:55 +01:00
parent d7af6267c9
commit 327be98074

View file

@ -257,8 +257,8 @@ void Foam::fineAmgLevel::scaleX
scalingFactorDenom += x[i]*Ax[i]; scalingFactorDenom += x[i]*Ax[i];
} }
vector scalingVector(scalingFactorNum, scalingFactorDenom, 0); vector2D scalingVector(scalingFactorNum, scalingFactorDenom);
reduce(scalingVector, sumOp<vector>()); reduce(scalingVector, sumOp<vector2D>());
// Scale x // Scale x
if if