error out on special atom styles
This commit is contained in:
@ -14,6 +14,7 @@
|
||||
#include "pair_hybrid_scaled.h"
|
||||
|
||||
#include "atom.h"
|
||||
#include "atom_vec.h"
|
||||
#include "comm.h"
|
||||
#include "error.h"
|
||||
#include "force.h"
|
||||
@ -243,6 +244,9 @@ void PairHybridScaled::settings(int narg, char **arg)
|
||||
error->all(FLERR,fmt::format("Must use pair_style {}/kk with Kokkos",
|
||||
force->pair_style));
|
||||
|
||||
if (atom->avec->forceclearflag)
|
||||
error->all(FLERR,"Atom style is not compatible with pair_style hybrid/scaled");
|
||||
|
||||
// delete old lists, since cannot just change settings
|
||||
|
||||
if (nstyles > 0) {
|
||||
|
||||
Reference in New Issue
Block a user