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
6c9d0947
Commit
6c9d0947
authored
9 years ago
by
James Willis
Browse files
Options
Downloads
Patches
Plain Diff
Changed the cell_max_tag to 2^29 to prevent MPI tag collisions.
parent
62727f47
No related branches found
No related tags found
2 merge requests
!136
Master
,
!82
Fix MPI tag collision Issue #68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cell.h
+6
-1
6 additions, 1 deletion
src/cell.h
with
6 additions
and
1 deletion
src/cell.h
+
6
−
1
View file @
6c9d0947
...
@@ -29,7 +29,12 @@ struct space;
...
@@ -29,7 +29,12 @@ struct space;
/* Some constants. */
/* Some constants. */
#define cell_sid_dt 13
#define cell_sid_dt 13
#define cell_max_tag (1 << 16)
/* Max tag size set to 2^29 to take into account some MPI implementations
* that use 2^31 as the upper bound on MPI tags and the fact that
* cell_next_tag is multiplied by 2 when passed to an MPI function.
* The maximum was lowered by a further factor of 2 to be on the safe side.*/
#define cell_max_tag (1 << 29)
/* Global variables. */
/* Global variables. */
extern
int
cell_next_tag
;
extern
int
cell_next_tag
;
...
...
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