small bug fix for gather()

This commit is contained in:
tomswinburne
2020-07-15 11:45:23 +02:00
parent 6ec3aac3f0
commit 6c5d928358

View File

@ -1567,7 +1567,7 @@ void lammps_gather(void *ptr, char *name, int type, int count, void *data)
" fix does not return peratom data"); " fix does not return peratom data");
return; return;
} }
if (lmp->modify->fix[fcid]->size_peratom_cols != count) { if (count>1 && lmp->modify->fix[fcid]->size_peratom_cols != count) {
lmp->error->warning(FLERR,"lammps_gather:" lmp->error->warning(FLERR,"lammps_gather:"
" count != values peratom for fix"); " count != values peratom for fix");
return; return;