add support to run LAMMPS on the file instead of the edit buffer

This commit is contained in:
Axel Kohlmeyer
2023-08-25 15:12:48 -04:00
parent f94d00d435
commit c61aaa81d2
7 changed files with 123 additions and 53 deletions

View File

@ -147,6 +147,17 @@ void LammpsWrapper::command(const char *input)
}
}
void LammpsWrapper::file(const char *filename)
{
if (lammps_handle) {
#if defined(LAMMPS_GUI_USE_PLUGIN)
((liblammpsplugin_t *)plugin_handle)->file(lammps_handle, filename);
#else
lammps_file(lammps_handle, filename);
#endif
}
}
void LammpsWrapper::commands_string(const char *input)
{
if (lammps_handle) {