!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Testing the runtime environment !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! This function interrogates the environment variable GK_VERBOSITY and returns its integer value. This is used to control the level of debug output (not diagnostic/physics output). Normal levels range from 0 to 5, with output getting heavier as the value increases. Values higher than 5 can be used for specialised/very heavy output.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(runtime_info_type), | intent(inout) | :: | self |
function get_verbosity(self)
implicit none
class(runtime_info_type), intent(inout) :: self
integer :: get_verbosity
character(len=10) :: verbosity_char
if( self%verbosity_initialized ) then
get_verbosity = self%verbosity
else
verbosity_char = ''
call get_environment_variable("GK_VERBOSITY", verbosity_char)
read (verbosity_char,'(I10)') get_verbosity
self%verbosity = get_verbosity
self%verbosity_initialized = .true.
end if
end function get_verbosity