You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
233 lines
10 KiB
HTML
233 lines
10 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
<html >
|
|
<head><title>User Interface</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<meta name="generator" content="TeX4ht (https://tug.org/tex4ht/)">
|
|
<meta name="originator" content="TeX4ht (https://tug.org/tex4ht/)">
|
|
<!-- html,3 -->
|
|
<meta name="src" content="userhtml.tex">
|
|
<link rel="stylesheet" type="text/css" href="userhtml.css">
|
|
</head><body
|
|
>
|
|
<!--l. 1--><div class="crosslinks"><p class="noindent"><span
|
|
class="cmr-12">[</span><a
|
|
href="userhtmlse6.html" ><span
|
|
class="cmr-12">next</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtmlse4.html" ><span
|
|
class="cmr-12">prev</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtmlse4.html#tailuserhtmlse4.html" ><span
|
|
class="cmr-12">prev-tail</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="#tailuserhtmlse5.html"><span
|
|
class="cmr-12">tail</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtml.html#userhtmlse5.html" ><span
|
|
class="cmr-12">up</span></a><span
|
|
class="cmr-12">] </span></p></div>
|
|
<h3 class="sectionHead"><span class="titlemark"><span
|
|
class="cmr-12">5 </span></span> <a
|
|
id="x17-160005"></a><span
|
|
class="cmr-12">User Interface</span></h3>
|
|
<!--l. 5--><p class="noindent" ><span
|
|
class="cmr-12">The basic user interface of AMG4PBLAS consists of eight methods. The six methods</span>
|
|
<code class="lstinline"><span style="color:#000000">init</span></code><span
|
|
class="cmr-12">, </span><code class="lstinline"><span style="color:#000000">set</span></code><span
|
|
class="cmr-12">, </span><code class="lstinline"><span style="color:#000000">build</span></code><span
|
|
class="cmr-12">, </span><code class="lstinline"><span style="color:#000000">hierarchy_build</span></code><span
|
|
class="cmr-12">, </span><code class="lstinline"><span style="color:#000000">smoothers_build</span></code> <span
|
|
class="cmr-12">and </span><code class="lstinline"><span style="color:#000000">apply</span></code> <span
|
|
class="cmr-12">encapsulate all the</span>
|
|
<span
|
|
class="cmr-12">functionalities for the setup and the application of any multilevel and one-level</span>
|
|
<span
|
|
class="cmr-12">preconditioner implemented in the package. The method </span><code class="lstinline"><span style="color:#000000">free</span></code> <span
|
|
class="cmr-12">deallocates the</span>
|
|
<span
|
|
class="cmr-12">preconditioner data structure, while </span><code class="lstinline"><span style="color:#000000">descr</span></code> <span
|
|
class="cmr-12">prints a description of the preconditioner</span>
|
|
<span
|
|
class="cmr-12">setup by the user. For backward compatibility, methods are also accessible as</span>
|
|
<span
|
|
class="cmr-12">stand-alone subroutines.</span>
|
|
<!--l. 16--><p class="indent" > <span
|
|
class="cmr-12">For each method, the same user interface is overloaded with respect to the</span>
|
|
<span
|
|
class="cmr-12">real/complex and single/double precision data; arguments with appropriate data types</span>
|
|
<span
|
|
class="cmr-12">must be passed to the method, i.e.,</span>
|
|
<ul class="itemize1">
|
|
<li class="itemize">
|
|
<!--l. 20--><p class="noindent" ><span
|
|
class="cmr-12">the sparse matrix data structure, containing the matrix to be preconditioned,</span>
|
|
<span
|
|
class="cmr-12">must be of type </span><span class="obeylines-h"><code class="verb">psb_</code></span><span
|
|
class="cmti-12">x</span><span class="obeylines-h"><code class="verb">spmat_type</code></span> <span
|
|
class="cmr-12">with </span><span
|
|
class="cmti-12">x </span><span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">s</code></span> <span
|
|
class="cmr-12">for real single precision, </span><span
|
|
class="cmti-12">x</span>
|
|
<span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">d</code></span> <span
|
|
class="cmr-12">for real double precision, </span><span
|
|
class="cmti-12">x </span><span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">c</code></span> <span
|
|
class="cmr-12">for complex single precision, </span><span
|
|
class="cmti-12">x </span><span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">z</code></span> <span
|
|
class="cmr-12">for</span>
|
|
<span
|
|
class="cmr-12">complex double precision;</span>
|
|
</li>
|
|
<li class="itemize">
|
|
<!--l. 25--><p class="noindent" ><span
|
|
class="cmr-12">the preconditioner data structure must be of type </span><span class="obeylines-h"><code class="verb">amg_</code></span><span
|
|
class="cmti-12">x</span><span class="obeylines-h"><code class="verb">prec_type</code></span><span
|
|
class="cmr-12">, with </span><span
|
|
class="cmti-12">x</span>
|
|
<span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">s</code></span><span
|
|
class="cmr-12">, </span><span class="obeylines-h"><code class="verb">d</code></span><span
|
|
class="cmr-12">, </span><span class="obeylines-h"><code class="verb">c</code></span><span
|
|
class="cmr-12">, </span><span class="obeylines-h"><code class="verb">z</code></span><span
|
|
class="cmr-12">, according to the sparse matrix data structure;</span>
|
|
</li>
|
|
<li class="itemize">
|
|
<!--l. 29--><p class="noindent" ><span
|
|
class="cmr-12">the arrays containing the vectors </span><span
|
|
class="cmmi-12">v </span><span
|
|
class="cmr-12">and </span><span
|
|
class="cmmi-12">w </span><span
|
|
class="cmr-12">involved in the preconditioner</span>
|
|
<span
|
|
class="cmr-12">application </span><span
|
|
class="cmmi-12">w </span><span
|
|
class="cmr-12">= </span><span
|
|
class="cmmi-12">B</span><sup><span
|
|
class="cmsy-8">-</span><span
|
|
class="cmr-8">1</span></sup><span
|
|
class="cmmi-12">v </span><span
|
|
class="cmr-12">must be of type </span><span class="obeylines-h"><code class="verb">psb_</code></span><span
|
|
class="cmti-12">x</span><span class="obeylines-h"><code class="verb">vect_type</code></span> <span
|
|
class="cmr-12">with </span><span
|
|
class="cmti-12">x </span><span
|
|
class="cmr-12">= </span><span class="obeylines-h"><code class="verb">s</code></span><span
|
|
class="cmr-12">, </span><span class="obeylines-h"><code class="verb">d</code></span><span
|
|
class="cmr-12">, </span><span class="obeylines-h"><code class="verb">c</code></span><span
|
|
class="cmr-12">,</span>
|
|
<span class="obeylines-h"><code class="verb">z</code></span><span
|
|
class="cmr-12">, in a manner completely analogous to the sparse matrix type;</span>
|
|
</li>
|
|
<li class="itemize">
|
|
<!--l. 34--><p class="noindent" ><span
|
|
class="cmr-12">real parameters defining the preconditioner must be declared according to</span>
|
|
<span
|
|
class="cmr-12">the precision of the sparse matrix and preconditioner data structures (see</span>
|
|
<span
|
|
class="cmr-12">Section</span><span
|
|
class="cmr-12"> </span><a
|
|
href="userhtmlsu9.html#x19-180005.2"><span
|
|
class="cmr-12">5.2</span><!--tex4ht:ref: sec:precset --></a><span
|
|
class="cmr-12">).</span></li></ul>
|
|
<!--l. 38--><p class="noindent" ><span
|
|
class="cmr-12">A description of each method is given in the remainder of this section.</span>
|
|
|
|
|
|
|
|
<div class="subsectionTOCS">
|
|
<span class="subsectionToc" ><span
|
|
class="cmr-12">5.1 </span><a
|
|
href="userhtmlsu8.html#x18-170005.1"><span
|
|
class="cmr-12">Method init</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.2 </span><a
|
|
href="userhtmlsu9.html#x19-180005.2"><span
|
|
class="cmr-12">Method set</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.3 </span><a
|
|
href="userhtmlsu10.html#x20-190005.3"><span
|
|
class="cmr-12">Method hierarchy</span><span
|
|
class="cmr-12">_build</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.4 </span><a
|
|
href="userhtmlsu11.html#x21-200005.4"><span
|
|
class="cmr-12">Method smoothers</span><span
|
|
class="cmr-12">_build</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.5 </span><a
|
|
href="userhtmlsu12.html#x22-210005.5"><span
|
|
class="cmr-12">Method build</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.6 </span><a
|
|
href="userhtmlsu13.html#x23-220005.6"><span
|
|
class="cmr-12">Method apply</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.7 </span><a
|
|
href="userhtmlsu14.html#x24-230005.7"><span
|
|
class="cmr-12">Method free</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.8 </span><a
|
|
href="userhtmlsu15.html#x25-240005.8"><span
|
|
class="cmr-12">Method descr</span></a></span>
|
|
<br /> <span class="subsectionToc" ><span
|
|
class="cmr-12">5.9 </span><a
|
|
href="userhtmlsu16.html#x26-250005.9"><span
|
|
class="cmr-12">Auxiliary Methods</span></a></span>
|
|
<br /> <span class="subsubsectionToc" ><span
|
|
class="cmr-12">5.9.1 </span><a
|
|
href="userhtmlsu16.html#x26-260005.9.1"><span
|
|
class="cmr-12">Method: dump</span></a></span>
|
|
<br /> <span class="subsubsectionToc" ><span
|
|
class="cmr-12">5.9.2 </span><a
|
|
href="userhtmlsu16.html#x26-270005.9.2"><span
|
|
class="cmr-12">Method: clone</span></a></span>
|
|
<br /> <span class="subsubsectionToc" ><span
|
|
class="cmr-12">5.9.3 </span><a
|
|
href="userhtmlsu16.html#x26-280005.9.3"><span
|
|
class="cmr-12">Method: sizeof</span></a></span>
|
|
<br /> <span class="subsubsectionToc" ><span
|
|
class="cmr-12">5.9.4 </span><a
|
|
href="userhtmlsu16.html#x26-290005.9.4"><span
|
|
class="cmr-12">Method: allocate</span><span
|
|
class="cmr-12">_wrk</span></a></span>
|
|
<br /> <span class="subsubsectionToc" ><span
|
|
class="cmr-12">5.9.5 </span><a
|
|
href="userhtmlsu16.html#x26-300005.9.5"><span
|
|
class="cmr-12">Method: free</span><span
|
|
class="cmr-12">_wrk</span></a></span>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--l. 4--><div class="crosslinks"><p class="noindent"><span
|
|
class="cmr-12">[</span><a
|
|
href="userhtmlse6.html" ><span
|
|
class="cmr-12">next</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtmlse4.html" ><span
|
|
class="cmr-12">prev</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtmlse4.html#tailuserhtmlse4.html" ><span
|
|
class="cmr-12">prev-tail</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtmlse5.html" ><span
|
|
class="cmr-12">front</span></a><span
|
|
class="cmr-12">] [</span><a
|
|
href="userhtml.html#userhtmlse5.html" ><span
|
|
class="cmr-12">up</span></a><span
|
|
class="cmr-12">] </span></p></div>
|
|
<!--l. 4--><p class="indent" > <a
|
|
id="tailuserhtmlse5.html"></a>
|
|
</body></html>
|