Introduce SWIG typemap for mesh.topology().shared_entities(dim)

Issue #73 resolved
Jan Blechta created an issue

Type of mesh.topology().shared_entities(dim) is

<Swig Object of type 'std::map< unsigned int,std::set< unsigned int > > *' at address>

and is not mapped to numpy objects.

Comments (4)

  1. Johan Hake

    I have added this to the fix-issue-73 branch. Maybe you, @blechta, can look at the unit test? I have added almost everything needed to test it. I just did not figure out what to test. Maybe it is not testable?

  2. Jan Blechta reporter

    Do you want to test that python shared_entities() matches C++ shared_entities()? If so you could do something like Mikael suggested here. If you want to test that MeshTopology::_shared_entities is build correctly for some specific meshes, I don't know. We should ask @garth.wells what to do:)

  3. Johan Hake

    I was thinking of a meaningful way of checking that the shared entities are built correctly, or at least are self consistent. I am taking for granted that the type wrapping just works, which obviously is not always correct ;)

  4. Log in to comment