template<class Vector, class
Norm>
class Kaskade::SDCUtilMaxNorm< Vector, Norm >
Definition at line 371 of file util.hh.
template<class Vector , class
Norm >
Vector::value_type Kaskade::SDCUtil< Vector, Norm >::sdcContractionFactor |
( |
std::vector< Vector > const & |
yPrev, |
|
|
std::vector< Vector > const & |
yCurrent, |
|
|
std::vector< Vector > const & |
yNext, |
|
|
Norm & |
norm |
|
) |
| |
|
inherited |
This function computes an estimate of the SDC contraction factor ( \( \rho \)) given three consecutive iterations of \( y \) and depends on the given norm. The estimate of \( \rho \) is given by:
\begin{eqnarray*}
\rho & = & \frac{\|y^{[j+1]} - y^{[j]}\|}{\|y^{[j]} - y^{[j-1]}\| + \|y^{[j+1]} - y^{[j]}\|}
\end{eqnarray*}
- Parameters
-
[in] | yPrev | a Vector denoting previous iterate of \( y \). |
[in] | yCurrent | a Vector denoting current iterate of \( y \). |
[in] | yNext | a Vector denoting next iterate of \( y \) as obtained from SDC iteration step. |
[in] | norm | an object of abstract base class type Norm, where we can provide the specific norm we consider for a problem. |
- Returns
- \( \rho \) an estimate of the SDC contraction factor. Return type is Vector::field_type
Definition at line 466 of file util.hh.
Referenced by Kaskade::SDCUtilOneNorm< Vector, Norm >::computeAlphaVec().