pf_logger_attach Subroutine

public subroutine pf_logger_attach(pf)

Subroutine to add log hook

Arguments

Type IntentOptional AttributesName
type(pf_pfasst_t), intent(inout) :: pf

Calls

proc~~pf_logger_attach~~CallsGraph proc~pf_logger_attach pf_logger_attach proc~pf_add_hook pf_add_hook proc~pf_logger_attach->proc~pf_add_hook

Contents

Source Code


Source Code

  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