Skip to content

Commit

Permalink
Use instance, not class attributes in GmshMeshReceiverNumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jun 16, 2014
1 parent f16dad8 commit 8b4a237
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions meshpy/gmsh_reader.py
Expand Up @@ -346,12 +346,13 @@ class GmshMeshReceiverNumPy(GmshMeshReceiverBase):
.. versionadded:: 2014.1
"""

# Use data fields similar to meshpy.triangle.MeshInfo and meshpy.tet.MeshInfo
points = None
elements = None
element_types = None
element_markers = None
tags = None
def __init__(self):
# Use data fields similar to meshpy.triangle.MeshInfo and meshpy.tet.MeshInfo
self.points = None
self.elements = None
self.element_types = None
self.element_markers = None
self.tags = None

# Gmsh has no explicit concept of facets or faces; certain faces are a type
# of element. Consequently, there are no face markers, but elements can be
Expand Down

0 comments on commit 8b4a237

Please sign in to comment.