ergo
|
Memory allocation/deallocation routines. More...
Functions | |
void * | ergo_malloc (size_t noOfBytes) |
void | ergo_free (void *p) |
void | report_memory_status () |
Variables | |
static double | globalNoOfBytesAllocated = 0 |
static int | globalMallocCount = 0 |
static int | globalFreeCount = 0 |
static pthread_mutex_t | globalMemStatLock = PTHREAD_MUTEX_INITIALIZER |
Memory allocation/deallocation routines.
void ergo_free | ( | void * | p | ) |
References 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 | noOfBytes | ) |
References do_output(), do_output_time(), globalMallocCount, globalMemStatLock, globalNoOfBytesAllocated, LOG_AREA_MAIN, LOG_AREA_UNDEFINED, LOG_CAT_ERROR, and LOG_CAT_INFO.
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 | ( | ) |
References do_output(), globalFreeCount, globalMallocCount, LOG_AREA_MAIN, and LOG_CAT_INFO.
|
static |
Referenced by ergo_free(), and report_memory_status().
|
static |
Referenced by ergo_malloc(), and report_memory_status().
|
static |
Referenced by ergo_free(), and ergo_malloc().
|
static |
Referenced by ergo_malloc().