forked from lijiext/lammps
Error out if using pair hybrid with Kokkos, but not pair hybrid/overlay
This commit is contained in:
parent
a062944de9
commit
1e16fed9ab
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue