Hello,

On Thursday, April 27, 2023 at 7:56:50 AM UTC-4 abbas.b...@gmail.com wrote: 

This works with a single MPI but not for more. Is it because the cell->face(
face)->clear_user_flag()
doesn't clear the user flag in the other distributed meshes? 


That's correct. The flag is only cleared locally not on the other processor.

I can't directly loop over faces because there is no 
"face->is_locally_owned()" 
I know that meshworker is an option. Is it the only option? 

You can check if the cell that shares the face (use this 
<https://www.dealii.org/current/doxygen/deal.II/classCellAccessor.html#a177d9a97d1a0d8a066e45040c0b6aac9>)
 
is a ghost cell (use this 
<https://www.dealii.org/current/doxygen/deal.II/classCellAccessor.html#a54375bf8f17e51501a4da7a2fac852ae>).
 
If that's the case, you can ask for the subdomain id of the locally owned 
cell and the ghost cell (use this 
<https://www.dealii.org/current/doxygen/deal.II/classCellAccessor.html#ae06835414c3c3f3359974f2c75a88033>).
 
Now you can decide that only the processor with the lower rank can "touch" 
the face and the other processor should just skip it.

Best,

Bruno
 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/e017f4ef-a602-485b-9342-9f00d1b717d3n%40googlegroups.com.

Reply via email to