mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
algebraicPairGAMGAgglomeration: agglomerate based on the maximum of the upper and lower coefficients
Patch provided by Mattijs Janssens Resolves bug-report http://bugs.openfoam.org/view.php?id=2234
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -52,7 +52,16 @@ Foam::algebraicPairGAMGAgglomeration::algebraicPairGAMGAgglomeration
|
||||
:
|
||||
pairGAMGAgglomeration(matrix.mesh(), controlDict)
|
||||
{
|
||||
agglomerate(matrix.mesh(), mag(matrix.upper()));
|
||||
const lduMesh& mesh = matrix.mesh();
|
||||
|
||||
if (matrix.hasLower())
|
||||
{
|
||||
agglomerate(mesh, max(mag(matrix.upper()), mag(matrix.lower())));
|
||||
}
|
||||
else
|
||||
{
|
||||
agglomerate(mesh, mag(matrix.upper()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user