Thank you, Wolfgang.
I sorted it out, following the hanging node constraint sequence of
instructions.
It seems to work just fine.


*Alberto Salvadori* Dipartimento di Ingegneria Meccanica e Industriale
(DIMI)
 Universita` di Brescia, via Branze 43, 25123 Brescia
 Italy
 tel 030 3715426

e-mail:
 [email protected]
web-page:
 http://m4lab.unibs.it/faculty.html



On Wed, May 5, 2021 at 12:19 AM Wolfgang Bangerth <[email protected]>
wrote:

>
> Alberto,
>
> > Basically, I would like to rephrase The step-11 tutorial program
> > for parallel::shared matrices, as in step 18. If I am not wrong the
> "condense"
> > methods do not apply to MPI::SparseMatrix and I guess I should use the
> methods
> > of the family distribute_local_to_global,
>
> Correct. For matrices that are stored in parallel, after-the-fact
> modification
> is very expensive and the way to deal with constraints is to take care of
> them
> during the copy-to-local phase.
>
> > but I am a bit confused and cannot
> > connect the strategy in step 11
> >
> > mean_value_constraints.add_line(first_boundary_dof);
> > for (unsigned int i = first_boundary_dof + 1; i < dof_handler.n_dofs();
> ++i)
> > if (boundary_dofs[i] == true)
> > mean_value_constraints.add_entry(first_boundary_dof, i, -1);
> >
> > with any distribute_local_to_global.
>
> These lines build a ConstraintMatrix object with a single constraint. You
> can
> then call
>    mean_value_constraints.distribute_local_to_global (...)
> in the assembly phase.
>
> But I might just not know what your problem is in detail. Can you explain
> what
> doesn't work?
>
> 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/27c40b58-770f-c19c-0703-97a8062a8afa%40colostate.edu
> .
>

-- 


Informativa sulla Privacy: http://www.unibs.it/node/8155 
<http://www.unibs.it/node/8155>

-- 
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/CABcATpfaku7RSQJQkjUN54S0D4KYzmaZpj7RbX_ePW0BYMP55Q%40mail.gmail.com.

Reply via email to