Hi Jose,

not sure. You could use 
Triangulation::global_active_cell_index_partitioner() to initialize a 
distributed vector, access it via CellAccessor::global_active_cell_index(), 
and update the ghost values.

Peter
On Tuesday, March 21, 2023 at 10:47:14 AM UTC+1 [email protected] wrote:

> Hello dealii community,
>
> I am working on a problem with several subdomains. At the interface 
> between them a boundary integral is to be evaluated. I am identifying the 
> interface by comparing the material_id of neighboring cells (or their 
> active_fe_index as I am using a different FESystem per subdomain). In order 
> to speed up the search during assembly, a Vector<float> is previously 
> filled with 1.0 at the cells where the material_id/active_fe_index differ. 
> This approach works in serial but in parallel the material_id() call of a 
> neighbor cell outside the locally owned subdomain always returns 0 (An 
> assertion is missing here). As such, not only the interface between 
> subdomains is marked but also the interface between locally owned 
> subdomains, as shown in the attached picture
>
> My question is, if there is an equivalent to locally owned and relevant 
> dofs for the case of cells, i.e., locally owned and relevant cells such 
> that the material_id/active_fe_index of the neighboring cell outside the 
> locally owned subdomain can be read? Alternatively, is there a built-in 
> method/member which can be used for my purpose or someone has already done 
> it through another approach?
>
> Attached is also the MWE used to obtain the attached screenshot.
>
> Cheers,
> Jose
>

-- 
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/ea5b77e3-50f4-48bb-8269-238e4712a62en%40googlegroups.com.

Reply via email to