mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-09-14 19:22:17 +02:00
fix(simulator): add different safety mechanism for potential infinite while loop
This commit is contained in:
parent
fe1eac7e9b
commit
716394f46b
@ -112,6 +112,7 @@ class BaseSimulator(object):
|
||||
self.logger.warning(f"Timestep size {self.sim_steps()} is less than or equal to zero!")
|
||||
break
|
||||
|
||||
prev_time = self.sim_time()
|
||||
# Step forward in time
|
||||
self.step(current_dt)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user