Hello everyone,
I am trying to recast a current FullMatrix<double> as a
SparseMatrix<double> in order to add this matrix to another
SparseMatrix<double>.
I have tried something like this:
SparseMatrix<double> Mat_Sparse;
Mat_Sparse.copy_from(Mat_Full);
Mat_Sparse_2.add(1.,Mat_Sparse);
When doing so I receive the following error:
An error occurred in line <195> of file
<dealii-9.1.1/include/deal.II/lac/sparse_matrix.templates.h> in function
dealii::SparseMatrix<Number>&
dealii::SparseMatrix<number>::operator=(double) [with number = double]
The violated condition was:
cols != nullptr
Additional information:
(none)
How should I amend this recasting?
Thank you!
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/63583cc9-55bd-4b13-8689-3afda516192an%40googlegroups.com.