Hi,

If it is feasible, you can create an array of pointers to elements with the
size of your vertices, vert2el[]. Then, loop over all elements, e, and loop
over all the vertices of that element, e_v, and set vert2el[e_v]=e. Then
given any vertex v, vert2el[v], would be an element to which v belongs.

Shayan

On Sun, Jun 25, 2017 at 3:03 AM, gabriele r <[email protected]> wrote:

> Hi all,
>
>
> given a dof D on the boundary (it may be a vertex or a midpoint of a
> TRI6), I would like to access to an element E (in particular, to its
> vertices) which D belongs to. I need only one element, it is not important
> which one. Is there an easy way to do so?
>
>
> Thank you very much
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>



-- 
Shayan Hoshyari
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to