diff --git a/src/GPU/fix_gpu.cpp b/src/GPU/fix_gpu.cpp index 85b4f8e0e9..3ca57133a9 100644 --- a/src/GPU/fix_gpu.cpp +++ b/src/GPU/fix_gpu.cpp @@ -275,7 +275,7 @@ void FixGPU::init() // also disallow GPU neighbor lists for hybrid styles if (force->pair_match("^hybrid",0) != nullptr) { - auto hybrid = dynamic_cast( force->pair); + auto hybrid = dynamic_cast(force->pair); for (int i = 0; i < hybrid->nstyles; i++) if (!utils::strmatch(hybrid->keywords[i],"/gpu$")) force->pair->no_virial_fdotr_compute = 1; diff --git a/src/GPU/fix_nh_gpu.cpp b/src/GPU/fix_nh_gpu.cpp index e90be98d6b..53999fe52c 100644 --- a/src/GPU/fix_nh_gpu.cpp +++ b/src/GPU/fix_nh_gpu.cpp @@ -77,7 +77,7 @@ void FixNHGPU::remap() double oldlo,oldhi; double expfac; - auto * _noalias const x = (dbl3_t *) atom->x[0]; + dbl3_t * _noalias const x = (dbl3_t *) atom->x[0]; int *mask = atom->mask; int nlocal = atom->nlocal; double *h = domain->h; @@ -414,7 +414,7 @@ void FixNHGPU::nh_v_press() return; } - auto * _noalias const v = (dbl3_t *)atom->v[0]; + dbl3_t * _noalias const v = (dbl3_t *)atom->v[0]; int *mask = atom->mask; int nlocal = atom->nlocal; if (igroup == atom->firstgroup) nlocal = atom->nfirst;