MPI-SCATCI  2.0
An MPI version of SCATCI
MemoryManager_module.f90 File Reference

Go to the source code of this file.

Data Types

type  memorymanager_module::memorymanager
 This is a simple class to handle memory management tracking. More...
 

Modules

module  memorymanager_module
 Memory manager module.
 

Functions/Subroutines

subroutine memorymanager_module::memorymanager_ctor (this, total_memory)
 Constructor, used to initialize total available memory. More...
 
subroutine memorymanager_module::init_memory (this, total_memory)
 Same as constructor, used to reinitialize te memory again (not really used) More...
 
subroutine memorymanager_module::track_memory (this, elem_size, nelem, stat, array_name)
 Tracks memory allocation, usually called after an allocation. More...
 
subroutine memorymanager_module::free_memory (this, elem_size, nelem)
 Tracks memory deallocation, usually called before a deallocation. More...
 
integer(longint) function memorymanager_module::get_available_memory (this)
 Get currently available memory. More...
 
integer(longint) function memorymanager_module::get_scaled_available_memory (this, scale_)
 Get currently available memory scaled. More...
 
subroutine memorymanager_module::print_memory_report (this)
 Prints a very simple memory report. More...
 

Variables

type(memorymanager), public memorymanager_module::master_memory
 This is the global memory manager. More...