ergo
|
Memory allocation/deallocation routines. More...
#include <memory.h>
Go to the source code of this file.
Macros | |
#define | ergo_new(cnt, type) ((type*)ergo_malloc((cnt)*sizeof(type))) |
Functions | |
void * | ergo_malloc (size_t size) |
void | ergo_free (void *p) |
void | report_memory_status (void) |
Memory allocation/deallocation routines.
#define ergo_new | ( | cnt, | |
type | |||
) | ((type*)ergo_malloc((cnt)*sizeof(type))) |
void ergo_free | ( | void * | p | ) |
References free(), globalFreeCount, and globalMemStatLock.
Referenced by compute_2e_matrix_list_explicit(), compute_T_matrix_full(), compute_T_sparse_linear(), ddf_load_density_getSizes(), ddf_read_shells_and_density_matrices(), ddf_read_shells_and_density_matrices_sparse(), ddf_writeShellListAndDensityMatricesToFile(), ddf_writeShellListAndDensityMatricesToFile_sparse(), es_get_polarisability(), es_getexc(), es_mol_read_molecule(), get_dens_from_fock_full(), get_density(), get_euclidean_norm(), get_F_orbs(), get_largest_eigenvalue(), main(), multiply_matrices_general(), multiply_matrices_general_T_1(), test_mol(), test_small(), ErgoE2Evaluator::transform(), variable_free(), and Ergo::~Ergo().
void* ergo_malloc | ( | size_t | size | ) |
References do_output(), do_output_time(), globalMallocCount, globalMemStatLock, globalNoOfBytesAllocated, LOG_AREA_MAIN, LOG_AREA_UNDEFINED, LOG_CAT_ERROR, LOG_CAT_INFO, and malloc().
Referenced by compute_2e_matrix_list_explicit(), ddf_load_density_getSizes(), ddf_read_shells_and_density_matrices(), ddf_read_shells_and_density_matrices_sparse(), ddf_writeShellListAndDensityMatricesToFile(), ddf_writeShellListAndDensityMatricesToFile_sparse(), get_dens_from_fock_full(), get_density(), get_euclidean_norm(), get_F_orbs(), get_largest_eigenvalue(), multiply_matrices_general(), multiply_matrices_general_T_1(), and readMoleculeFileInMolFormat().
void report_memory_status | ( | void | ) |
References do_output(), globalFreeCount, globalMallocCount, LOG_AREA_MAIN, and LOG_CAT_INFO.