Skip to content

BUG: Paralle Monte Carlo simulation giving incorrect iterations #806

Open
@emtee14

Description

@emtee14

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

sim_monitor.print_update_status(sim_idx)

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

Labels

BugSomething isn't workingMonte CarloMonte Carlo and related contents

Type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions