reset number of threads to 1 when using no accelerator or opt

This commit is contained in:
Axel Kohlmeyer
2023-10-03 16:13:59 -04:00
parent 75050b8920
commit 6a43ca8410
2 changed files with 11 additions and 4 deletions

View File

@ -508,6 +508,8 @@ void LammpsGui::update_variables()
for (const auto &line : doc) {
if (line.isEmpty()) continue;
// first find variable definitions.
// index variables are special since they can be overridden from the command line
auto index = indexvar.match(line);