Skip to content

Fix inconsistent model refresh threading#126

Merged
paulromano merged 1 commit into
openmc-dev:developfrom
johvincau:threadsave
Oct 11, 2023
Merged

Fix inconsistent model refresh threading#126
paulromano merged 1 commit into
openmc-dev:developfrom
johvincau:threadsave

Conversation

@johvincau

Copy link
Copy Markdown
Contributor

When calling openmc-plotter with the -s flag and specifying threads, this number would only be remembered for the first time loading the model. Any subsequent reloads called from the GUI would function as if openmc-plotter were run with no thread specification, returning to the default value for that machine.

This pull request adds a quick fix to enable any future loads/reloads of the model to use the number of threads as specified by the initial call of openmc-plotter.

@paulromano paulromano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for fixing this! Also looks like the reload would have missed out on the model_path argument and I see you've included that too 👍

@paulromano paulromano merged commit 47d0a73 into openmc-dev:develop Oct 11, 2023
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