mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'fix-3387-GAMGAgglomeration-caching' into 'develop'
Draft: Fix 3387 gamg agglomeration caching See merge request Development/openfoam!750
This commit is contained in:
@ -397,7 +397,7 @@ const Foam::GAMGAgglomeration& Foam::GAMGAgglomeration::New
|
||||
|
||||
if (agglomPtr)
|
||||
{
|
||||
if (agglomPtr->requireUpdate_)
|
||||
if (agglomPtr->requireUpdate_ || agglomPtr->requiresUpdate())
|
||||
{
|
||||
mesh.thisDb().checkOut(const_cast<GAMGAgglomeration*>(agglomPtr));
|
||||
return GAMGAgglomeration::New(matrix, controlDict);
|
||||
@ -459,7 +459,7 @@ const Foam::GAMGAgglomeration& Foam::GAMGAgglomeration::New
|
||||
|
||||
if (agglomPtr)
|
||||
{
|
||||
if (agglomPtr->requireUpdate_)
|
||||
if (agglomPtr->requireUpdate_ || agglomPtr->requiresUpdate())
|
||||
{
|
||||
mesh.thisDb().checkOut(const_cast<GAMGAgglomeration*>(agglomPtr));
|
||||
return GAMGAgglomeration::New(mesh, controlDict);
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2019-2023 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2025 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -38,7 +38,9 @@ Description
|
||||
|
||||
// Whether to cache the agglomeration
|
||||
cacheAgglomeration yes;
|
||||
// Optionally update every updateInterval mesh motion. Default is 1.
|
||||
// Optionally update every updateInterval time steps. Default is 1.
|
||||
// - only applies if cacheAgglomeration
|
||||
// - applies also for static mesh cases
|
||||
updateInterval 10;
|
||||
// Optional name (default is GAMGAgglomeration)
|
||||
//name pAgglomeration;
|
||||
@ -190,7 +192,7 @@ protected:
|
||||
// Protected Member Functions
|
||||
|
||||
//- Does the agglomeration need to be fully updated?
|
||||
bool requiresUpdate() const;
|
||||
virtual bool requiresUpdate() const;
|
||||
|
||||
//- Assemble coarse mesh addressing
|
||||
void agglomerateLduAddressing(const label fineLevelIndex);
|
||||
|
||||
Reference in New Issue
Block a user