[MOAB-dev] DMMoabGetElementConnectivity

Vijay S. Mahadevan vijay.m at gmail.com
Thu Dec 4 12:29:36 CST 2014


Hi Gerd,

DMMoabGetElementConnectivity returns a const pointer and there is no
reason to restore it explicitly. It does not copy or allocate memory
but rather just gives a pointer directly from memory.
DMMoabRestoreElementConnectivity does not exist precisely because of
that.

DMMoabGetVertexConnectivity on the other hand is dynamic and gets a
one ring neighborhood of vertices which allocated memory appropriately
internal to the call, which will get freed when calling
DMMoabRestoreVertexConnectivity. Is this clear ?

Vijay

On Thu, Dec 4, 2014 at 9:58 AM, Gerd Heber <gheber at hdfgroup.org> wrote:
> It looks like there's no matching DMMoabRestoreElementConnectivity function. (?)
> Is the general recommendation to use DMMoabGetVertexConnectivity with the
> matching restore function? Will DMMoabRestoreElementConnectivity be deprecated?
> What's the difference?
>
> Thanks, G.


More information about the moab-dev mailing list