Made g_tune_pme work correctly when ir->init_step > 0
authorCarsten Kutzner <ckutzne@gwdg.de>
Tue, 6 Nov 2012 13:03:25 +0000 (14:03 +0100)
committerCarsten Kutzner <ckutzne@gwdg.de>
Tue, 6 Nov 2012 13:03:25 +0000 (14:03 +0100)
commitff5db8c24f90102daced6bf1e570e3ab4123867d
treed93525d720154993d2f831765dd25406074de04d
parentb28537ebbc4e4d228271b9cc378e193044104a95
Made g_tune_pme work correctly when ir->init_step > 0

For .tpr files with ir->init_step > 0, the benchmarks do not have the
correct number of steps. This fix sets init_step to zero for the benchmark .tpr
files but keeps the original init_step value for the launch .tpr file.
Benchmarking should now work correctly for .tpr files any init_step value,
regardless whether the .cpt file was provided to g_tune_pme or not.

Change-Id: I9d44647d4c71e1514709ee4d6477bd416f455f42
src/tools/gmx_tune_pme.c