This commit is contained in:
Axel Kohlmeyer
2021-04-19 08:44:46 -04:00
parent 1ad45d65d6
commit d60a247138

View File

@ -551,7 +551,7 @@ void PairHybrid::init_style()
// same style must not be used multiple times
for (istyle = 0; istyle < nstyles; istyle++) {
bool is_gpu = (((PairHybrid *)styles[m])->suffix_flag & Suffix::GPU);
bool is_gpu = (((PairHybrid *)styles[istyle])->suffix_flag & Suffix::GPU);
if (multiple[istyle] && is_gpu)
error->all(FLERR,"GPU package styles must not be used multiple times");
}