On 10/31/22 09:16, ztdep...@gmail.com wrote:
**

I want to extract the matrix A and rhs in crs format , and pass them to my own solver. Could you pleae give me some advices.

The SparseMatrix class has various print functions that output the matrix in a variety of ways. You can use those to obtain a representation of the matrix that you can then read back in elsewhere.

Note that there is no "crs format" in the sense that there would be an agreed-upon file format. CRS is a data structure, and it can be written into files in many different ways. So if you're expecting a specific file format, you have to state which one you mean and how it is defined.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           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 dealii+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/9fb3e03b-f229-0b07-49ec-3fbe0292637e%40colostate.edu.

Reply via email to