WIP: cyclicAMIFvPatchField - disable cacheNeighbourField when using AMI cache

This commit is contained in:
Andrew Heather
2025-06-23 12:04:32 +01:00
parent 2340bd0d74
commit b9214f01c4

View File

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