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.

Reply via email to