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