Description
When running the parallel Monte Carlo simulations, there is a printout that shows the current iterations, iteration runtime, and estimated time left. When running in parallel, though, the value goes up and down due to this line
RocketPy/rocketpy/simulation/monte_carlo.py
Line 431 in 4df0b38
This means that the message is printed with the same index as the last completed iteration, so when an earlier iteration takes longer, it updates it with a lower value.
I propose to fix this by having a counter that will keep track and just increment each time. This counter can be incremented when the output is written to a file, and can be thread-safe since it will only be accessed when the mutex is acquired. Also changing the printout of current iteration
to iterations completed or something of that nature.
Screenshots
Screen.Recording.2025-04-18.at.22.14.18.mov
Metadata
Metadata
Assignees
Type
Projects
Status