delete atomfile style variables with clear command

This commit is contained in:
Axel Kohlmeyer
2022-10-18 06:43:44 -04:00
parent c10b5b02c0
commit 78305edf71
5 changed files with 37 additions and 12 deletions

View File

@ -50,6 +50,7 @@
#include "timer.h"
#include "universe.h"
#include "update.h"
#include "variable.h"
#include "version.h"
#if defined(LMP_PLUGIN)
@ -970,6 +971,9 @@ void LAMMPS::destroy()
delete output;
output = nullptr;
// undefine atomfile variables because they use a fix for backing storage
input->variable->purge_atomfile();
delete modify; // modify must come after output, force, update
// since they delete fixes
modify = nullptr;