small tweak

This commit is contained in:
Axel Kohlmeyer
2023-08-09 20:26:18 -04:00
parent ab4ae4f177
commit 27d4a8afcf

View File

@ -27,7 +27,6 @@ public:
// execute LAMMPS in runner thread // execute LAMMPS in runner thread
void run() override void run() override
{ {
lammps->command("clear");
lammps->commands_string(input); lammps->commands_string(input);
delete[] input; delete[] input;
emit resultReady(); emit resultReady();
@ -38,6 +37,7 @@ public:
{ {
lammps = _lammps; lammps = _lammps;
input = _input; input = _input;
lammps->command("clear");
} }
signals: signals: