WIP: cyclicAMIFvPatchField - disable cacheNeighbourField when using AMI cache

This commit is contained in:
Andrew Heather
2025-06-23 12:04:32 +01:00
parent e5eb84514f
commit 47efb65ef9

View File

@ -345,8 +345,16 @@ Foam::cyclicAMIFvPatchField<Type>::getNeighbourField
template<class Type>
bool Foam::cyclicAMIFvPatchField<Type>::cacheNeighbourField() const
{
return false;
return (FieldBase::localBoundaryConsistency() != 0);
const auto& AMI = this->ownerAMI();
if (AMI.cacheActive())
{
return false;
}
else
{
return (FieldBase::localBoundaryConsistency() != 0);
}
}