use newer APIs to get access to fixes and computes

This commit is contained in:
Axel Kohlmeyer
2022-03-18 13:16:18 -04:00
parent cc2ba3c350
commit 8fe7b928a7
3 changed files with 75 additions and 76 deletions

View File

@ -351,9 +351,9 @@ DumpImage::DumpImage(LAMMPS *lmp, int narg, char **arg) :
if (lineflag || triflag || bodyflag) extraflag = 1;
if (fixflag) {
int ifix = modify->find_fix(fixID);
if (ifix < 0) error->all(FLERR,"Fix ID for dump image does not exist");
fixptr = modify->fix[ifix];
fixptr = modify->get_fix_by_id(fixID);
if (!fixptr) error->all(FLERR,"Fix ID {} for dump image does not exist", fixID);
}
// allocate image buffer now that image size is known