re-enable the "timers" command that got somehow lost

This commit is contained in:
Axel Kohlmeyer
2013-10-04 17:22:23 +02:00
parent b24a93d360
commit 30a6c8eec7

View File

@ -41,6 +41,7 @@
#include "update.h"
#include "neighbor.h"
#include "special.h"
#include "timer.h"
#include "variable.h"
#include "accelerator_cuda.h"
#include "error.h"
@ -583,6 +584,7 @@ int Input::execute_command()
else if (!strcmp(command,"thermo_modify")) thermo_modify();
else if (!strcmp(command,"thermo_style")) thermo_style();
else if (!strcmp(command,"timestep")) timestep();
else if (!strcmp(command,"timers")) timers();
else if (!strcmp(command,"uncompute")) uncompute();
else if (!strcmp(command,"undump")) undump();
else if (!strcmp(command,"unfix")) unfix();
@ -1537,6 +1539,13 @@ void Input::thermo_style()
/* ---------------------------------------------------------------------- */
void Input::timers()
{
timer->modify_params(narg,arg);
}
/* ---------------------------------------------------------------------- */
void Input::timestep()
{
if (narg != 1) error->all(FLERR,"Illegal timestep command");