ASCOT5
Loading...
Searching...
No Matches
hdf5_interface.h
Go to the documentation of this file.
1
5#ifndef HDF5_INTERFACE_H5
6#define HDF5_INTERFACE_H5
7
8#include <hdf5.h>
9
10#include "ascot5.h"
11#include "simulate.h"
12#include "particle.h"
13
33
35 int input_active,
36 real** B_offload_array,
37 real** E_offload_array,
38 real** plasma_offload_array,
39 real** neutral_offload_array,
40 real** wall_offload_array,
41 int** wall_int_offload_array,
42 real** boozer_offload_array,
43 real** mhd_offload_array,
44 real** asigma_offload_array,
45 real** nbi_offload_array,
47 int* n_markers);
48
49int hdf5_interface_init_results(sim_offload_data* sim, char* qid, char* run);
50
51int hdf5_interface_write_state(char* fn, char* state, integer n,
53
55 real* diag_offload_array, char* out);
56
57void hdf5_generate_qid(char* qid);
58#endif
Main header file for ASCOT5.
double real
Definition ascot5.h:85
long integer
Definition ascot5.h:84
int hdf5_interface_init_results(sim_offload_data *sim, char *qid, char *run)
Initialize run group.
int hdf5_interface_read_input(sim_offload_data *sim, int input_active, 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 **nbi_offload_array, input_particle **p, int *n_markers)
Read and initialize input data.
int hdf5_interface_write_state(char *fn, char *state, integer n, particle_state *p)
Write marker state to HDF5 output.
input_group
Enum to represent different input groups for HDF5 file reading.
@ hdf5_input_marker
@ hdf5_input_plasma
@ hdf5_input_options
@ hdf5_input_wall
@ hdf5_input_neutral
@ hdf5_input_bfield
@ hdf5_input_efield
@ hdf5_input_boozer
@ hdf5_input_mhd
@ hdf5_input_nbi
@ hdf5_input_asigma
int hdf5_interface_write_diagnostics(sim_offload_data *sim, real *diag_offload_array, char *out)
Write diagnostics to HDF5 output.
void hdf5_generate_qid(char *qid)
Generate an identification number for a run.
Header file for particle.c.
Header file for simulate.c.
Wrapper for marker structs.
Definition particle.h:186
General representation of a marker.
Definition particle.h:40
Simulation offload struct.
Definition simulate.h:55