Commit 1e16fed9 authored by Stan Moore's avatar Stan Moore
Browse files

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

parent a062944d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
+4 −0
Original line number Diff line number Diff line
@@ -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