On 12/18/23 04:47, Simon wrote:

Can you think of an elegant solution or must the non-zero values be copied via a loop
over the individual blocks?

This. I don't see a different way of doing things. Though I might just always create both objects and then call distribute_local_to_global() with one or the other matrix object, depending on your run-time flags.

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/10d9211c-5d6e-4798-9e91-842410c8bf5f%40colostate.edu.

Reply via email to