work around issues with Intel compilers compiling the GPU package

This commit is contained in:
Axel Kohlmeyer
2022-07-12 00:38:20 -04:00
parent f44841de69
commit d37249787e
2 changed files with 3 additions and 3 deletions

View File

@ -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<PairHybrid *>( force->pair);
auto hybrid = dynamic_cast<PairHybrid *>(force->pair);
for (int i = 0; i < hybrid->nstyles; i++)
if (!utils::strmatch(hybrid->keywords[i],"/gpu$"))
force->pair->no_virial_fdotr_compute = 1;

View File

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