error out in fix spring/self/kk with variable spring constant
This commit is contained in:
@ -79,6 +79,9 @@ void FixSpringSelfKokkos<DeviceType>::init()
|
||||
{
|
||||
FixSpringSelf::init();
|
||||
|
||||
if (kstyle != CONSTANT)
|
||||
error->all(FLERR, "Fix spring/self/kk does not support variable spring constants (yet)");
|
||||
|
||||
if (utils::strmatch(update->integrate_style,"^respa"))
|
||||
error->all(FLERR,"Cannot (yet) use respa with Kokkos");
|
||||
}
|
||||
|
||||
@ -32,8 +32,6 @@
|
||||
using namespace LAMMPS_NS;
|
||||
using namespace FixConst;
|
||||
|
||||
enum { NONE, CONSTANT, EQUAL, ATOM };
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
FixSpringSelf::FixSpringSelf(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
@ -26,6 +26,7 @@ namespace LAMMPS_NS {
|
||||
|
||||
class FixSpringSelf : public Fix {
|
||||
public:
|
||||
enum { NONE, CONSTANT, EQUAL, ATOM };
|
||||
FixSpringSelf(class LAMMPS *, int, char **);
|
||||
~FixSpringSelf() override;
|
||||
int setmask() override;
|
||||
|
||||
Reference in New Issue
Block a user