Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5be506a6
Commit
5be506a6
authored
Jun 29, 2016
by
Matthieu Schaller
Browse files
Only test links when debugging
parent
9d290b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
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."
);
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment