mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: GAMGAgglomeration: move starting mesh interface setting into base class
This commit is contained in:
@ -117,6 +117,7 @@ Foam::GAMGAgglomeration::GAMGAgglomeration
|
||||
(
|
||||
readLabel(controlDict.lookup("nCellsInCoarsestLevel"))
|
||||
),
|
||||
meshInterfaces_(mesh.interfaces()),
|
||||
procAgglomeratorPtr_
|
||||
(
|
||||
(
|
||||
|
||||
@ -73,10 +73,10 @@ protected:
|
||||
//- Number of cells in coarsest level
|
||||
const label nCellsInCoarsestLevel_;
|
||||
|
||||
autoPtr<GAMGProcAgglomeration> procAgglomeratorPtr_;
|
||||
|
||||
//- Cached mesh interfaces
|
||||
lduInterfacePtrsList meshInterfaces_;
|
||||
const lduInterfacePtrsList meshInterfaces_;
|
||||
|
||||
autoPtr<GAMGProcAgglomeration> procAgglomeratorPtr_;
|
||||
|
||||
//- The number of cells in each level
|
||||
labelList nCells_;
|
||||
|
||||
@ -52,9 +52,6 @@ Foam::dummyAgglomeration::dummyAgglomeration
|
||||
GAMGAgglomeration(mesh, controlDict),
|
||||
nLevels_(readLabel(controlDict.lookup("nLevels")))
|
||||
{
|
||||
// Get the finest-level interfaces from the mesh
|
||||
meshInterfaces_ = mesh.interfaces();
|
||||
|
||||
const label nCoarseCells = mesh.lduAddr().size();
|
||||
|
||||
for
|
||||
|
||||
@ -204,9 +204,6 @@ void Foam::pairGAMGAgglomeration::agglomerate
|
||||
const scalarField& faceWeights
|
||||
)
|
||||
{
|
||||
// Get the finest-level interfaces from the mesh
|
||||
meshInterfaces_ = mesh.interfaces();
|
||||
|
||||
// Start geometric agglomeration from the given faceWeights
|
||||
scalarField* faceWeightsPtr = const_cast<scalarField*>(&faceWeights);
|
||||
|
||||
|
||||
@ -57,10 +57,6 @@ Foam::MGridGenGAMGAgglomeration::MGridGenGAMGAgglomeration
|
||||
label minSize(readLabel(controlDict.lookup("minSize")));
|
||||
label maxSize(readLabel(controlDict.lookup("maxSize")));
|
||||
|
||||
|
||||
// Get the finest-level interfaces from the mesh
|
||||
meshInterfaces_(fvMesh_.boundary().interfaces());
|
||||
|
||||
// Start geometric agglomeration from the cell volumes and areas of the mesh
|
||||
scalarField* VPtr = const_cast<scalarField*>(&fvMesh_.cellVolumes());
|
||||
vectorField* SfPtr = const_cast<vectorField*>(&fvMesh_.faceAreas());
|
||||
|
||||
Reference in New Issue
Block a user