Skip to content
Snippets Groups Projects
Commit 1fb5b57e authored by sjplimp's avatar sjplimp
Browse files

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@4332 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 9286c046
No related branches found
No related tags found
No related merge requests found
...@@ -179,6 +179,12 @@ void FixAdapt::init() ...@@ -179,6 +179,12 @@ void FixAdapt::init()
void FixAdapt::pre_force(int vflag) void FixAdapt::pre_force(int vflag)
{ {
if (update->ntimestep % nevery) return;
// variable evaluation may invoke computes so wrap with clear/add
modify->clearstep_compute();
for (int m = 0; m < nadapt; m++) { for (int m = 0; m < nadapt; m++) {
double value = input->variable->compute_equal(ivar[m]); double value = input->variable->compute_equal(ivar[m]);
...@@ -209,4 +215,6 @@ void FixAdapt::pre_force(int vflag) ...@@ -209,4 +215,6 @@ void FixAdapt::pre_force(int vflag)
} }
} }
} }
modify->addstep_compute(update->ntimestep + nevery);
} }
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