Skip to content

Commit 5a3a824

Browse files
committed
notes on how agglomeration works in MLMG
1 parent e6dfad9 commit 5a3a824

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Docs/sphinx_documentation/source/LinearSolvers.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -380,17 +380,21 @@ Available choices are
380380
- :cpp:`MLMG::BottomSolver::petsc`: Currently for cell-centered only.
381381

382382
- :cpp:`LPInfo::setAgglomeration(bool)` (by default true) can be used
383-
continue to coarsen the multigrid by copying what would have been the
384-
bottom solver to a new :cpp:`MultiFab` with a new :cpp:`BoxArray` with
385-
fewer, larger grids, to allow for additional coarsening.
383+
to copy the current level of multigrid data to fewer, larger
384+
boxes. Two advantages of using this option is that the bottom solver will become
385+
smaller, and communication overhead is reduced.
386+
387+
- :cpp:`LPInfo::setAgglomerationGridSize(int)` (by default 8 in 1D, 16 in 2D, 32 in 3D)
388+
if agglomeration is used, when the average box size becomes smaller than agg_grid_size^{DIM},
389+
boxes will agglomerate until this is no longer the case. Note that this action is
390+
recursive and can happen at several different levels in the multigrid hierarchy.
386391

387392
- :cpp:`LPInfo::setConsolidation(bool)` (by default true) can be used
388393
continue to transfer a multigrid problem to fewer MPI ranks.
389394
There are more setting such as :cpp:`LPInfo::setConsolidationGridSize(int)`,
390395
:cpp:`LPInfo::setConsolidationRatio(int)`, and
391396
:cpp:`LPInfo::setConsolidationStrategy(int)`, to give control over how this
392-
process works.
393-
397+
process works. If agglomeration is used, consolidation is ignored.
394398

395399
:cpp:`MLMG::setThrowException(bool)` controls whether multigrid failure results
396400
in aborting (default) or throwing an exception, whereby control will return to the calling

0 commit comments

Comments
 (0)