use qualified auto and avoid redundant types

This commit is contained in:
Axel Kohlmeyer
2025-06-28 03:51:09 -04:00
parent 1bdf30103f
commit 669f60b692
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;