<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue Mar 9, 1999
+Last modified: Tue Mar 23, 1999
</p>
</body>
</html>
+
<hr>
<p>
-<a href="../index.html">Back to the tutorial index</a>
+ <a href="../index.html">Back to the tutorial index</a>
</p>
<hr>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Tue 9 Mar 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>
class Laplace
{
- Triangulation<2> tr;
- DoFHandler<2> dof;
+ Triangulation<2&rt; tr;
+ DoFHandler<2&rt; dof;
- dSMatrixStruct matrix_structure;
+ SparseMatrixStruct matrix_structure;
LapMatrix A;
ConstraintMatrix hanging_nodes;
-<code>
+</code>
</pre>
<p>
These few lines define several important elements: The triangulation <code>tr</code>, i.e. the grid, and a handler for the degrees
</pre>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
-<p>
+
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
-</p>
+
<p>
-Last modified: Fri Feb 12, 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>
}
</code></pre>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Wed 6 Jan 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
SolverControl control(1000, 1.e-10);
- SolverCG<AdvMatrix, dVector> solver(control, mem);
+ SolverCG<AdvMatrix, Vector<double&rt; &rt; solver(control, mem);
solver.solve(A,u,f);
</code></pre>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Fri Feb 12, 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>
<head>
<title>The Laplace Problem</title>
<link href="../dealtut.css" rel="StyleSheet" title="DEAL Tutorial">
-i <meta name="author" content="Jan Schrage <schrage@gaia.iwr.uni-heidelberg.de
->">
+ <meta name="author" content="Jan Schrage <schrage@gaia.iwr.uni-heidelberg.de>">
<meta name="keywords" content="DEAL,DEAL tutorial">
</head>
<body lang="en">
<h1>The Source Code for the Solution of the Laplace Problem</h1>
+<p>
You can have a look at the complete source code for the solution of the
Laplace problem by following the links below:
+</p>
<ul>
-<li><a href="code/main.cc">main.cc</a> containing the main program which
- sets some parameters and starts the solution process.
+<li><p><a href="code/main.cc">main.cc</a> containing the main program which
+ sets some parameters and starts the solution process.</p>
</li>
-<li><a href="code/laplace.h">laplace.h</a> and
+<li><p><a href="code/laplace.h">laplace.h</a> and
<a href="code/laplace.cc">laplace.cc</a> which define the class
- <code>Laplace</code> that assembles the laplace problem.
+ <code>Laplace</code> that assembles the laplace problem.</p>
</li>
-<li><a href="code/functions.h">functions.h</a> and
+<li><p><a href="code/functions.h">functions.h</a> and
<a href="func.cc">func.cc</a> which define the function that sets
- the boundary conditions.
+ the boundary conditions.</p>
</li>
-<li><a href="code/Makefile">Makefile</a>. Last but not least. You will
+<li><p><a href="code/Makefile">Makefile</a>. Last but not least. You will
probably need to edit the variable <code>root</code> defined at the
top of the Makefile. This defines the location of your
- <acronym>DEAL</acronym> directory.
+ <acronym>DEAL</acronym> directory.</p>
</li>
</ul>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address>
<a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Mon 8 Mar 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Mon Feb 15, 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>
</p>
<pre>
<code>
-Laplace::Laplace(Function<2>& solution)
+Laplace::Laplace(Function<2&rt;& solution)
{
tr.create_hypercube(-1.,1.);
</code>
</pre>
<hr>
-<p>
-<a href="../index.html">Back to the tutorial index</a>
-</p>
+
+<table>
+<tr>
+ <td>
+ <a href="index.html">Back to this chapter's index</a>
+ </td>
+ <td>
+ <a href="../index.html">Back to the tutorial index</a>
+ </td>
+</tr>
+</table>
+
<hr>
<address><a href="mailto:schrage@gaia.iwr.uni-heidelberg.de">Jan Schrage</a></address>
<p>
-Last modified: Fri Feb 12, 1999
+Last modified: Tue Mar 23 1999
</p>
</body>
</html>