Sorry, it seems to work using *((double(*)[20])residual.begin()).

 

 

From: Michael Lee
Sent: Wednesday, August 18, 2021 7:18 PM
To: deal.II User Group
Subject: [deal.II] How to watch the variable of BlockVector type?

 

I want to check if I have system_rhs assembled correctly. Is there an easy way to watch the contents of this BlockVector during debugging?

 

          BlockVector<double> & system_rhs;

          system_rhs.reinit(dofs_per_block);

 

For normal vectors, I can use *((double(*)[10]) v.begin()), but it does not work for BlockVector. I'm using VS code.

 

Best,

Michael

--
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/9db1415e-812b-4825-8f73-eb7ed3866c17n%40googlegroups.com.

 

--
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/B3897C92-3FC3-4B18-88D2-185E7F2AD4D9%40hxcore.ol.

Reply via email to