Error out if using pair hybrid with Kokkos, but not pair hybrid/overlay

This commit is contained in:
Stan Moore 2017-08-25 15:16:19 -06:00
parent a062944de9
commit 1e16fed9ab
2 changed files with 7 additions and 0 deletions

View File

@ -379,6 +379,9 @@ void PairHybrid::coeff(int narg, char **arg)
if (narg < 3) error->all(FLERR,"Incorrect args for pair coefficients");
if (!allocated) allocate();
if (lmp->kokkos)
error->all(FLERR,"Cannot yet use pair hybrid with Kokkos");
int ilo,ihi,jlo,jhi;
force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
force->bounds(FLERR,arg[1],atom->ntypes,jlo,jhi);

View File

@ -90,6 +90,10 @@ class PairHybrid : public Pair {
/* ERROR/WARNING messages:
E: Cannot yet use pair hybrid with Kokkos
This feature is not yet supported.
E: Illegal ... command
Self-explanatory. Check the input script syntax and compare to the