BUG: masterCoarsest: do not agglomerate: Fixes #2455.
If the initial mesh does not have enough levels do not do any agglomeration
This commit is contained in:
parent
d00445ace9
commit
df63b47fbc
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2013-2017 OpenFOAM Foundation
|
Copyright (C) 2013-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2021 OpenCFD Ltd.
|
Copyright (C) 2021-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -279,7 +279,7 @@ bool Foam::GAMGProcAgglomeration::agglomerate
|
|||||||
const lduMesh& levelMesh = agglom_.meshLevels_[fineLevelIndex];
|
const lduMesh& levelMesh = agglom_.meshLevels_[fineLevelIndex];
|
||||||
label levelComm = levelMesh.comm();
|
label levelComm = levelMesh.comm();
|
||||||
|
|
||||||
if (Pstream::myProcNo(levelComm) != -1)
|
if (fineLevelIndex > 0 && Pstream::myProcNo(levelComm) != -1)
|
||||||
{
|
{
|
||||||
// Collect meshes and restrictAddressing onto master
|
// Collect meshes and restrictAddressing onto master
|
||||||
// Overwrites the fine mesh (meshLevels_[index-1]) and addressing
|
// Overwrites the fine mesh (meshLevels_[index-1]) and addressing
|
||||||
|
Loading…
Reference in New Issue
Block a user