14 int Memory::nAllocate_ = 0;
17 int Memory::nDeallocate_ = 0;
20 int Memory::total_ = 0;
35 {
return nAllocate_; }
41 {
return nDeallocate_; }
60 communicator.Allreduce(&maxLocal, &maxGlobal, 1, MPI::INT, MPI::MAX);
static int max()
Return the maximum amount of allocated heap memory thus far.
static int nAllocate()
Return number of times allocate() was called.
static void initStatic()
Call this just to guarantee initialization of static memory.
static int total()
Return total amount of memory currently allocated.
static int nDeallocate()
Return number of times deallocate() was called.
Utility classes for scientific computation.