Adding error checks for Kokkos-incompatible features

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14517 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
stamoor 2016-01-28 23:32:16 +00:00
parent def0d4ed80
commit cf77d882eb
6 changed files with 21 additions and 0 deletions

View File

@ -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();

View File

@ -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.
*/

View File

@ -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) {

View File

@ -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

View File

@ -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");
}
/* ---------------------------------------------------------------------- */

View File

@ -93,6 +93,10 @@ Self-explanatory. Check the input script syntax and compare to the
documentation for the command. You can use -echo screen as a
command-line option when running LAMMPS to see the offending line.
E: Cannot yet use pair hybrid with Kokkos
This feature is not yet supported.
E: Pair style hybrid cannot have hybrid as an argument
Self-explanatory.