Skip to content

Commit da17219

Browse files
anur7gmalinve
andauthored
Update src/ansys/aedt/core/maxwell.py
Co-authored-by: Giulia Malinverno <[email protected]>
1 parent 9ddbe70 commit da17219

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/ansys/aedt/core/maxwell.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,16 +1640,12 @@ def analyze_from_zero(self):
16401640
raise AEDTRuntimeError("This methods work only with Maxwell Transient Analysis.")
16411641

16421642
self.oanalysis.ResetSetupToTimeZero(self._setup)
1643-
bound = []
1644-
for k in range(len(self.boundaries)):
1645-
if self.boundaries[k].type == "Balloon":
1646-
self.logger.warning(
1647-
"With Balloon boundary is not possible to parallelize the simulation "
1648-
"using the Time Decomposition Method (TDM)."
1649-
)
1650-
bound.append(self.boundaries[k].type)
1651-
if "Balloon" in bound:
1652-
self.analyze(cores=1)
1643+
if any(boundary.type == "Balloon" for boundary in self.boundaries):
1644+
self.logger.warning(
1645+
"With Balloon boundary, it is not possible to parallelize the simulation "
1646+
"using the Time Decomposition Method (TDM)."
1647+
)
1648+
self.analyze(use_auto_settings=False, cores=1)
16531649
else:
16541650
self.analyze()
16551651
return True

0 commit comments

Comments
 (0)