mirror of
https://github.com/sfilippone/amg4psblas.git
synced 2026-10-19 04:12:11 +00:00
mld2p4-2:
docs/html/node18.html docs/html/node26.html docs/mld2p4-2.0-guide.pdf docs/src/userinterface.tex Doc fixes for precset
This commit is contained in:
+22
-11
@@ -72,23 +72,34 @@ according to the preconditioner type chosen by the user.
|
||||
\subsection{Subroutine mld\_precset\label{sec:precset}}
|
||||
|
||||
\begin{center}
|
||||
\verb|mld_precset(p,what,val,info)|\\
|
||||
\verb|p%set(what,val,info [,ilev])|\\
|
||||
\verb|mld_precset(p,smoother,info)|\\
|
||||
\verb|p%set(smoother,info [,ilev])|\\
|
||||
\verb|mld_precset(p,solver,info)|\\
|
||||
\verb|p%set(solver,info [,ilev])|
|
||||
\verb|call mld_precset(p,what,val,info)|
|
||||
\end{center}
|
||||
|
||||
\noindent
|
||||
This routine sets the parameters defining the preconditioner. More
|
||||
precisely, the parameter identified by \verb|what| is assigned the value
|
||||
contained in \verb|val|. The routine may also be invoked as a method
|
||||
of the preconditioner object; in this case it is also possible to
|
||||
specify an optional \verb|ilev| argument that restricts the effect of
|
||||
contained in \verb|val|.
|
||||
|
||||
The routine may also be invoked as a method
|
||||
of the preconditioner object as in the following:
|
||||
\begin{center}
|
||||
\verb|call p%set(what,val,info [,ilev])|\\
|
||||
\end{center}
|
||||
In this case it is also possible to specify an optional \verb|ilev|
|
||||
argument that restricts the effect of
|
||||
the call to the specified level.
|
||||
The alternative forms of this routine are designed to allow
|
||||
extensions of the library.
|
||||
|
||||
Finally, if the user has developed a new type of smoother and/or
|
||||
solver by extending one of the base MLD2P4 types, and has declared a
|
||||
variable of the new type in the main program, it is possible to pass
|
||||
the new smoother/solver variable to the setup routine as follows:
|
||||
\begin{center}
|
||||
\verb|call p%set(smoother,info [,ilev])|\\
|
||||
\verb|call p%set(solver,info [,ilev])|
|
||||
\end{center}
|
||||
In this way, the variable will act as a \emph{mold} to which the
|
||||
preconditioner will conform, even though the MLD2P4 library is not
|
||||
modified, and thus has no direct knowledge about the new type.
|
||||
|
||||
{\vskip2\baselineskip\noindent\large\bfseries Arguments}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user