Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Plumed AlphaFold
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Kurečka
Plumed AlphaFold
Commits
fe99e338
There was an error fetching the commit references. Please try again later.
Commit
fe99e338
authored
13 years ago
by
Giovanni Bussi
Browse files
Options
Downloads
Patches
Plain Diff
Added Barrier() to PlumedCommunicator
parent
04faf110
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/PlumedCommunicator.cpp
+7
-0
7 additions, 0 deletions
src/PlumedCommunicator.cpp
src/PlumedCommunicator.h
+2
-1
2 additions, 1 deletion
src/PlumedCommunicator.h
with
9 additions
and
1 deletion
src/PlumedCommunicator.cpp
+
7
−
0
View file @
fe99e338
...
@@ -81,6 +81,13 @@ void PlumedCommunicator::Abort(int errorcode){
...
@@ -81,6 +81,13 @@ void PlumedCommunicator::Abort(int errorcode){
#endif
#endif
}
}
void
PlumedCommunicator
::
Barrier
()
const
{
#ifdef __PLUMED_MPI
assert
(
initialized
());
MPI_Barrier
(
communicator
);
#endif
}
MPI_Comm
&
PlumedCommunicator
::
Get_comm
(){
MPI_Comm
&
PlumedCommunicator
::
Get_comm
(){
return
communicator
;
return
communicator
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/PlumedCommunicator.h
+
2
−
1
View file @
fe99e338
...
@@ -59,7 +59,8 @@ public:
...
@@ -59,7 +59,8 @@ public:
void
Set_fcomm
(
void
*
comm
);
void
Set_fcomm
(
void
*
comm
);
/// Wrapper to MPI_Abort
/// Wrapper to MPI_Abort
void
Abort
(
int
);
void
Abort
(
int
);
/// Wrapper to MPI_Barrier
void
Barrier
()
const
;
/// Tests if MPI library is initialized
/// Tests if MPI library is initialized
static
bool
initialized
();
static
bool
initialized
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment