Skip to content
GitLab
Menu
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
bdc54ed6
Commit
bdc54ed6
authored
Mar 20, 2018
by
Matthieu Schaller
Browse files
Only check the part<->gpart links in space_init() if we generate gas from ICs or replicate the ICs.
parent
61eee93e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/space.c
View file @
bdc54ed6
...
...
@@ -2909,11 +2909,11 @@ void space_init(struct space *s, const struct swift_params *params,
gparts
=
s
->
gparts
;
Npart
=
s
->
nr_parts
;
Ngpart
=
s
->
nr_gparts
;
}
#ifdef SWIFT_DEBUG_CHECKS
part_verify_links
(
parts
,
gparts
,
sparts
,
Npart
,
Ngpart
,
Nspart
,
1
);
part_verify_links
(
parts
,
gparts
,
sparts
,
Npart
,
Ngpart
,
Nspart
,
1
);
#endif
}
/* Are we replicating the space ? */
if
(
replicate
<
1
)
...
...
@@ -2927,11 +2927,11 @@ void space_init(struct space *s, const struct swift_params *params,
Npart
=
s
->
nr_parts
;
Ngpart
=
s
->
nr_gparts
;
Nspart
=
s
->
nr_sparts
;
}
#ifdef SWIFT_DEBUG_CHECKS
part_verify_links
(
parts
,
gparts
,
sparts
,
Npart
,
Ngpart
,
Nspart
,
1
);
part_verify_links
(
parts
,
gparts
,
sparts
,
Npart
,
Ngpart
,
Nspart
,
1
);
#endif
}
/* Decide on the minimal top-level cell size */
const
double
dmax
=
max3
(
s
->
dim
[
0
],
s
->
dim
[
1
],
s
->
dim
[
2
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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