Skip to content
GitLab
Menu
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
7cfaacbe
Commit
7cfaacbe
authored
Nov 13, 2018
by
Matthieu Schaller
Browse files
Use the correct array of star particles (the selected ones) when writing a snaphot
parent
cfd683d0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
7cfaacbe
...
...
@@ -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
;
...
...
src/serial_io.c
View file @
7cfaacbe
...
...
@@ -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
;
...
...
src/single_io.c
View file @
7cfaacbe
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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