File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments