add chart viewer window to show graphs of ongoing runs from thermo data

This commit is contained in:
Axel Kohlmeyer
2023-08-05 14:27:26 -04:00
parent d414dd52d5
commit fe7681d0b3
8 changed files with 213 additions and 13 deletions

View File

@ -58,6 +58,19 @@ double LammpsWrapper::get_thermo(const char *keyword)
return val;
}
void *LammpsWrapper::last_thermo(const char *keyword, int index)
{
void *ptr = nullptr;
if (lammps_handle) {
#if defined(LAMMPS_GUI_USE_PLUGIN)
ptr = ((liblammpsplugin_t *)plugin_handle)->last_thermo(lammps_handle, keyword, index);
#else
ptr = lammps_last_thermo(lammps_handle, keyword, index);
#endif
}
return ptr;
}
bool LammpsWrapper::is_running()
{
int val = 0;