Subroutine to add log hook
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(pf_pfasst_t), | intent(inout) | :: | pf |
subroutine pf_logger_attach(pf)
type(pf_pfasst_t), intent(inout) :: pf
integer :: l, h
do h = PF_HOOK_LOG_ONE, PF_HOOK_LOG_ALL-1
call pf_add_hook(pf, 1, h, pf_logger_hook)
end do
do l = 1, pf%nlevels
do h = PF_HOOK_LOG_ALL, PF_HOOK_LOG_LAST
call pf_add_hook(pf, l, h, pf_logger_hook)
end do
end do
end subroutine pf_logger_attach