Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_MG_LINEAR_SYSTEM2_H_
8 #define INCLUDE_JET_FDM_MG_LINEAR_SYSTEM2_H_
54 size_t maxNumberOfLevels);
69 size_t numberOfLevels,
84 size_t maxNumberOfLevels,
90 #include "detail/fdm_mg_linear_system2-inl.h"
92 #endif // INCLUDE_JET_FDM_MG_LINEAR_SYSTEM2_H_
Multigrid-syle 2-D linear system.
Definition: fdm_mg_linear_system2.h:23
void resizeWithCoarsest(const Size2 &coarsestResolution, size_t numberOfLevels)
Resizes the system with the coarsest resolution and number of levels.
static void restrict(const FdmVector2 &finer, FdmVector2 *coarser)
Restricts given finer grid to the coarser grid.
void resizeWithFinest(const Size2 &finestResolution, size_t maxNumberOfLevels)
Resizes the system with the finest resolution and max number of levels.
size_t numberOfLevels() const
Returns the number of multigrid levels.
static void correct(const FdmVector2 &coarser, FdmVector2 *finer)
Corrects given coarser grid to the finer grid.
2-D array class.
Definition: array2.h:42
Definition: advection_solver2.h:18
MgMatrix< FdmBlas2 > FdmMgMatrix2
Multigrid-style 2-D FDM matrix.
Definition: fdm_mg_linear_system2.h:17
static void resizeArrayWithCoarsest(const Size2 &coarsestResolution, size_t numberOfLevels, std::vector< Array2< T >> *levels)
Resizes the array with the coarsest resolution and number of levels.
FdmMgMatrix2 A
The system matrix.
Definition: fdm_mg_linear_system2.h:25
Multigrid utilities for 2-D FDM system.
Definition: fdm_mg_linear_system2.h:58
2-D size class.
Definition: size2.h:19
FdmMgVector2 b
The RHS vector.
Definition: fdm_mg_linear_system2.h:31
static void resizeArrayWithFinest(const Size2 &finestResolution, size_t maxNumberOfLevels, std::vector< Array2< T >> *levels)
Resizes the array with the finest resolution and max number of levels.
void clear()
Clears the linear system.
MgVector< FdmBlas2 > FdmMgVector2
Multigrid-style 2-D FDM vector.
Definition: fdm_mg_linear_system2.h:20
FdmMgVector2 x
The solution vector.
Definition: fdm_mg_linear_system2.h:28