some problems about step37

36 views
Skip to first unread message

imr—hwy

unread,
Jan 27, 2023, 5:07:21 AM1/27/23
to dea...@googlegroups.com

hello everyone!
I am learning about the step37 and want to use matrix free methods in my program. Now I am confused about the two functions` use. compute_diagonal and local_compute_diagnol. I am confused why we need to compute the elements on diagnol. thanks for your reply!


Peter Munch

unread,
Jan 27, 2023, 5:17:53 AM1/27/23
to deal.II User Group
In this tutorial, multigrid is using Chebysev sweeps around a point Jacobi solver as smoother. Latter needs the (inverse) of the diagonal.

Hope this helps.
Peter

imr—hwy

unread,
Jan 30, 2023, 9:37:41 AM1/30/23
to Peter Munch, deal.II User Group

Thanks for your reply. I am still confused about a function——“phi. submit_dof_value( diagonal[i],i)”.Can I understand like that I make the i–th point's value equal to diagonal[i].For example, if diagonal[i]=1,the solution vector[i] =1. Thanks a lot!!!

发件人:Peter Munch <peterr...@gmail.com>
日期:2023年1月27日 18:17
主题:[deal.II] Re: some problems about step37
收件人:"deal.II User Group" <dea...@googlegroups.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 dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/edfcb66b-a851-439c-8c70-62b69c317d2en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages