On 8/22/22 10:08, Simon Wiesheier wrote:
As stated, what I tried is to use the operator= according to
LAPACKFullMatrix<double> new_matrix = my_system_matrix .
However, there is an error message
"error: conversion from ‘dealii::SparseMatrix<double>’ to non-scalar
type ‘dealii::LAPACKFullMatrix<double>’ requested
LAPACKFullMatrix<double> new_matrix = tangent_matrix"
There doesn't appear a copy-constructor from FullMatrix (which is what
the compiler is looking for here), but there is a copy operator. Just write
LAPACKFullMatrix<double> new_matrix;
new_matrix = tangent_matrix
Even better, of course, if you wrote a patch to add the copy constructor!
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
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/d2afdc20-c9a1-988b-2828-6e01491bef7b%40colostate.edu.