diff --git a/src/GRANULAR/fix_wall_gran.cpp b/src/GRANULAR/fix_wall_gran.cpp index 11a2b920a7..d58ce011f9 100644 --- a/src/GRANULAR/fix_wall_gran.cpp +++ b/src/GRANULAR/fix_wall_gran.cpp @@ -385,8 +385,8 @@ void FixWallGran::post_force(int /*vflag*/) if (neighbor->ago == 0 && fix_rigid) { int tmp; - int *body = (int *) fix_rigid->extract("body",tmp); - auto mass_body = (double *) fix_rigid->extract("masstotal",tmp); + auto *body = (int *) fix_rigid->extract("body",tmp); + auto *mass_body = (double *) fix_rigid->extract("masstotal",tmp); if (atom->nmax > nmax) { memory->destroy(mass_rigid); nmax = atom->nmax; diff --git a/src/GRANULAR/fix_wall_gran_region.cpp b/src/GRANULAR/fix_wall_gran_region.cpp index 6c2d26617d..bb2069516f 100644 --- a/src/GRANULAR/fix_wall_gran_region.cpp +++ b/src/GRANULAR/fix_wall_gran_region.cpp @@ -84,7 +84,7 @@ void FixWallGranRegion::init() { FixWallGran::init(); - auto newregion = domain->get_region_by_id(idregion); + auto *newregion = domain->get_region_by_id(idregion); if (!newregion) error->all(FLERR, "Region {} for fix wall/gran/region does not exist", idregion); // check if region properties changed between runs @@ -136,8 +136,8 @@ void FixWallGranRegion::post_force(int /*vflag*/) if (neighbor->ago == 0 && fix_rigid) { int tmp; - int *body = (int *) fix_rigid->extract("body", tmp); - auto mass_body = (double *) fix_rigid->extract("masstotal", tmp); + auto *body = (int *) fix_rigid->extract("body", tmp); + auto *mass_body = (double *) fix_rigid->extract("masstotal", tmp); if (atom->nmax > nmax) { memory->destroy(mass_rigid); nmax = atom->nmax;