AcouSTO  version 2.0
allocation.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRINT_MEM(s, memory)
 
#define calloc(n, size)   calloc(n,size); logger(LOG_DEBUG," Allocating %d*%d for " #size "\n",n,size); TOTAL_MEMORY += n*size;
 
#define malloc(size)   malloc(size); logger(LOG_DEBUG," Allocating %d for " #size "\n",size); TOTAL_MEMORY += size;
 
#define _SAFE_FREE(x)   if(x){ logger(LOG_DEBUG,"Freeing [" #x "] at %p\n",x); free(x) ; logger(LOG_DEBUG,"Freed [" #x "]\n");}
 
#define _SAFE_FREE_2d(x, d)
 
#define _SAFE_FREE_3d(x, d1, d2)
 
#define _MALLOC_3D(x, d1, d2, d3, type)
 
#define _MALLOC_2D(x, d1, d2, type)
 
#define _CALLOC_2D(x, d1, d2, type)
 
#define CREATE_VEC(v, lsize)   v = calloc(lsize, sizeof(COMPLEX))
 
#define CREATE_MAT(mat, lr, lc)   _MALLOC_2D(mat,lr,lc,COMPLEX)
 
#define VecZeroEntries(V, n)   for(i=0;i<n;i++){ V[i] = 0.0+ I*0.0; }
 
#define MatZeroEntries(M, n, m)
 
#define VecDestroy(v)   if(v) free(v);
 
#define MatDestroy(m)   free(m);