apply clang-format
This commit is contained in:
@ -22,8 +22,8 @@
|
|||||||
using namespace QtCharts;
|
using namespace QtCharts;
|
||||||
|
|
||||||
ChartWindow::ChartWindow(const QString &_filename, QWidget *parent) :
|
ChartWindow::ChartWindow(const QString &_filename, QWidget *parent) :
|
||||||
QWidget(parent), menu(new QMenuBar), file(new QMenu("&File")),
|
QWidget(parent), menu(new QMenuBar), file(new QMenu("&File")), filename(_filename),
|
||||||
filename(_filename), active_chart(-1)
|
active_chart(-1)
|
||||||
{
|
{
|
||||||
auto *top = new QHBoxLayout;
|
auto *top = new QHBoxLayout;
|
||||||
menu->addMenu(file);
|
menu->addMenu(file);
|
||||||
|
|||||||
@ -836,7 +836,7 @@ void LammpsGui::logupdate()
|
|||||||
|
|
||||||
for (int i = 0; i < ncols; ++i) {
|
for (int i = 0; i < ncols; ++i) {
|
||||||
int datatype = *(int *)lammps.last_thermo("type", i);
|
int datatype = *(int *)lammps.last_thermo("type", i);
|
||||||
double data = 0.0;
|
double data = 0.0;
|
||||||
if (datatype == 0) // int
|
if (datatype == 0) // int
|
||||||
data = *(int *)lammps.last_thermo("data", i);
|
data = *(int *)lammps.last_thermo("data", i);
|
||||||
else if (datatype == 2) // double
|
else if (datatype == 2) // double
|
||||||
@ -906,7 +906,7 @@ void LammpsGui::run_done()
|
|||||||
chartwindow->add_chart(label, i);
|
chartwindow->add_chart(label, i);
|
||||||
}
|
}
|
||||||
int datatype = *(int *)lammps.last_thermo("type", i);
|
int datatype = *(int *)lammps.last_thermo("type", i);
|
||||||
double data = 0.0;
|
double data = 0.0;
|
||||||
if (datatype == 0) // int
|
if (datatype == 0) // int
|
||||||
data = *(int *)lammps.last_thermo("data", i);
|
data = *(int *)lammps.last_thermo("data", i);
|
||||||
else if (datatype == 2) // double
|
else if (datatype == 2) // double
|
||||||
|
|||||||
@ -19,7 +19,8 @@
|
|||||||
#include "library.h"
|
#include "library.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LammpsWrapper::LammpsWrapper() : lammps_handle(nullptr) {
|
LammpsWrapper::LammpsWrapper() : lammps_handle(nullptr)
|
||||||
|
{
|
||||||
#if defined(LAMMPS_GUI_USE_PLUGIN)
|
#if defined(LAMMPS_GUI_USE_PLUGIN)
|
||||||
plugin_handle = nullptr;
|
plugin_handle = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user