Tue 27 Jan 00:01:08 CET 2026
This commit is contained in:
parent
5c20f51865
commit
78ca43969d
|
|
@ -161,11 +161,10 @@ class EngineController():
|
|||
|
||||
# @blab+
|
||||
def saveOptions(self, step, idx, n):
|
||||
|
||||
if self.SimNDT_SnapShots.IsEnable:
|
||||
if (self.SimNDT_FD.n % self.SimNDT_SnapShots.Step == 0):
|
||||
value = (self.n / float(self.TimeSteps * self.Times)) * 100
|
||||
print("["+str(n)+"/"+str(int(self.TimeSteps))+"] Saving output @"+str(value))
|
||||
value = (self.n * self.simPack.Simulation.dt) * 1000000
|
||||
print("["+str(n)+"/"+str(int(self.TimeSteps))+"] Saving output @"+str(value)+" us")
|
||||
if not self.SimNDT_SnapShots.enableView and not self.SimNDT_SnapShots.enableImages:
|
||||
self.SimNDT_FD.runGL()
|
||||
if self.SimNDT_SnapShots.enableImages:
|
||||
|
|
@ -205,7 +204,7 @@ class EngineController():
|
|||
else:
|
||||
raise ValueError('SnapShots.save_signal: Unsupported field selector')
|
||||
|
||||
self.SimNDT_SnapShots.save_signal(D, self.SimNDT_FD.n, Label)
|
||||
self.SimNDT_SnapShots.save_signal(D, self.SimNDT_FD.n, Label, self.simPack.Simulation.dt)
|
||||
|
||||
if self.SimNDT_SnapShots.enableFields:
|
||||
# TODO self.SimNDT_SnapShots.Field=
|
||||
|
|
@ -215,8 +214,8 @@ class EngineController():
|
|||
else:
|
||||
# Nothing to save; dry run
|
||||
if (self.SimNDT_FD.n % step == 0):
|
||||
value = (self.n / float(self.TimeSteps * self.Times)) * 100
|
||||
print("["+str(n)+"/"+str(int(self.TimeSteps))+"] Saving output @"+str(value))
|
||||
value = (self.n * self.simPack.Simulation.dt) * 1000000
|
||||
print("["+str(n)+"/"+str(int(self.TimeSteps))+"] Saving output @"+str(value)+" us")
|
||||
|
||||
|
||||
def _run(self, idx):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user