Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
n-body_methods
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
CodeVault
hpc-kernels
n-body_methods
Commits
70b4a509
Commit
70b4a509
authored
8 years ago
by
Paul Heinzlreiter
Browse files
Options
Downloads
Patches
Plain Diff
* testing
parent
63b01760
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bh_tree_mpi/parallelization/MpiBodyComm.cpp
+6
-1
6 additions, 1 deletion
bh_tree_mpi/parallelization/MpiBodyComm.cpp
with
6 additions
and
1 deletion
bh_tree_mpi/parallelization/MpiBodyComm.cpp
+
6
−
1
View file @
70b4a509
...
...
@@ -157,7 +157,12 @@ namespace nbody {
btype
=
btype
.
Create_struct
(
3
,
this
->
blocklengths
,
this
->
displacements
,
this
->
datatypes
);
btype
.
Commit
();
MPI
::
COMM_WORLD
.
Bcast
(
MPI
::
BOTTOM
,
bodySize
,
btype
,
0
);
//MPI::COMM_WORLD.Bcast(MPI::BOTTOM, bodySize, btype, 0);
if
(
myRank
==
0
)
{
MPI
::
COMM_WORLD
.
Send
(
MPI
::
BOTTOM
,
bodySize
,
btype
,
1
,
0
);
}
else
if
(
myRank
==
1
)
{
MPI
::
COMM_WORLD
.
Recv
(
MPI
::
BOTTOM
,
bodySize
,
btype
,
0
,
0
);
}
btype
.
Free
();
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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