FE-Project
Loading...
Searching...
No Matches
scale_gmres Module Reference

Module common / GMRES. More...

Data Types

type  gmres
 Derived type to provide a iterative solver for system of linear equations using GMRES. More...

Functions/Subroutines

subroutine gmres_init (this, n, m, eps, eps0)

Detailed Description

Module common / GMRES.

Description
A module to provide a iterative solver for system of linear equations using generalized minimal residual method (GMRES)
Reference
  • Y. Saad and M.H. Schultz, 1986: GMRES: A generalized minimal residual algorithm for solving nonsymmetric linear systems. SIAM J. Sci. Stat. Comput., 7:856–869
Author
Yuta Kawai, Team SCALE

Function/Subroutine Documentation

◆ gmres_init()

subroutine scale_gmres::gmres_init ( class(gmres), intent(inout) this,
integer, intent(in) n,
integer, intent(in) m,
real(rp), intent(in) eps,
real(rp), intent(in) eps0 )

Definition at line 79 of file scale_gmres.F90.

80
81 implicit none
82 class(GMRES), intent(inout) :: this
83 integer, intent(in) :: N
84 integer, intent(in) :: m
85 real(RP), intent(in) :: eps
86 real(RP), intent(in) :: eps0
87
88 !--------------------------------------
89
90 this%N = n
91 this%m = m
92 this%EPS = eps
93 this%EPS0 = eps0
94
95 allocate( this%v(n,m+1) )
96 allocate( this%hj(m+1) )
97 allocate( this%g(m+1) )
98 allocate( this%r(m+1,m) )
99 allocate( this%co(m), this%si(m) )
100 allocate( this%y(m) )
101
102 return