ASCOT5
|
Header file for step_ml_cashkarp.c. More...
#include "../../B_field.h"
#include "../../boozer.h"
#include "../../mhd.h"
#include "../../particle.h"
Go to the source code of this file.
Functions | |
void | step_ml_cashkarp (particle_simd_ml *p, real *h, real *hnext, real tol, B_field_data *Bdata) |
Integrate a magnetic field line step for a struct of markers. | |
void | step_ml_cashkarp_mhd (particle_simd_ml *p, real *h, real *hnext, real tol, B_field_data *Bdata, boozer_data *boozerdata, mhd_data *mhddata) |
Integrate a magnetic field line step for a struct of markers. | |
Header file for step_ml_cashkarp.c.
Definition in file step_ml_cashkarp.h.
void step_ml_cashkarp | ( | particle_simd_ml * | p, |
real * | h, | ||
real * | hnext, | ||
real | tol, | ||
B_field_data * | Bdata ) |
Integrate a magnetic field line step for a struct of markers.
This function calculates a magnetic field line step for a struct of NSIMD markers with Cash-Karp (adaptive RK5) simultaneously using SIMD instructions. All arrays in the function are of NSIMD length so vectorization can be performed directly without gather and scatter operations. Informs whether time step was accepted or rejected and provides a suggestion for the next time step.
p | marker struct that will be integrated |
h | NSIMD length array containing time step lengths |
hnext | suggestion for the next time step. Negative if rejected. |
tol | error tolerance |
Bdata | pointer to magnetic field data |
Definition at line 32 of file step_ml_cashkarp.c.
void step_ml_cashkarp_mhd | ( | particle_simd_ml * | p, |
real * | h, | ||
real * | hnext, | ||
real | tol, | ||
B_field_data * | Bdata, | ||
boozer_data * | boozerdata, | ||
mhd_data * | mhddata ) |
Integrate a magnetic field line step for a struct of markers.
This function calculates a magnetic field line step for a struct of NSIMD markers with Cash-Karp (adaptive RK5) simultaneously using SIMD instructions. All arrays in the function are of NSIMD length so vectorization can be performed directly without gather and scatter operations. Informs whether time step was accepted or rejected and provides a suggestion for the next time step.
p | marker struct that will be integrated |
h | NSIMD length array containing time step lengths |
hnext | suggestion for the next time step. Negative if rejected. |
tol | error tolerance |
Bdata | pointer to magnetic field data |
boozerdata | pointer to Boozer data |
mhddata | pointer to MHD data |
Definition at line 265 of file step_ml_cashkarp.c.