Commit 7cfaacbe authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Use the correct array of star particles (the selected ones) when writing a snaphot

parent cfd683d0
......@@ -1453,7 +1453,7 @@ void write_output_parallel(struct engine* e, const char* baseName,
Nstars_written);
/* Select the fields to write */
stars_write_particles(sparts, list, &num_fields);
stars_write_particles(sparts_written, list, &num_fields);
}
} break;
......
......@@ -1129,7 +1129,7 @@ void write_output_serial(struct engine* e, const char* baseName,
Nstars_written);
/* Select the fields to write */
stars_write_particles(sparts, list, &num_fields);
stars_write_particles(sparts_written, list, &num_fields);
}
} break;
......
......@@ -949,7 +949,7 @@ void write_output_single(struct engine* e, const char* baseName,
Nstars_written);
/* Select the fields to write */
stars_write_particles(sparts, list, &num_fields);
stars_write_particles(sparts_written, list, &num_fields);
}
} break;
......
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