On 11/09/2016 02:40 AM, Ashkan Dorostkar wrote:
constraints.distribute_local_to_global(cell_matrix,cell_rhs,

local_dof_indices,

system_matrix,

system_rhs);


constraints.distribute_local_to_global(cell_precond,

local_dof_indices,

system_precon);


However at these two last lines the excution crashes with the message


*You are trying an operation on a vector that is only allowed if the
vector has no ghost elements, but the vector you are operating on does
have ghost elements. Specifically, vectors with ghost elements are
read-only and cannot appear in operations that write into these vectors.*


why is this happening. I am not creating the system_rhs with ghost elements.

It's hard to tell without a complete example that shows the issue. Are you sure the exception is triggered in the function you mention? Are you sure that you don't modify system_rhs somewhere in between?

Best
 W.


--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           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 dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to