Commit 003adbcc authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make gpart a null pointer when running withou gparts

parent 95b97ce3
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment