int write_rungroup(sim_offload_data *sim, particle_state *ps, int n_tot, char *qid)
Create and store run group and marker inistate.
int pack_offload_array(sim_offload_data *sim, offload_package *offload_data, real **B_offload_array, real **E_offload_array, real **plasma_offload_array, real **neutral_offload_array, real **wall_offload_array, int **wall_int_offload_array, real **boozer_offload_array, real **mhd_offload_array, real **asigma_offload_array, real **offload_array, int **int_offload_array)
Prepare offload array to be offloaded.
int write_output(sim_offload_data *sim, particle_state *ps_gathered, int n_tot, real *diag_offload_array)
Store simulation output data.
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_offload_data *sim, int n_tot, input_particle *pin, particle_state **pout, int *nprts, real *B_offload_array)
Prepare markers for offload.
int offload_and_simulate(sim_offload_data *sim, int n_tot, int n_proc, particle_state *pin, offload_package *offload_data, real *offload_array, int *int_offload_array, int *n_gather, particle_state **pout, real *diag_offload_array)
Offload data to target, carry out the simulation, and return to host.
General representation of a marker.