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
f3c535b4
Commit
f3c535b4
authored
Apr 11, 2016
by
Matthieu Schaller
Browse files
Get rid of the parts if we don't have any
parent
55720e1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/main.c
View file @
f3c535b4
...
...
@@ -344,6 +344,12 @@ int main(int argc, char *argv[]) {
for
(
size_t
k
=
0
;
k
<
Ngas
;
++
k
)
parts
[
k
].
gpart
=
NULL
;
Ngpart
=
0
;
}
if
(
!
with_hydro
)
{
free
(
parts
);
parts
=
NULL
;
for
(
size_t
k
=
0
;
k
<
Ngpart
;
++
k
)
if
(
gparts
[
k
].
id
>
0
)
error
(
"Linking problem"
);
Ngas
=
0
;
}
/* Get the total number of particles across all nodes. */
long
long
N_total
[
2
]
=
{
0
,
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