Skip to content
Snippets Groups Projects
Commit 2d9a44b9 authored by Laura Christine Kühle's avatar Laura Christine Kühle
Browse files

Added property attribute for 'num_ghost_cells'.

parent 50419fcb
Branches
No related tags found
No related merge requests found
...@@ -23,6 +23,8 @@ class Mesh: ...@@ -23,6 +23,8 @@ class Mesh:
num_cells : int num_cells : int
Number of cells in the mesh (ghost cells notwithstanding). Usually Number of cells in the mesh (ghost cells notwithstanding). Usually
exponential of 2. exponential of 2.
num_ghost_cells : int
Number of ghost cells on both sides of the mesh, respectively.
bounds : Tuple[float, float] bounds : Tuple[float, float]
Left and right boundary of the mesh interval. Left and right boundary of the mesh interval.
interval_len : float interval_len : float
...@@ -87,6 +89,11 @@ class Mesh: ...@@ -87,6 +89,11 @@ class Mesh:
"""Return number of mesh cells.""" """Return number of mesh cells."""
return self._num_cells return self._num_cells
@property
def num_ghost_cells(self) -> int:
"""Return number of ghost mesh cells."""
return self._num_ghost_cells
@property @property
def bounds(self) -> Tuple[float, float]: def bounds(self) -> Tuple[float, float]:
"""Return left and right boundary of the mesh interval.""" """Return left and right boundary of the mesh interval."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment