Unverified Commit f598ae7e authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

update/add error message for using hybrid pair styles with KOKKOS

parent 3a014a54
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ void PairHybrid::coeff(int narg, char **arg)
  if (!allocated) allocate();

  if (lmp->kokkos)
    error->all(FLERR,"Cannot yet use pair hybrid with Kokkos");
    error->all(FLERR,"Must use pair_style hybrid/kk with Kokkos");

  int ilo,ihi,jlo,jhi;
  force->bounds(FLERR,arg[0],atom->ntypes,ilo,ihi);
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ void PairHybridOverlay::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,"Must use pair_style hybrid/overlay/kk 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);