Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel run #511

Merged
merged 11 commits into from
Apr 30, 2021
Merged

Parallel run #511

merged 11 commits into from
Apr 30, 2021

Conversation

PavelBal
Copy link
Member

Implementation of running simulations concurrently.

Concurrent batch simulations will follow in a separate PR.

FYI @abdelr

@PavelBal PavelBal requested a review from msevestre April 27, 2021 14:28
@PavelBal
Copy link
Member Author

Tests require the latest Core.

Copy link
Member

@msevestre msevestre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is looking good. Just a quick question regarding returned value in case of SIlentMode

simulationResults[[id]] <- SimulationResults$new(ref = rClr::clrGet(resultObject, "Result"), simulation = simulationsIdMap[[id]])
next()
}
# If the simulation run failed, show a warning
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not we set simulationResults[[id]] to NULL or sthg here ? to show that something is off?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All values are NULL after initialization of simulationResults and are overwritten if the result exists.

@PavelBal PavelBal merged commit 99e01f9 into develop Apr 30, 2021
@PavelBal PavelBal deleted the parallel-run branch April 30, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants