From b9214f01c40782798dc36a831fe6434c3014c165 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Mon, 23 Jun 2025 12:04:32 +0100 Subject: [PATCH] WIP: cyclicAMIFvPatchField - disable cacheNeighbourField when using AMI cache --- .../constraint/cyclicAMI/cyclicAMIFvPatchField.C | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C index 9c67211448..2f5598f2dd 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/cyclicAMI/cyclicAMIFvPatchField.C @@ -345,8 +345,16 @@ Foam::cyclicAMIFvPatchField::getNeighbourField template bool Foam::cyclicAMIFvPatchField::cacheNeighbourField() const { - return false; - return (FieldBase::localBoundaryConsistency() != 0); + const auto& AMI = this->ownerAMI(); + + if (AMI.cacheActive()) + { + return false; + } + else + { + return (FieldBase::localBoundaryConsistency() != 0); + } }