40 logical :: memutils_initialized=.false.
55 logical,
optional :: print_flag
58 memutils_initialized = .true.
71 character(len=*),
intent(in) :: text
72 integer,
intent(in),
optional :: unit
73 logical,
intent(in),
optional :: always
75 if(
PRESENT(always) )
then
76 if( .NOT.always )
return
83 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...