Skip to content

Commit

Permalink
replace transform.Matrix with Point in gmsh reader
Browse files Browse the repository at this point in the history
This patch replaces `transform.Matrix` with the recently introduced
`transform.Point` in the `gmsh` reader.
  • Loading branch information
joostvanzwieten committed Dec 30, 2021
1 parent 109b983 commit 2b9d1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nutils/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def simplex(nodes, cnodes, coords, tags, btags, ptags, name='simplex', *, space=

pgroups = {}
if ptags:
ptrans = [transform.Matrix(linear=numpy.zeros(shape=(ndims,0)), offset=offset) for offset in numpy.eye(ndims+1)[:,1:]]
ptrans = [transform.Point(offset) for offset in numpy.eye(ndims+1)[:,1:]]
pmap = {inode: numpy.array(numpy.equal(nodes, inode).nonzero()).T for inode in set.union(*map(set, ptags.values()))}
for pname, inodes in ptags.items():
ptransforms = transformseq.PlainTransforms([topo.transforms[ielem] + (ptrans[ivertex],) for inode in inodes for ielem, ivertex in pmap[inode]], ndims, 0)
Expand Down

0 comments on commit 2b9d1d7

Please sign in to comment.