|
ASCOT5
|
Diagnostic for collecting histograms representing the distribution function. More...
#include <stdlib.h>#include "../ascot5.h"#include "../math.h"#include "../consts.h"#include "../offload.h"#include "../particle.h"#include "hist.h"Go to the source code of this file.
Functions | |
| int | hist_init (histogram *data, int dimensions, hist_coordinate *coordinates, real *binmin, real *binmax, size_t *nbin) |
| Initialize the histogram object. | |
| void | hist_free (histogram *data) |
| Free allocated resources. | |
| void | hist_offload (histogram *data) |
| Offload the data to the accelerator. | |
| void | hist_update_fo (histogram *hist, particle_simd_fo *p_f, particle_simd_fo *p_i) |
| Update the histogram in the particle picture. | |
| void | hist_update_gc (histogram *hist, particle_simd_gc *p_f, particle_simd_gc *p_i) |
| Update the histogram in the GC picture. | |
Diagnostic for collecting histograms representing the distribution function.
The histogram can have an arbitrary number of dimensions consisting of any of the predefined coordinate axes.
Definition in file hist.c.
| int hist_init | ( | histogram * | data, |
| int | dimensions, | ||
| hist_coordinate * | coordinates, | ||
| real * | binmin, | ||
| real * | binmax, | ||
| size_t * | nbin ) |
| void hist_offload | ( | histogram * | data | ) |
| void hist_update_fo | ( | histogram * | hist, |
| particle_simd_fo * | p_f, | ||
| particle_simd_fo * | p_i ) |
| void hist_update_gc | ( | histogram * | hist, |
| particle_simd_gc * | p_f, | ||
| particle_simd_gc * | p_i ) |