Re: [deal.II] Simple Query about an example in the code gallary

27 views
Skip to first unread message

Wolfgang Bangerth

unread,
Apr 26, 2023, 1:18:59 PM4/26/23
to dea...@googlegroups.com
On 4/26/23 03:34, Abbas wrote:
> Why is it that in step 40 the locally relevant solution is initialised with
> both locally_owned_dofs and locally_relevant_dofs, while in the
> Distributed_LDG_Method example in the code gallery the locally relevant
> solution is just initialised with just the locally_relevant_dofs only?

The code gallery program uses this function [2/5]:
https://dealii.org/developer/doxygen/deal.II/classTrilinosWrappers_1_1MPI_1_1Vector.html#af74a39fa88174f63767d510416c09e6f
The tutorial, on the other hand, uses [3/5] immediately below.

Both are reasonable. I would gladly accept a patch that switches the use from
[2/5] to [3/5] because that version is clearly more obvious.

Best
W.

--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/


Abbas Ballout

unread,
Apr 28, 2023, 3:06:18 AM4/28/23
to deal.II User Group
Sorry I deleted this before it had any comments on it.
I thought it would disappear. Won't happen again. 
 
Abbas 
Reply all
Reply to author
Forward
0 new messages