int write_output(sim_data *sim, particle_state *ps_gathered, int n_tot)
Store simulation output data.
int offload_and_simulate(sim_data *sim, int n_tot, int n_proc, particle_state *pin, int *n_gather, particle_state **pout)
Offload data to target, carry out the simulation, and return to host.
void print_marker_summary(particle_state *ps, int n_tot)
Writes a summary of what happened to the markers during simulation.
int prepare_markers(sim_data *sim, int n_tot, input_particle *pin, particle_state **pout, int *nprts)
Prepare markers for offload.
int write_rungroup(sim_data *sim, particle_state *ps, int n_tot, char *qid)
Create and store run group and marker inistate.
General representation of a marker.