MPI-SCATCI 2.0
An MPI version of SCATCI
Loading...
Searching...
No Matches
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.
subroutine MemoryManager_module::init_memory (this, total_memory)
 Same as constructor, used to reinitialize te memory again (not really used)
subroutine MemoryManager_module::track_memory (this, elem_size, nelem, stat, array_name)
 Tracks memory allocation, usually called after an allocation.
subroutine MemoryManager_module::free_memory (this, elem_size, nelem)
 Tracks memory deallocation, usually called before a deallocation.
integer(longint) function MemoryManager_module::get_available_memory (this)
 Get currently available memory.
integer(longint) function MemoryManager_module::get_scaled_available_memory (this, scale_)
 Get currently available memory scaled.
subroutine MemoryManager_module::print_memory_report (this)
 Prints a very simple memory report.

Variables

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