-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Obtain the replicas communicator from GROMACS
Simplified version of the code in Colvars/gromacs#4 Patch core GROMACS files
- Loading branch information
1 parent
dd8bd4d
commit 7467faa
Showing
6 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/src/gromacs/mdrun/runner.cpp b/src/gromacs/mdrun/runner.cpp | ||
index 321833a6d6..e847921390 100644 | ||
--- a/src/gromacs/mdrun/runner.cpp | ||
+++ b/src/gromacs/mdrun/runner.cpp | ||
@@ -1837,6 +1837,7 @@ int Mdrunner::mdrunner() | ||
if (thisRankHasDuty(cr, DUTY_PP)) | ||
{ | ||
setupNotifier.notify(*cr); | ||
+ setupNotifier.notify(ms); | ||
setupNotifier.notify(&atomSets); | ||
setupNotifier.notify(mtop); | ||
setupNotifier.notify(inputrec->pbcType); | ||
diff --git a/src/gromacs/mdrunutility/mdmodulesnotifiers.h b/src/gromacs/mdrunutility/mdmodulesnotifiers.h | ||
index 913cb0b3c4..76c8ebc09a 100644 | ||
--- a/src/gromacs/mdrunutility/mdmodulesnotifiers.h | ||
+++ b/src/gromacs/mdrunutility/mdmodulesnotifiers.h | ||
@@ -62,6 +62,7 @@ struct gmx_mtop_t; | ||
class WarningHandler; | ||
enum class PbcType : int; | ||
struct t_inputrec; | ||
+struct gmx_multisim_t; | ||
|
||
namespace gmx | ||
{ | ||
@@ -395,6 +396,7 @@ struct MDModulesNotifiers | ||
const SimulationTimeStep&, | ||
const EnsembleTemperature&, | ||
const t_commrec&, | ||
+ const gmx_multisim_t*, | ||
const MdRunInputFilename&, | ||
const EdrOutputFilename&, | ||
const PlumedInputFilename&>::type simulationSetupNotifier_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters