From d5f60ea213ebbb6beffa2c969a64de86a3df029e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 26 Oct 2017 15:52:27 +0100 Subject: [PATCH] BUG: Matrix: Corrected size of field resulting from rectangular matrix multiplication Resolves bug-report https://bugs.openfoam.org/view.php?id=2740 --- src/OpenFOAM/matrices/Matrix/Matrix.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/matrices/Matrix/Matrix.C b/src/OpenFOAM/matrices/Matrix/Matrix.C index 14e6911166..f1fa2869c5 100644 --- a/src/OpenFOAM/matrices/Matrix/Matrix.C +++ b/src/OpenFOAM/matrices/Matrix/Matrix.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -652,7 +652,7 @@ inline Foam::tmp> Foam::operator* << abort(FatalError); } - tmp> tMf(new Field(f.size(), Zero)); + tmp> tMf(new Field(M.m(), Zero)); Field& Mf = tMf.ref(); for (label i=0; i