>
> I suspect you are passing a fully distributed vector to that function, but 
> it 
> needs to read ghost elements of the vector. Have you tried copying the 
> vector 
> into a locally_relevant vector, and passing that to the function in 
> question? 
>

Thank you, Wolfgang, that was the issue.  I am using the mean value 
function at several different places in my code. One of them is inside a 
preconditioner vmult that accepts only a fully distributed vector. Is there 
also a simple workaround? I have a patch since I only need the pressure 
which is the last component of the distributed vector in each locally owned 
cell but the patch is ugly...

-- 
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/1d0a185d-84af-4be5-8d2c-9b7979528c1cn%40googlegroups.com.

Reply via email to