ASCOT5
|
Header file for endcond.c. More...
Go to the source code of this file.
Enumerations | |
enum | ENDCOND_FLAG { endcond_tlim = 0x1 , endcond_emin = 0x2 , endcond_therm = 0x4 , endcond_wall = 0x8 , endcond_rhomin = 0x10 , endcond_rhomax = 0x20 , endcond_polmax = 0x40 , endcond_tormax = 0x80 , endcond_cpumax = 0x100 , endcond_hybrid = 0x200 , endcond_neutr = 0x400 , endcond_ioniz = 0x800 } |
Marker end condition bit masks. More... | |
Functions | |
void | endcond_check_gc (particle_simd_gc *p_f, particle_simd_gc *p_i, sim_data *sim) |
Check end conditions for GC markers. | |
void | endcond_check_fo (particle_simd_fo *p_f, particle_simd_fo *p_i, sim_data *sim) |
Check end conditions for FO markers. | |
void | endcond_check_ml (particle_simd_ml *p_f, particle_simd_ml *p_i, sim_data *sim) |
Check end conditions for ML markers. | |
void | endcond_parse (int endcond, int *endconds) |
Split endcond to an array of end conditions. | |
void | endcond_parse2str (int endcond, char *str) |
Represent end condition in human-readable format. | |
Header file for endcond.c.
Contains a list declaring all end conditions.
Definition in file endcond.h.
enum ENDCOND_FLAG |
Marker end condition bit masks.
These bit masks are used to mark specific end condition as being active.
void endcond_check_gc | ( | particle_simd_gc * | p_f, |
particle_simd_gc * | p_i, | ||
sim_data * | sim ) |
Check end conditions for GC markers.
The end conditions are checked for all markers within the SIMD marker struct.
p_f | pointer to SIMD struct storing marker states at the end of current time-step |
p_i | pointer to SIMD struct storing marker states at the beginning of current time-step |
sim | pointer to simulation data struct |
void endcond_check_fo | ( | particle_simd_fo * | p_f, |
particle_simd_fo * | p_i, | ||
sim_data * | sim ) |
Check end conditions for FO markers.
The end conditions are checked for all markers within the SIMD marker struct.
p_f | pointer to SIMD struct storing marker states at the end of current time-step |
p_i | pointer to SIMD struct storing marker states at the beginning of current time-step |
sim | pointer to simulation data struct |
void endcond_check_ml | ( | particle_simd_ml * | p_f, |
particle_simd_ml * | p_i, | ||
sim_data * | sim ) |
Check end conditions for ML markers.
The end conditions are checked for all markers within the SIMD marker struct.
p_f | pointer to SIMD struct storing marker states at the end of current time-step |
p_i | pointer to SIMD struct storing marker states at the beginning of current time-step |
sim | pointer to simulation data struct |
void endcond_parse | ( | int | endcond, |
int * | endconds ) |
Split endcond to an array of end conditions.
This function splits the bit array end condition to an array where the active end conditions are presented by numbers. Number for each end condition are defined in this function.
endcond | bit array representing marker end conditions |
endconds | integer array large enough to hold all end conditions |
void endcond_parse2str | ( | int | endcond, |
char * | str ) |
Represent end condition in human-readable format.
This function takes end condition represented as integer, as given by endcond_parse().
endcond | end condition integer representation |
str | end condition as human-readable string |