Jet
v1.3.3
|
Multigrid-syle 2-D linear system. More...
#include <jet/fdm_mg_linear_system2.h>
Public Member Functions | |
void | clear () |
Clears the linear system. More... | |
size_t | numberOfLevels () const |
Returns the number of multigrid levels. More... | |
void | resizeWithCoarsest (const Size2 &coarsestResolution, size_t numberOfLevels) |
Resizes the system with the coarsest resolution and number of levels. More... | |
void | resizeWithFinest (const Size2 &finestResolution, size_t maxNumberOfLevels) |
Resizes the system with the finest resolution and max number of levels. More... | |
Public Attributes | |
FdmMgMatrix2 | A |
The system matrix. More... | |
FdmMgVector2 | x |
The solution vector. More... | |
FdmMgVector2 | b |
The RHS vector. More... | |
Multigrid-syle 2-D linear system.
void jet::FdmMgLinearSystem2::clear | ( | ) |
Clears the linear system.
size_t jet::FdmMgLinearSystem2::numberOfLevels | ( | ) | const |
Returns the number of multigrid levels.
void jet::FdmMgLinearSystem2::resizeWithCoarsest | ( | const Size2 & | coarsestResolution, |
size_t | numberOfLevels | ||
) |
Resizes the system with the coarsest resolution and number of levels.
void jet::FdmMgLinearSystem2::resizeWithFinest | ( | const Size2 & | finestResolution, |
size_t | maxNumberOfLevels | ||
) |
Resizes the system with the finest resolution and max number of levels.
This function resizes the system with multiple levels until the resolution is divisible with 2^(level-1).
finestResolution | - The finest grid resolution. |
maxNumberOfLevels | - Maximum number of multigrid levels. |
FdmMgMatrix2 jet::FdmMgLinearSystem2::A |
The system matrix.
FdmMgVector2 jet::FdmMgLinearSystem2::b |
The RHS vector.
FdmMgVector2 jet::FdmMgLinearSystem2::x |
The solution vector.