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:
@ -50,6 +50,9 @@ void Minimize::command(int narg, char **arg)
|
|||||||
if (update->laststep < 0)
|
if (update->laststep < 0)
|
||||||
error->all(FLERR,"Too many iterations");
|
error->all(FLERR,"Too many iterations");
|
||||||
|
|
||||||
|
if (lmp->kokkos)
|
||||||
|
error->all(FLERR,"Cannot yet use minimize with Kokkos");
|
||||||
|
|
||||||
lmp->init();
|
lmp->init();
|
||||||
update->minimize->setup();
|
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
|
You must use a number of iterations that fit in a 32-bit integer
|
||||||
for minimization.
|
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)
|
void Pair::add_tally_callback(Compute *ptr)
|
||||||
{
|
{
|
||||||
|
if (lmp->kokkos)
|
||||||
|
error->all(FLERR,"Cannot yet use compute tally with Kokkos");
|
||||||
|
|
||||||
int i,found=-1;
|
int i,found=-1;
|
||||||
|
|
||||||
for (i=0; i < num_tally_compute; ++i) {
|
for (i=0; i < num_tally_compute; ++i) {
|
||||||
|
|||||||
@ -304,6 +304,10 @@ E: Pair style requires a KSpace style
|
|||||||
|
|
||||||
No kspace style is defined.
|
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
|
E: Pair style does not support pair_write
|
||||||
|
|
||||||
The pair style does not have a single() function, so it can
|
The pair style does not have a single() function, so it can
|
||||||
|
|||||||
@ -42,6 +42,9 @@ PairHybrid::PairHybrid(LAMMPS *lmp) : Pair(lmp)
|
|||||||
|
|
||||||
outerflag = 0;
|
outerflag = 0;
|
||||||
respaflag = 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
|
documentation for the command. You can use -echo screen as a
|
||||||
command-line option when running LAMMPS to see the offending line.
|
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
|
E: Pair style hybrid cannot have hybrid as an argument
|
||||||
|
|
||||||
Self-explanatory.
|
Self-explanatory.
|
||||||
|
|||||||
Reference in New Issue
Block a user