Skip to content
Snippets Groups Projects
Commit 4f6cc082 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use abs(b[1]) since b[1] can be negative: see #1929

parent ee0e6c87
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ for e in gmsh.model.getEntities():
def transform(m, offset_entity, offset_node, offset_element, tx, ty, tz):
for e in sorted(m):
gmsh.model.addDiscreteEntity(e[0], e[1] + offset_entity,
[b[1] + offset_entity for b in m[e][0]])
[abs(b[1]) + offset_entity for b in m[e][0]])
coord = []
for i in range(0, len(m[e][1][1]), 3):
x = m[e][1][1][i] * tx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment