Use const ref for mtop and inputrec in EnergyOutput initialization
[alexxy/gromacs.git] / src / gromacs / mdrun / rerun.cpp
index 2ef3a87e82234fa3dc6f2498d495d87999149844..a73f407dc72cacded5bba8bdef175c02ec7c15e9 100644 (file)
@@ -301,8 +301,8 @@ void gmx::LegacySimulator::do_rerun()
                                    simulationsShareState,
                                    ms);
     gmx::EnergyOutput energyOutput(mdoutf_get_fp_ene(outf),
-                                   top_global,
-                                   ir,
+                                   *top_global,
+                                   *ir,
                                    pull_work,
                                    mdoutf_get_fp_dhdl(outf),
                                    true,