mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 22:50:25 -05:00
Enables setting thread count via command line
Allows users to set the maximum number of threads used for parallel processing via a command-line argument. The thread count can also be set via preferences. Command line takes precedence.
This commit is contained in:
1 parent
c854166be6
commit
41870a2c6d
8 files changed
+82
-9
No files matched your search
@@ -191,6 +191,9 @@ int main( int argc, char* argv[] )
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// Check if max thread count is set either from command line or preferences
|
||||
app->setThreadCount();
|
||||
|
||||
exitCode = QCoreApplication::instance()->exec();
|
||||
}
|
||||
catch ( std::exception& exep )
|
||||
|
||||
Reference in new issue
Block a user