Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
95988d83
Commit
95988d83
authored
10 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
fix call to mpi_bcast to use the correct index type.
Former-commit-id: b4fbc7573bf94eb2452e0881cf6c4e31ac66bde1
parent
477abb62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+5
-0
5 additions, 0 deletions
src/engine.c
with
5 additions
and
0 deletions
src/engine.c
+
5
−
0
View file @
95988d83
...
...
@@ -541,8 +541,13 @@ void engine_repartition ( struct engine *e ) {
}
/* Broadcast the result of the partition. */
#if IDXTYPEWIDTH==32
if
(
MPI_Bcast
(
nodeIDs
,
nr_cells
,
MPI_INT
,
0
,
MPI_COMM_WORLD
)
!=
MPI_SUCCESS
)
error
(
"Failed to bcast the node IDs."
);
#else
if
(
MPI_Bcast
(
nodeIDs
,
nr_cells
,
MPI_LONG_LONG_INT
,
0
,
MPI_COMM_WORLD
)
!=
MPI_SUCCESS
)
error
(
"Failed to bcast the node IDs."
);
#endif
/* Set the cell nodeIDs and clear any non-local parts. */
for
(
k
=
0
;
k
<
nr_cells
;
k
++
)
{
...
...
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