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