Skip to content

Commit

Permalink
fix filename defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
simbilod committed Jan 2, 2025
1 parent e14cf8e commit 3b8984b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meshwell/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ def mesh(
self._initialize_model()

# Use provided filename or default to self.filename
output_file = Path(filename if filename is not None else self.filename)
output_file = Path(
filename if filename is not None else str(self.filename).with_suffix(".msh")
)

# Load CAD model or evaluate it
if from_cad:
Expand All @@ -354,7 +356,6 @@ def mesh(
else:
entities_list, max_dim = self.cad(
entities_list=entities_list,
filename=output_file,
fuse_entities_by_name=fuse_entities_by_name,
addition_delimiter=addition_delimiter,
addition_intersection_physicals=addition_intersection_physicals,
Expand Down

0 comments on commit 3b8984b

Please sign in to comment.