Skip to content

Commit

Permalink
remove unreachable line
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bills committed Dec 30, 2024
1 parent ffe0abb commit 956a7b2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/pybamm/spatial_methods/finite_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,6 @@ def definite_integral_matrix(
{k: v for k, v in domains.items() if (k in higher_dimensions)}
)
matrix = kron(eye(higher_repeats), int_matrix)
else:
raise ValueError(
f"Invalid integration dimension: {integration_dimension}. Only {possible_dimensions} are supported."
)
return pybamm.Matrix(csr_matrix(matrix))

def indefinite_integral(self, child, discretised_child, direction):
Expand Down

0 comments on commit 956a7b2

Please sign in to comment.