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 beebaea160
commit a829d607ce
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;