]> https://gitweb.dealii.org/ - dealii.git/commit
Fix a problem with copy_from and SparseMatrix. From the mailing list:
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Sep 2003 20:22:35 +0000 (20:22 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 4 Sep 2003 20:22:35 +0000 (20:22 +0000)
commit0b109caf1886780f4430c15b503415a64e92ab31
treec6912020aa5a468954d4dc20cf7d653a2b7cb597
parentfddaca33dbf98b657c16f07468095ae1ec280427
Fix a problem with copy_from and SparseMatrix. From the mailing list:

minor bug in full_matrix.h

From:
"Ralf B. Schulz" <r.schulz@dkfz-heidelberg.de>  (DKFZ)

To:
dealii@dealii.org

Date:
Mon Aug 18 07:15:28 2003

FullMatrix<>::copy_from(MATRIX &) fails for MATRIX = SparseMatrix as there is
no default constructor for the const_iterator, and probably also no copy
constructor.

Attached is a small patch for full_matrix.h that solves the problem by putting
the declaration of the iterator into the loop initializer.

Best,
Ralf

git-svn-id: https://svn.dealii.org/trunk@7958 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/lac/include/lac/full_matrix.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.