Homec4science

avoid accessing already deleted LAMMPS component instances in destructor

Authored by Axel Kohlmeyer <akohlmey@gmail.com> on Apr 2 2015, 02:26.

Description

avoid accessing already deleted LAMMPS component instances in destructor

when saving the colvars state from the destructor of the proxy module
some LAMMPS component instances have already been deleted, e.g. update.
thus we valgrind complains when accessing parameters/constants that
they provide (timestep, unit conversion factors) and we have to maintain
a cache of those values inside the proxy module. most are uncritical and
don't change, but the timestep would have to be checked at every setup.
TODO: we need to check, for variable time step simulations and refuse to
work in those cases.

Details

Committed
Axel Kohlmeyer <akohlmey@gmail.com>Apr 2 2015, 02:26
Pushed
jungeOct 6 2016, 16:49
Parents
rLAMMPS95e13af098f4: Merge remote-tracking branch 'lammps-ro/master' into lammps-icms
Branches
Unknown
Tags
Unknown

Event Timeline

Axel Kohlmeyer <akohlmey@gmail.com> committed rLAMMPSdc3cd915a55d: avoid accessing already deleted LAMMPS component instances in destructor (authored by Axel Kohlmeyer <akohlmey@gmail.com>).Apr 2 2015, 02:26