100 subroutine track_memory (this, alloc_memory, error)
101 class(basemanager) :: this
102 integer(longint),
intent(in) :: alloc_memory
103 integer,
intent(out) :: error
105 this % available_local_memory = this % available_local_memory - alloc_memory
107 if (this % available_local_memory < 0)
then
109 call this % verbose_log_message(
'Run out of memory')
121 subroutine free_memory (this, alloc_memory, error)
122 class(basemanager) :: this
123 integer(longint),
intent(in) :: alloc_memory
124 integer,
intent(out) :: error
126 this % available_local_memory = this % available_local_memory + alloc_memory
128 if (this % available_local_memory > this % total_local_memory)
then
130 call this % verbose_log_message(
'Memory mismatch')