Homec4science

second round of making per-atom allocations consistent.

Authored by Axel Kohlmeyer <akohlmey@gmail.com> on May 13 2016, 21:10.

Description

second round of making per-atom allocations consistent.

now all sections that dimension per-atom local arrays to atom->nmax
will also *test* for atom->nmax and thus we avoid potential segfaults
in all cases where atom->nlocal or atom->nlocal+atom->nghost are 0.
it doesn't make sense to test for these if the arrays are dimensioned
to atom->nmax afterwards anyway.

Details

Event Timeline

Axel Kohlmeyer <akohlmey@gmail.com> committed rLAMMPS068898765ab5: second round of making per-atom allocations consistent. (authored by Axel Kohlmeyer <akohlmey@gmail.com>).May 13 2016, 21:10