Use const ref for mtop and inputrec in EnergyOutput initialization
[alexxy/gromacs.git] / src / gromacs / mdrun / md.cpp
index 5a302d26276ad841c83e4dac0cf81853d1d3cf19..d35ff541aebde12b428aaecbb6fe50458654bec1 100644 (file)
@@ -324,8 +324,8 @@ void gmx::LegacySimulator::do_md()
                                    simulationsShareState,
                                    ms);
     gmx::EnergyOutput energyOutput(mdoutf_get_fp_ene(outf),
-                                   top_global,
-                                   ir,
+                                   *top_global,
+                                   *ir,
                                    pull_work,
                                    mdoutf_get_fp_dhdl(outf),
                                    false,