From 30a6c8eec72e8dd872b8166bd0709c1509bde29d Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 4 Oct 2013 17:22:23 +0200 Subject: [PATCH] re-enable the "timers" command that got somehow lost --- src/input.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/input.cpp b/src/input.cpp index 17d32f7d7d..24b2016a26 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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");