Base class that makes the necessary mpi calls, derived classes only have to implement restrictPatches() method.
More...
#include <MPIRestrictor.h>
template<int D>
class ThunderEgg::GMG::MPIRestrictor< D >
Base class that makes the necessary mpi calls, derived classes only have to implement restrictPatches() method.
◆ MPIRestrictor()
Create new LinearRestrictor object.
- Parameters
-
ilc | the communcation package for the two levels. |
◆ restrict()
◆ restrictPatches()
Restrict values into coarse vector.
The idea behind this is that this function will be called twice. Once to fill in the ghost values, and once to fill in the local values. The ghost values will be filled first and the local values will be fill while MPI communication is happening.
- Parameters
-
patches | pairs where the first value is the index in the coarse vector and the second value is a reference to the PatchInfo object |
finer_vector | the finer vector |
coarser_vector | the coarser vector |
Implemented in ThunderEgg::GMG::LinearRestrictor< D >.
The documentation for this class was generated from the following file: