kinnala / scikit-fem

Simple finite element assemblers
https://scikit-fem.readthedocs.io
BSD 3-Clause "New" or "Revised" License
470 stars 76 forks source link

Fix Mesh.p2e #1131

Closed vohonen closed 1 month ago

vohonen commented 1 month ago

The Mesh.p2e (vertices to edges) method functioned actually as Mesh.e2t(edges to elements). I renamed the original method as e2t and added a new method p2e that produces a map between vertices and edges.

This might have slipped as there were no test cases for Mesh.p2ebeforehand. I added cases for both p2e and e2t, and fixed the indentation of the other cases for that particular test.