Skip to content

Commit

Permalink
Merge pull request lammps#4388 from lichanghao/dump_image_bug_fix
Browse files Browse the repository at this point in the history
Fixed a indexing bug in dump_image.cpp causing segmentation fault with body style particles
  • Loading branch information
akohlmey authored Nov 21, 2024
2 parents e6ed911 + 53b2930 commit 43fbdc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dump_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ void DumpImage::create_image()
color = colortype[itype];
}

ibonus = body[i];
ibonus = body[j];
n = bptr->image(ibonus,bodyflag1,bodyflag2,bodyvec,bodyarray);
for (k = 0; k < n; k++) {
if (bodyvec[k] == SPHERE)
Expand Down

0 comments on commit 43fbdc2

Please sign in to comment.