forked from lijiext/lammps
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:
parent
def0d4ed80
commit
cf77d882eb
|
@ -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();
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
*/
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue