Skip to content

Commit

Permalink
small fix in the grid for the __str__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiofumagalli committed Oct 25, 2017
1 parent 2fb9298 commit 58c184d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/porepy/grids/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ def __repr__(self):
def __str__(self):
""" Implementation of __str__
"""
s = str()

# Special treatment of point grids.
if 'PointGrid' in self.name:
Expand Down
1 change: 1 addition & 0 deletions src/porepy/grids/grid_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def sort_multiple_nodes(self, nodes):
return sorted(nodes, key = lambda n: self.node_prop( n, 'node_number'))

#------------------------------------------------------------------------------#

def nodes_of_edge(self, e):
"""
Obtain the vertices of an edge.
Expand Down

0 comments on commit 58c184d

Please sign in to comment.