deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
|
#include <deal.II/lac/solver_idr.h>
Public Member Functions | |
TmpVectors (const unsigned int s_param, VectorMemory< VectorType > &vmem) | |
~TmpVectors ()=default | |
VectorType & | operator[] (const unsigned int i) const |
VectorType & | operator() (const unsigned int i, const VectorType &temp) |
Private Attributes | |
VectorMemory< VectorType > & | mem |
std::vector< typename VectorMemory< VectorType >::Pointer > | data |
Class to hold temporary vectors whose size depends on the solver parameter s.
Definition at line 53 of file solver_idr.h.
internal::SolverIDRImplementation::TmpVectors< VectorType >::TmpVectors | ( | const unsigned int | s_param, |
VectorMemory< VectorType > & | vmem | ||
) |
Constructor. Prepares an array of VectorType
of length s_param
.
|
default |
Destructor. Delete all allocated vectors.
VectorType & internal::SolverIDRImplementation::TmpVectors< VectorType >::operator[] | ( | const unsigned int | i | ) | const |
Get vector number i
. If this vector was unused before, an error occurs.
VectorType & internal::SolverIDRImplementation::TmpVectors< VectorType >::operator() | ( | const unsigned int | i, |
const VectorType & | temp | ||
) |
Get vector number i
. Allocate it if necessary.
If a vector must be allocated, temp
is used to reinit it to the proper dimensions.
|
private |
Pool where vectors are obtained from.
Definition at line 86 of file solver_idr.h.
|
private |
Field for storing the vectors.
Definition at line 91 of file solver_idr.h.