initialiaze error handler
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | pid | process ID (preferrably MPI rank) |
||
procedure(handle), | optional | pointer | :: | error_handler | optional external error handler |
subroutine init_error_handling(pid, error_handler)
!> process ID (preferrably MPI rank)
integer, intent(in) :: pid
!> optional external error handler
procedure(handle), pointer, optional :: error_handler
process_id = pid
if (present(error_handler)) then
custom_handler => error_handler
endif
end subroutine init_error_handling