mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-16 19:02:10 +00:00
mld2p4-2:
Docs updates.
This commit is contained in:
@@ -41,9 +41,9 @@ The following steps are required:
|
||||
is multi-level, then two steps must be performed, as specified next.
|
||||
\begin{enumerate}
|
||||
\item[4.1] \emph{Build the aggregation hierarchy for a given matrix.} This is
|
||||
performed by the routine \verb|hierarchy_bld|.
|
||||
performed by the routine \verb|hierarchy_build|.
|
||||
\item[4.2] \emph{Build the preconditioner for a given matrix.} This is performed
|
||||
by the routine \verb|smoothers_bld|.
|
||||
by the routine \verb|smoothers_build|.
|
||||
\end{enumerate}
|
||||
If the selected preconditioner is one-level, it is built in a single step,
|
||||
performed by the routine \verb|bld|.
|
||||
@@ -118,7 +118,7 @@ on parallel computers.
|
||||
The code reported in Figure~\ref{fig:ex1} shows how to set and apply the default
|
||||
multi-level preconditioner available in the real double precision version
|
||||
of MLD2P4 (see Table~\ref{tab:precinit}). This preconditioner is chosen
|
||||
by simply specifying \verb|'ML'| as second argument of \verb|P%init|
|
||||
by simply specifying \verb|'ML'| as the second argument of \verb|P%init|
|
||||
(a call to \verb|P%set| is not needed) and is applied with the CG
|
||||
solver provided by PSBLAS (the matrix of the system to be solved is
|
||||
assumed to be positive definite). As previously observed, the modules
|
||||
@@ -179,8 +179,8 @@ the corresponding codes are available in \verb|examples/fileread/|.
|
||||
call P%init(P,'ML',info)
|
||||
!
|
||||
! build the preconditioner
|
||||
call P%hierarchy_bld(A,desc_A,P,info)
|
||||
call P%smoothers_bld(A,desc_A,P,info)
|
||||
call P%hierarchy_build(A,desc_A,P,info)
|
||||
call P%smoothers_build(A,desc_A,P,info)
|
||||
|
||||
!
|
||||
! set the solver parameters and the initial guess
|
||||
@@ -264,8 +264,8 @@ boundary conditions are also available in the directory \verb|examples/pdegen|.
|
||||
call_P%set(P,'SMOOTHER_TYPE','BJAC',info)
|
||||
call P%set(P,'COARSE_SOLVE','BJAC',info)
|
||||
call P%set(P,'COARSE_SWEEPS',8,info)
|
||||
call P%hierarchy_bld(A,desc_A,P,info)
|
||||
call P%smoothers_bld(A,desc_A,P,info)
|
||||
call P%hierarchy_build(A,desc_A,P,info)
|
||||
call P%smoothers_build(A,desc_A,P,info)
|
||||
... ...
|
||||
\end{verbatim}
|
||||
}
|
||||
@@ -291,8 +291,8 @@ boundary conditions are also available in the directory \verb|examples/pdegen|.
|
||||
call P%set('SMOOTHER_SWEEPS',2,info,pos='POST')
|
||||
call P%set('COARSE_SOLVE','MUMPS',info)
|
||||
call P%set('COARSE_MAT','DIST',info)
|
||||
call P%hierarchy_bld(A,desc_A,P,info)
|
||||
call P%smoothers_bld(A,desc_A,P,info)
|
||||
call P%hierarchy_build(A,desc_A,P,info)
|
||||
call P%smoothers_build(A,desc_A,P,info)
|
||||
... ...
|
||||
! solve Ax=b with preconditioned CG
|
||||
call psb_krylov('BICGSTAB',A,P,b,x,tol,desc_A,info)
|
||||
|
||||
Reference in New Issue
Block a user