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
5be506a6
Commit
5be506a6
authored
8 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Only test links when debugging
parent
9d290b1b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!118
One major change to replace all gpart id/parts with the new id_or_neg_offset.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+2
-0
2 additions, 0 deletions
src/engine.c
with
2 additions
and
0 deletions
src/engine.c
+
2
−
0
View file @
5be506a6
...
...
@@ -2453,6 +2453,7 @@ void engine_split(struct engine *e, struct partition *initial_partition) {
/* Re-link the parts. */
part_relink_parts
(
s
->
gparts
,
s
->
nr_gparts
,
s
->
parts
);
#ifdef SWIFT_DEBUG_CHECKS
/* Verify that the links are correct */
for
(
size_t
k
=
0
;
k
<
s
->
nr_gparts
;
++
k
)
{
...
...
@@ -2472,6 +2473,7 @@ void engine_split(struct engine *e, struct partition *initial_partition) {
if
(
s
->
parts
[
k
].
gpart
!=
NULL
&&
s
->
parts
[
k
].
gpart
->
id_or_neg_offset
!=
-
k
)
error
(
"Linking problem !"
);
}
#endif
#else
error
(
"SWIFT was not compiled with MPI support."
);
...
...
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