![]() |
Karamelo
714599e9
Parallel Material Point Method Simulator
|
This class handles the allocation of all large vectors and arrays. This class is directly herited (aka copied) from LAMMPS.
Create/grow/destroy vecs and multidim arrays with contiguous memory blocks only use with primitive data types, e.g. 1d vec of ints, 2d array of doubles fail() prevents use with pointers, e.g. 1d vec of int*, due to mismatched destroy avoid use with non-primitive data types to avoid code bloat for these other cases, use smalloc/srealloc/sfree directly
Public Member Functions | |
void | fail (string) |
Erroneous usage of templated create/grow functions. | |
void | sfree (void *) |
Safe free. | |
void * | smalloc (bigint n, string) |
Safe malloc. | |
void * | srealloc (void *, bigint n, string) |
Safe reallocation. | |