<h3>lac</h3>
<ol>
+ <li> <p> Fixed: <code class="class">FullMatrix</code>::<code
+ class="member">copy_from</code> didn't compile when copying
+ from a sparse matrix. This is now fixed.
+ <br>
+ (Ralf B. Schulz 2002/09/04)
+ </p>
<li> <p> New: The classes <code class="class">FullMatrix</code> and
- <code class="class">PreconditionBlockJacobi</code> have a <code
- class="class">const_iterator</code>.
- <br>
- (GK 2003/07/18)
- </p>
+ <code class="class">PreconditionBlockJacobi</code> have a <code
+ class="class">const_iterator</code>.
+ <br>
+ (GK 2003/07/18)
+ </p>
</ol>
anna_5.exe : anna_5.g.$(OBJEXT) $(libraries)
anna_6.exe : anna_6.g.$(OBJEXT) $(libraries)
geometry_info_1.exe : geometry_info_1.g.$(OBJEXT) $(libraries)
+full_matrix_1.exe : full_matrix_1.g.$(OBJEXT) $(libraries)
data_out_01.exe : data_out_01.g.$(OBJEXT) $(libraries)
data_out_02.exe : data_out_02.g.$(OBJEXT) $(libraries)
data_out_faces_01.exe : data_out_faces_01.g.$(OBJEXT) $(libraries)
tests = anna_1 anna_2 anna_3 anna_4 anna_5 anna_6 \
geometry_info_1 point_inside_1 point_inside_2 \
+ full_matrix_1 \
data_out_01 data_out_02 data_out_faces_01 data_out_faces_02 \
data_out_rotation_01 data_out_rotation_02 data_out_stack_01 \
dof_tools_00a \
--- /dev/null
+//---------------------------- full_matrix_1.cc ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2002, 2003 by the deal.II authors and Anna Schneebeli
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- full_matrix_1.cc ---------------------------
+
+
+// FullMatrix::copy_from could not be compiled if we copied from a
+// sparse matrix. make sure this now works
+
+#include <base/logstream.h>
+#include <lac/sparse_matrix.h>
+#include <lac/full_matrix.h>
+#include <fstream>
+
+
+int main ()
+{
+ std::ofstream logfile("full_matrix_1.output");
+ deallog.attach(logfile);
+ deallog.depth_console(0);
+
+ const unsigned int N = 4;
+ FullMatrix<double> f(N,N);
+
+ SparsityPattern s (N,N,N);
+ for (unsigned int i=0; i<N; ++i)
+ for (unsigned int j=0; j<N; ++j)
+ s.add (i,j);
+ s.compress ();
+
+ SparseMatrix<double> sm(s);
+ for (unsigned int i=0; i<N; ++i)
+ for (unsigned int j=0; j<N; ++j)
+ sm.set (i,j,i*j);
+
+ f.copy_from (sm);
+
+ for (unsigned int i=0; i<N; ++i)
+ for (unsigned int j=0; j<N; ++j)
+ {
+ deallog << i << ' ' << j << ' ' << f(i,j) << std::endl;
+ Assert (f(i,j) == sm(i,j), ExcInternalError());
+ }
+
+ deallog << "OK" << std::endl;
+}