Fix out of sync checkpoint files in simulations sharing state
[alexxy/gromacs.git] / src / gromacs / modularsimulator / modularsimulator.cpp
index cfa8f8cf69898174c5b4e84bbb550b89eb16bd28..14a52c4d77a448bcdcd34bb3ce148a9c290ea60e 100644 (file)
@@ -474,7 +474,7 @@ void ModularSimulator::constructElementsAndSignallers()
     loggingSignallerBuilder.registerSignallerClient(compat::make_not_null(energySignaller.get()));
     auto trajectoryElement = trajectoryElementBuilder.build(
             fplog, nfile, fnm, mdrunOptions, cr, outputProvider, mdModulesNotifier, inputrec,
-            top_global, oenv, wcycle, startingBehavior);
+            top_global, oenv, wcycle, startingBehavior, simulationsShareState);
     loggingSignallerBuilder.registerSignallerClient(compat::make_not_null(trajectoryElement.get()));
 
     // Add checkpoint helper here since we need a pointer to the trajectory element and