default arguments on polymorph/pure methods can lead to unexpected overloading in derived classes

argument for Integrate::setup() made explicit
This commit is contained in:
Axel Kohlmeyer
2018-02-22 07:53:58 -05:00
parent e1d1c87656
commit cf3887c5e0
14 changed files with 35 additions and 33 deletions

View File

@ -175,7 +175,7 @@ void Run::command(int narg, char **arg)
if (preflag || update->first_update == 0) {
lmp->init();
update->integrate->setup();
update->integrate->setup(1);
} else output->setup(0);
timer->init();
@ -216,7 +216,7 @@ void Run::command(int narg, char **arg)
if (preflag || iter == 0) {
lmp->init();
update->integrate->setup();
update->integrate->setup(1);
} else output->setup(0);
timer->init();