Skip to content

Commit

Permalink
Make pylint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sblauth committed Jun 3, 2024
1 parent c670e2b commit 3a523c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cashocs/_optimization/shape_optimization/mesh_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,10 @@ def _manage_bad_cells(
self.dim * bad_vertex_idcs_local_owned + 2,
]
).T.reshape(-1)
else:
raise _exceptions.CashocsException(
"Please use a mesh of dimension 2 or 3."
)

bad_coordinates = (
self.mesh.coordinates().copy().reshape(-1)[bad_vertex_idcs_local]
Expand Down

0 comments on commit 3a523c0

Please sign in to comment.