Introduce SWIG typemap for mesh.topology().shared_entities(dim)
Issue #73
resolved
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)
-
-
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 thatMeshTopology::_shared_entities
is build correctly for some specific meshes, I don't know. We should ask @garth.wells what to do:) -
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 ;)
-
- changed status to resolved
Fixed in commit: 4d42718cd88f57ce785e9cfafc50797c0089a674
- Log in to comment
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?