safer handling of processors w/o local atoms

This commit is contained in:
Axel Kohlmeyer 2017-07-05 15:04:27 -04:00
parent f1088a5003
commit e625e79171
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ void FixMSST::initial_integrate(int vflag)
// realloc old_velocity if necessary
if (nlocal > maxold) {
if (atom->nmax > maxold) {
memory->destroy(old_velocity);
maxold = atom->nmax;
memory->create(old_velocity,maxold,3,"msst:old_velocity");