Skip to content

Commit

Permalink
Syntax fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhale committed Oct 14, 2024
1 parent 17c2b90 commit f399466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dolfinx/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def create_interval(
Returns:
An interval mesh.
"""
if not gdim in [1, 2, 3]:
if gdim not in [1, 2, 3]:
raise ValueError(f"gdim must be 1, 2 or 3: {gdim}")

if partitioner is None and comm.size > 1:
Expand Down

0 comments on commit f399466

Please sign in to comment.