Solver, Meshing: Mage: Add some exit condition.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-22 10:53:00 +01:00
1 parent 19ad9c4d1a
commit 03c3c37435
2 files changed
+8 -2

No files matched your search

+3
View File
@@ -182,6 +182,9 @@ class MeshingWithMage(AMeshingTool):
###########
def meshing(self, reach, step: float = 50):
if reach is None or len(reach.profiles) == 0:
return reach
with tempfile.TemporaryDirectory() as tmp:
st_file = self.export_reach_to_st(reach, tmp)
m_file = st_file.rsplit(".ST", 1)[0] + ".M"