From d2cf0bda912fbc35cf1cbc94b83a7e364927a8b7 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 24 Oct 2024 16:31:30 +0100 Subject: [PATCH] BUG: AMI: missing manipulatedMatrix setting. See #3238 --- .../constraint/cyclicACMI/cyclicACMIFvPatchField.C | 8 ++++++++ .../constraint/cyclicAMI/cyclicAMIFvPatchField.C | 8 ++++++++ .../cyclicACMIGAMGInterfaceField.C | 4 ++++ .../cyclicAMIGAMGInterfaceField.C | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.C index a95239a9b67..0a5da32f09f 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicACMI/cyclicACMIFvPatchField.C @@ -611,6 +611,8 @@ void Foam::cyclicACMIFvPatchField<Type>::initInterfaceMatrixUpdate scalarRecvBufs_ ); } + + this->updatedMatrix(false); } @@ -679,6 +681,8 @@ void Foam::cyclicACMIFvPatchField<Type>::updateInterfaceMatrix } this->addToInternalField(result, !add, faceCells, coeffs, pnf); + + this->updatedMatrix(true); } @@ -735,6 +739,8 @@ void Foam::cyclicACMIFvPatchField<Type>::initInterfaceMatrixUpdate recvBufs_ ); } + + this->updatedMatrix(false); } @@ -792,6 +798,8 @@ void Foam::cyclicACMIFvPatchField<Type>::updateInterfaceMatrix } this->addToInternalField(result, !add, faceCells, coeffs, pnf); + + this->updatedMatrix(true); } diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C index 8a8ad6e3cd8..4e2acbd0233 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C @@ -616,6 +616,8 @@ void Foam::cyclicAMIFvPatchField<Type>::initInterfaceMatrixUpdate scalarRecvBufs_ ); } + + this->updatedMatrix(false); } @@ -693,6 +695,8 @@ void Foam::cyclicAMIFvPatchField<Type>::updateInterfaceMatrix // Multiply the field by coefficients and add into the result this->addToInternalField(result, !add, faceCells, coeffs, pnf); + + this->updatedMatrix(true); } @@ -751,6 +755,8 @@ void Foam::cyclicAMIFvPatchField<Type>::initInterfaceMatrixUpdate recvBufs_ ); } + + this->updatedMatrix(false); } @@ -827,6 +833,8 @@ void Foam::cyclicAMIFvPatchField<Type>::updateInterfaceMatrix // Multiply the field by coefficients and add into the result this->addToInternalField(result, !add, faceCells, coeffs, pnf); + + this->updatedMatrix(true); } diff --git a/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicACMIGAMGInterfaceField/cyclicACMIGAMGInterfaceField.C b/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicACMIGAMGInterfaceField/cyclicACMIGAMGInterfaceField.C index d35f01078f3..19ddaa9300a 100644 --- a/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicACMIGAMGInterfaceField/cyclicACMIGAMGInterfaceField.C +++ b/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicACMIGAMGInterfaceField/cyclicACMIGAMGInterfaceField.C @@ -249,6 +249,8 @@ void Foam::cyclicACMIGAMGInterfaceField::initInterfaceMatrixUpdate ); UPstream::commWarn(oldWarnComm); } + + this->updatedMatrix(false); } @@ -346,6 +348,8 @@ void Foam::cyclicACMIGAMGInterfaceField::updateInterfaceMatrix this->addToInternalField(result, !add, faceCells, coeffs, pnf); } + + this->updatedMatrix(true); } diff --git a/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicAMIGAMGInterfaceField/cyclicAMIGAMGInterfaceField.C b/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicAMIGAMGInterfaceField/cyclicAMIGAMGInterfaceField.C index ea1279128c5..69d08703a66 100644 --- a/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicAMIGAMGInterfaceField/cyclicAMIGAMGInterfaceField.C +++ b/src/meshTools/AMIInterpolation/GAMG/interfaceFields/cyclicAMIGAMGInterfaceField/cyclicAMIGAMGInterfaceField.C @@ -251,6 +251,8 @@ void Foam::cyclicAMIGAMGInterfaceField::initInterfaceMatrixUpdate ); UPstream::commWarn(oldWarnComm); } + + this->updatedMatrix(false); } @@ -360,6 +362,8 @@ void Foam::cyclicAMIGAMGInterfaceField::updateInterfaceMatrix // Add result using coefficients this->addToInternalField(result, !add, faceCells, coeffs, pnf); } + + this->updatedMatrix(true); } -- GitLab