Skip to content

Delete code previously marked for deprecation #1416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 19, 2025
Merged
2 changes: 1 addition & 1 deletion src/porepy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
# Modules
from porepy.fracs import utils as frac_utils
from porepy.fracs import meshing, fracture_importer
from porepy.grids import coarsening, partition, refinement
from porepy.grids import partition, refinement
from porepy.numerics import displacement_correlation

# Applications
Expand Down
10 changes: 4 additions & 6 deletions src/porepy/applications/md_grids/mdg_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,17 +249,17 @@ def seven_fractures_one_L_intersection(


def benchmark_regular_2d(
meshing_args: dict, is_coarse: bool = False, **meshing_kwargs
meshing_args: dict, **meshing_kwargs
) -> tuple[pp.MixedDimensionalGrid, FractureNetwork2d]:
"""
Create a grid bucket for a domain containing the network introduced as example 2 of
Berre et al. 2018: Benchmarks for single-phase flow in fractured porous media.
Create a MixedDimensionalGrid for a domain containing the network introduced as
example 2 of Berre et al. 2018: Benchmarks for single-phase flow in fractured porous
media.

Parameters:
meshing_args: Dictionary containing at least "mesh_size_frac". If the optional
values of "mesh_size_bound" and "mesh_size_min" are not provided, these are
set by utils.set_mesh_sizes.
is_coarse: If True, coarsen the grid by volume.
**meshing_kwargs: Keyword arguments for meshing as used by
:meth:`~porepy.grids.mdg_generation.create_mdg`.

Expand All @@ -281,8 +281,6 @@ def benchmark_regular_2d(
)
mdg = pp.create_mdg("simplex", meshing_args, fracture_network, **meshing_kwargs)

if is_coarse:
pp.coarsening.coarsen(mdg, "by_volume")
return mdg, fracture_network


Expand Down
Loading