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
003adbcc
Commit
003adbcc
authored
Mar 24, 2016
by
Matthieu Schaller
Browse files
Make gpart a null pointer when running withou gparts
parent
95b97ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
003adbcc
...
...
@@ -396,6 +396,7 @@ int main(int argc, char *argv[]) {
/* MATTHIEU: Temporary fix to preserve master */
if
(
!
with_gravity
)
{
free
(
gparts
);
gparts
=
NULL
;
for
(
size_t
k
=
0
;
k
<
Ngas
;
++
k
)
parts
[
k
].
gpart
=
NULL
;
Ngpart
=
0
;
...
...
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