Skip to content
Snippets Groups Projects
Commit d76a00ab authored by James Willis's avatar James Willis
Browse files

Store the number of hydro and gravity particles as a size_t.

parent 8e1c982d
No related branches found
No related tags found
1 merge request!578Swift velociraptor
...@@ -151,8 +151,8 @@ void velociraptor_invoke(struct engine *e) { ...@@ -151,8 +151,8 @@ void velociraptor_invoke(struct engine *e) {
struct space *s = e->s; struct space *s = e->s;
struct gpart *gparts = s->gparts; struct gpart *gparts = s->gparts;
const int nr_gparts = s->nr_gparts; const size_t nr_gparts = s->nr_gparts;
const int nr_hydro_parts = s->nr_parts; const size_t nr_hydro_parts = s->nr_parts;
const int nr_cells = s->nr_cells; const int nr_cells = s->nr_cells;
int *cell_node_ids; int *cell_node_ids;
......
...@@ -69,7 +69,7 @@ struct siminfo { ...@@ -69,7 +69,7 @@ struct siminfo {
/* VELOCIraptor interface. */ /* VELOCIraptor interface. */
int InitVelociraptor(char* config_name, char* output_name, struct cosmoinfo cosmo_info, struct unitinfo unit_info, struct siminfo sim_info); int InitVelociraptor(char* config_name, char* output_name, struct cosmoinfo cosmo_info, struct unitinfo unit_info, struct siminfo sim_info);
int InvokeVelociraptor(const int num_gravity_parts, const int num_hydro_parts, struct gpart *gravity_parts, const int *cell_node_ids, char* output_name); int InvokeVelociraptor(const size_t num_gravity_parts, const size_t num_hydro_parts, struct gpart *gravity_parts, const int *cell_node_ids, char* output_name);
/* VELOCIraptor wrapper functions. */ /* VELOCIraptor wrapper functions. */
void velociraptor_init(struct engine *e); void velociraptor_init(struct engine *e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment