Commit cf77d882 authored by stamoor's avatar stamoor
Browse files

Adding error checks for Kokkos-incompatible features

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14517 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent def0d4ed
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ void Minimize::command(int narg, char **arg)
  if (update->laststep < 0)
    error->all(FLERR,"Too many iterations");

  if (lmp->kokkos)
    error->all(FLERR,"Cannot yet use minimize with Kokkos");

  lmp->init();
  update->minimize->setup();

+4 −0
Original line number Diff line number Diff line
@@ -53,4 +53,8 @@ E: Too many iterations
You must use a number of iterations that fit in a 32-bit integer
for minimization.

E: Cannot yet use minimize with Kokkos

This feature is not yet supported.

*/
+3 −0
Original line number Diff line number Diff line
@@ -701,6 +701,9 @@ void Pair::compute_dummy(int eflag, int vflag)
---------------------------------------------------------------------- */
void Pair::add_tally_callback(Compute *ptr)
{
  if (lmp->kokkos)
    error->all(FLERR,"Cannot yet use compute tally with Kokkos");

  int i,found=-1;

  for (i=0; i < num_tally_compute; ++i) {
+4 −0
Original line number Diff line number Diff line
@@ -304,6 +304,10 @@ E: Pair style requires a KSpace style

No kspace style is defined.

E: Cannot yet use compute tally with Kokkos

This feature is not yet supported.

E: Pair style does not support pair_write

The pair style does not have a single() function, so it can
+3 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@ PairHybrid::PairHybrid(LAMMPS *lmp) : Pair(lmp)

  outerflag = 0;
  respaflag = 0;

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

/* ---------------------------------------------------------------------- */
Loading