Skip to content
Snippets Groups Projects
Commit 003adbcc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make gpart a null pointer when running withou gparts

parent 95b97ce3
No related branches found
No related tags found
2 merge requests!136Master,!130Redistribute fixes
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment