Skip to content
Snippets Groups Projects
Commit 8cb665f0 authored by Gareth Tribello's avatar Gareth Tribello
Browse files

Added functionality to throw error when time step changes and PLUMED is being used

parent cb8c51e3
No related branches found
No related tags found
No related merge requests found
...@@ -446,6 +446,11 @@ void FixPlumed::min_post_force(int vflag) ...@@ -446,6 +446,11 @@ void FixPlumed::min_post_force(int vflag)
post_force(vflag); post_force(vflag);
} }
void FixPlumed::reset_dt()
{
error->all(FLERR,"cannot reset_dt within a fix plumed action");
}
double FixPlumed::compute_scalar() double FixPlumed::compute_scalar()
{ {
return bias; return bias;
......
...@@ -41,6 +41,7 @@ class FixPlumed : public Fix { ...@@ -41,6 +41,7 @@ class FixPlumed : public Fix {
void post_force_respa(int, int, int); void post_force_respa(int, int, int);
void min_post_force(int); void min_post_force(int);
double compute_scalar(); double compute_scalar();
void reset_dt();
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment