Use const ref for mtop and inputrec in EnergyOutput initialization
[alexxy/gromacs.git] / src / gromacs / mdrun / minimize.cpp
index c46bbec827592184c63ae2676dc71fe70ad8d464..71ea473d500390c3208bcf36a0e762021ff8f85b 100644 (file)
@@ -1250,8 +1250,8 @@ void LegacySimulator::do_cg()
                                    simulationsShareState,
                                    ms);
     gmx::EnergyOutput energyOutput(mdoutf_get_fp_ene(outf),
-                                   top_global,
-                                   inputrec,
+                                   *top_global,
+                                   *inputrec,
                                    pull_work,
                                    nullptr,
                                    false,
@@ -1967,8 +1967,8 @@ void LegacySimulator::do_lbfgs()
                                    simulationsShareState,
                                    ms);
     gmx::EnergyOutput energyOutput(mdoutf_get_fp_ene(outf),
-                                   top_global,
-                                   inputrec,
+                                   *top_global,
+                                   *inputrec,
                                    pull_work,
                                    nullptr,
                                    false,
@@ -2735,8 +2735,8 @@ void LegacySimulator::do_steep()
                                    simulationsShareState,
                                    ms);
     gmx::EnergyOutput energyOutput(mdoutf_get_fp_ene(outf),
-                                   top_global,
-                                   inputrec,
+                                   *top_global,
+                                   *inputrec,
                                    pull_work,
                                    nullptr,
                                    false,