[MOAB-dev] moab, tpetra::map

Nico Schlömer nico.schloemer at gmail.com
Mon Nov 2 06:55:25 CST 2015


> Get owned nodes.

Aha, I think `get_entities_by_dimension()` is my friend.

> * Translate a Range into a std::vector. Seems easy given Range's
operator[].

The above function also spits out a std::vector. Nice.

> Get owned plus shared nodes.

That should be easy now. :)

--Nico


On Mon, Nov 2, 2015 at 11:30 AM Nico Schlömer <nico.schloemer at gmail.com>
wrote:

> I would liket to create a Tpetra::Map [1] from a MOAB parallel partition.
> To this end, I need to following:
>
>  * The notion of global ID of a node. I trust EntityHandle is what I'm
> looking for? EntityID appears to be the index a lot of times, aka, a local
> ID.
>  * Translate a Range into a std::vector. Seems easy given Range's
> operator[].
>  * Get owned nodes. Get owned plus shared nodes.
>     I'm still not quite familiar on how to best pick out entity sets from
> a pcomm. I see there's `get_pstatus_entities()`, but I don't see a
> PSTATUS_OWNED.
>
> Cheers,
> Nico
>
> [1]
> https://trilinos.org/docs/dev/packages/tpetra/doc/html/classTpetra_1_1Map.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/moab-dev/attachments/20151102/8543e15d/attachment.html>


More information about the moab-dev mailing list