Skip to content
Projects

Iterative solver

The equations of carafe.spatial.iterative, declared on the code that implements them and checked by the tests.

AuxiliarySpacePreconditioner

classsource

Hiptmair and Xu's additive auxiliary-space preconditioner on an edge grid.

preconditioner
B=S−1+G (GTArG)−1GT+P (PTArP)−1PTB = S^{-1} + G\,(G^T A_r G)^{-1} G^T + P\,(P^T A_r P)^{-1} P^T
surrogate
Ar=CTdiag∣κf∣ C+diag∣me∣A_r = C^T\mathrm{diag}|\kappa_f|\, C + \mathrm{diag}|m_e|
interpolation
(Pu)e=ℓe te⋅ui+uj2(P\mathbf u)_e = \ell_e\,\mathbf t_e\cdot\frac{\mathbf u_i + \mathbf u_j}{2}
Assumes
  • SS l1-Jacobi; GG the gradient of the nodes all of whose edges are unknowns; ℓe\ell_e the edge's air length
  • each auxiliary inverse one geometric multigrid V-cycle (linear prolongation, Galerkin, 2 + 2 l1-Jacobi sweeps, LU below 3000 unknowns)
  • BB real symmetric, as COCG needs
References

cocg

functionsource

COCG for a complex symmetric matrix with a symmetric preconditioner.

step
q=Ap,α=ρpTq,x←x+αp,r←r−αqq = A p, \qquad \alpha = \frac{\rho}{p^T q}, \qquad x \leftarrow x + \alpha p, \qquad r \leftarrow r - \alpha q
direction
z=Br,ρ′=rTz,p←z+ρ′ρpz = B r, \qquad \rho' = r^T z, \qquad p \leftarrow z + \frac{\rho'}{\rho} p
stop
∥r∥2∥b∥2≤tolerance\frac{\|r\|_2}{\|b\|_2} \le \text{tolerance}
Assumes
  • AA complex symmetric and BB symmetric: CG with the bilinear xTyx^T y in place of xHyx^H y
References
Built from