Skip to content

Commit

Permalink
MAINT: Further improvements after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
keileg committed Feb 20, 2025
1 parent d286f50 commit e7bf054
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/porepy/examples/flow_benchmark_2d_case_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"""

from typing import Literal

import numpy as np

import porepy as pp
Expand All @@ -36,15 +38,15 @@ def set_fractures(self) -> None:
"""Setting a fracture list from the fracture set library."""
self._fractures = pp.applications.md_grids.fracture_sets.benchmark_2d_case_4()

def set_domain(self) -> pp.Domain:
def set_domain(self) -> None:
"""Domain of the problem."""
x_extent = self.units.convert_units(700, "m")
y_extent = self.units.convert_units(600, "m")
self._domain = pp.Domain(
{"xmin": 0, "xmax": x_extent, "ymin": 0, "ymax": y_extent}
)

def grid_type(self) -> str:
def grid_type(self) -> Literal["simplex"]:
"""Set a simplex grid, which is the only grid type that can represent this
fracture geometry.
Expand Down

0 comments on commit e7bf054

Please sign in to comment.