openmc-dev / plotter

Native plotting GUI for model design and verification
MIT License
43 stars 17 forks source link

Fix inconsistent model refresh threading #126

Closed johvincau closed 8 months ago

johvincau commented 8 months ago

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.