39 logical :: memutils_initialized=.false.
54 logical,
optional :: print_flag
57 memutils_initialized = .true.
70 character(len=*),
intent(in) :: text
71 integer,
intent(in),
optional :: unit
72 logical,
intent(in),
optional :: always
74 if(
PRESENT(always) )
then
75 if( .NOT.always )
return
82 end module memutils_mod
subroutine, public memutils_init(print_flag)
Initialize the memutils module.
logical, private print_memory_usage
Default behavior of print_memuse_stats()
subroutine, public print_memuse_stats(text, unit, always)
Print memory usage stats to stdout, or a particular file.
subroutine, public mpp_print_memuse_stats(text, unit)
Print the current memory high water mark to stderr, or the unit specified.
integer function stderr()
This function returns the current standard fortran unit numbers for error messages.
integer function mpp_npes()
Returns processor count for current pelist.
integer function mpp_pe()
Returns processor ID.
Reduction operations. Find the max of scalar a from the PEs in pelist result is also automatically br...
Reduction operations. Find the min of scalar a from the PEs in pelist result is also automatically br...