From 0de1df730977553da4cb78d2e391030bf521f23e Mon Sep 17 00:00:00 2001 From: Kutalmis Bercin Date: Tue, 13 Dec 2022 10:19:15 +0000 Subject: [PATCH] BUG: processorFaPatch: fix the sign of compound assignment --- .../constraint/processor/processorFaPatchScalarField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteArea/fields/faPatchFields/constraint/processor/processorFaPatchScalarField.C b/src/finiteArea/fields/faPatchFields/constraint/processor/processorFaPatchScalarField.C index b06e2d7736..65a9edb7f4 100644 --- a/src/finiteArea/fields/faPatchFields/constraint/processor/processorFaPatchScalarField.C +++ b/src/finiteArea/fields/faPatchFields/constraint/processor/processorFaPatchScalarField.C @@ -84,7 +84,7 @@ void Foam::processorFaPatchField::updateInterfaceMatrix { forAll(edgeFaces, facei) { - result[edgeFaces[facei]] -= coeffs[facei]*pnf[facei]; + result[edgeFaces[facei]] += coeffs[facei]*pnf[facei]; } } else