[MOAB-dev] delete entities & shared data
Iulian Grindeanu
iulian at mcs.anl.gov
Tue Jun 28 08:56:44 CDT 2011
----- Original Message -----
> Hello,
>
> I modelling crack propagation where some entities are created and
> removed. I
> work with parallel meshes and have problem how to clean remove ents
> and resolve
> shared entities.
>
> When I remove entity I get error,
> Reason: Entity should be shared but isn't.
> Tri 62:
> Adjacencies:
> Vertex 56, Vertex 48, Vertex 102
> Edge 103, Edge 101, Edge 104
> Tet 361
>
> Can you advise me how to solve this problem?
I am not sure I understand your problem.
If entities are in a set, you should remove them from the set, before deleting the entities.
If this is too hard, when you create the set you should use the MESHSET_TRACK_OWNER flag.
In that case, removing from the set is managed automatically when you delete the entity (this takes more memory, and it is not turned on by default). Do you create sets?
I am not sure about the sharing part, but I think that you would need to manage that yourself; the distribution/sharing is resolved at the beginning;
Still, what is the scenario?
Best Regards,
Iulian
>
>
> Regards,
> Lukasz Kaczmarczyk
> web: http://people.civil.gla.ac.uk/~kaczmarczyk
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
More information about the moab-dev
mailing list