ASCOT5
Loading...
Searching...
No Matches
ascot5_main.h
Go to the documentation of this file.
1
9#ifndef ASCOT5_MAIN_H
10#define ASCOT5_MAIN_H
11
12#include "ascot5.h"
13#include "simulate.h"
14
16 sim_data* sim, int n_tot, input_particle* pin, particle_state** pout,
17 int* nprts);
18
19int write_rungroup(sim_data* sim, particle_state* ps, int n_tot, char* qid);
20
22 sim_data* sim, int n_tot, int n_proc, particle_state* pin,
23 int* n_gather, particle_state** pout);
24
25int write_output(sim_data* sim, particle_state* ps_gathered, int n_tot);
26
27void print_marker_summary(particle_state* ps, int n_tot);
28
29#endif
Main header file for ASCOT5.
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.
Header file for simulate.c.
Wrapper for marker structs.
Definition particle.h:186
General representation of a marker.
Definition particle.h:40
Simulation data struct.
Definition simulate.h:57