mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
WIP: cyclicAMIFvPatchField - disable cacheNeighbourField when using AMI cache
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user