Defines a pipelined Conjugate Gradient methods.
|
subroutine | pipecg_init (this, n, max_iter, m, rel_tol, abs_tol, monitor) |
| Initialise a pipelined PCG solver.
|
|
subroutine | pipecg_free (this) |
| Deallocate a pipelined PCG solver.
|
|
type(ksp_monitor_t) function | pipecg_solve (this, ax, x, f, n, coef, blst, gs_h, niter) |
| Pipelined PCG solve.
|
|
type(ksp_monitor_t) function, dimension(3) | pipecg_solve_coupled (this, ax, x, y, z, fx, fy, fz, n, coef, blstx, blsty, blstz, gs_h, niter) |
| Pipelined PCG coupled solve.
|
|
◆ pipecg_free()
◆ pipecg_init()
subroutine pipecg::pipecg_init |
( |
class(pipecg_t), intent(inout) |
this, |
|
|
integer, intent(in) |
n, |
|
|
integer, intent(in) |
max_iter, |
|
|
class(pc_t), intent(in), optional, target |
m, |
|
|
real(kind=rp), intent(in), optional |
rel_tol, |
|
|
real(kind=rp), intent(in), optional |
abs_tol, |
|
|
logical, intent(in), optional |
monitor |
|
) |
| |
◆ pipecg_solve()
type(ksp_monitor_t) function pipecg::pipecg_solve |
( |
class(pipecg_t), intent(inout) |
this, |
|
|
class(ax_t), intent(in) |
ax, |
|
|
type(field_t), intent(inout) |
x, |
|
|
real(kind=rp), dimension(n), intent(in) |
f, |
|
|
integer, intent(in) |
n, |
|
|
type(coef_t), intent(inout) |
coef, |
|
|
type(bc_list_t), intent(inout) |
blst, |
|
|
type(gs_t), intent(inout) |
gs_h, |
|
|
integer, intent(in), optional |
niter |
|
) |
| |
|
private |
◆ pipecg_solve_coupled()
type(ksp_monitor_t) function, dimension(3) pipecg::pipecg_solve_coupled |
( |
class(pipecg_t), intent(inout) |
this, |
|
|
class(ax_t), intent(in) |
ax, |
|
|
type(field_t), intent(inout) |
x, |
|
|
type(field_t), intent(inout) |
y, |
|
|
type(field_t), intent(inout) |
z, |
|
|
real(kind=rp), dimension(n), intent(in) |
fx, |
|
|
real(kind=rp), dimension(n), intent(in) |
fy, |
|
|
real(kind=rp), dimension(n), intent(in) |
fz, |
|
|
integer, intent(in) |
n, |
|
|
type(coef_t), intent(inout) |
coef, |
|
|
type(bc_list_t), intent(inout) |
blstx, |
|
|
type(bc_list_t), intent(inout) |
blsty, |
|
|
type(bc_list_t), intent(inout) |
blstz, |
|
|
type(gs_t), intent(inout) |
gs_h, |
|
|
integer, intent(in), optional |
niter |
|
) |
| |
|
private |
◆ pipecg_p_space