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

Updated VELOCIraptor interface to include the number of gas particles.

parent 16414e89
Branches
Tags
1 merge request!578Swift velociraptor
......@@ -152,6 +152,7 @@ void velociraptor_invoke(struct engine *e) {
struct space *s = e->s;
struct gpart *gparts = s->gparts;
const int nr_gparts = s->nr_gparts;
const int nr_hydro_parts = s->nr_parts;
const int nr_cells = s->nr_cells;
int *cell_node_ids;
......@@ -177,9 +178,9 @@ void velociraptor_invoke(struct engine *e) {
snprintf(outputFileName, FILENAME_BUFFER_SIZE, "%s_%04e.VELOCIraptor", e->stfBaseName,
e->time);
}
InvokeVelociraptor(nr_gparts, gparts, cell_node_ids, outputFileName);
InvokeVelociraptor(nr_gparts, nr_hydro_parts, gparts, cell_node_ids, outputFileName);
/* Free cell node ids after VELOCIraptor has copied them. */
free(cell_node_ids);
}
......@@ -69,7 +69,7 @@ struct siminfo {
/* VELOCIraptor interface. */
void InitVelociraptor(char* config_name, char* output_name, struct cosmoinfo cosmo_info, struct unitinfo unit_info, struct siminfo sim_info);
void InvokeVelociraptor(const int num_gravity_parts, struct gpart *gravity_parts, const int *cell_node_ids, char* output_name);
void InvokeVelociraptor(const int num_gravity_parts, const int num_hydro_parts, struct gpart *gravity_parts, const int *cell_node_ids, char* output_name);
/* VELOCIraptor wrapper functions. */
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