fix a couple of bugs that would hang the app waiting for log output

This commit is contained in:
Axel Kohlmeyer
2023-08-02 05:25:24 -04:00
parent c99d0f5452
commit c918bdeb07
2 changed files with 5 additions and 4 deletions

View File

@ -20,13 +20,14 @@ class LammpsRunner : public QThread {
Q_OBJECT
public:
LammpsRunner(QObject *parent = nullptr) : QThread(parent), lammps(nullptr), input(nullptr) {}
LammpsRunner(QObject *parent = nullptr) : QThread(parent), lammps(nullptr), input(nullptr) {}
~LammpsRunner() = default;
public:
// execute LAMMPS in runner thread
void run() override
{
lammps->command("clear");
lammps->commands_string(input);
emit resultReady();
}