mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Solver, Meshing: Mage: Add some exit condition.
This commit is contained in:
1 parent
19ad9c4d1a
commit
03c3c37435
2 files changed
+8
-2
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user