ASCOT5
|
Provides memory de/allocation routines for the libascot. More...
Go to the source code of this file.
Functions | |
input_particle * | libascot_allocate_input_particles (int nmrk) |
A routine to allocate an array of input particles. | |
particle_state * | libascot_allocate_particle_states (int nmrk) |
A routine to allocate an array of particle states. | |
real * | libascot_allocate_reals (size_t size) |
A routine to allocate an array of reals. | |
void | libascot_deallocate (void *arr) |
A wrapper to C stdlib free() | |
Provides memory de/allocation routines for the libascot.
Definition in file libascot_mem.c.
input_particle * libascot_allocate_input_particles | ( | int | nmrk | ) |
A routine to allocate an array of input particles.
nmrk | number of markers for which space is allocated |
Definition at line 16 of file libascot_mem.c.
particle_state * libascot_allocate_particle_states | ( | int | nmrk | ) |
A routine to allocate an array of particle states.
nmrk | number of markers for which space is allocated |
Definition at line 27 of file libascot_mem.c.
real * libascot_allocate_reals | ( | size_t | size | ) |
A routine to allocate an array of reals.
size | size of the array |
Definition at line 38 of file libascot_mem.c.
void libascot_deallocate | ( | void * | arr | ) |
A wrapper to C stdlib free()
arr | array to be freed |
Definition at line 48 of file libascot_mem.c.