Commit ecda68cc authored by Felix Tobias Schindler's avatar Felix Tobias Schindler Committed by github-actions[bot]

fix __str__ of RectGrid

parent 44617453
Pipeline #66083 passed with stages
in 50 minutes
......@@ -143,7 +143,7 @@ class RectGrid(GridWithOrthogonalCenters):
return (f'Rect-Grid on domain '
f'[{self.x0_range[0]},{self.x0_range[1]}] x [{self.x1_range[0]},{self.x1_range[1]}]\n'
f'x0-intervals: {self.x0_num_intervals}, x1-intervals: {self.x1_num_intervals}\n'
f'faces: {self.size(0)}, edges: {self.size(1)}, vertices: {self.size(2)}')
f'elements: {self.size(0)}, edges: {self.size(1)}, vertices: {self.size(2)}')
def size(self, codim=0):
assert 0 <= codim <= 2, 'Invalid codimension'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment