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

Corrected condition to create more spares at rebuild time.

parent 2d6c0123
Branches
Tags
2 merge requests!688Star formation (non-MPI),!684Add star particles on-the-fly
......@@ -862,7 +862,7 @@ void space_allocate_extras(struct space *s, int verbose) {
/* Do we have enough space for the extra sparts (i.e. we haven't used up any)
* ? */
if (nr_sparts + expected_num_extra_sparts > size_sparts) {
if (nr_actual_sparts + expected_num_extra_sparts > nr_sparts) {
/* Ok... need to put some more in the game */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment