handle_generic_error Subroutine

private subroutine handle_generic_error(iounit, message)

Handler to treat any other kind of errors

Arguments

TypeIntentOptionalAttributesName
integer, intent(in) :: iounit

I/O unit to write error to

character(len=*), intent(in) :: message

Error message


Contents

Source Code


Source Code

    subroutine handle_generic_error(iounit, message)

        !> I/O unit to write error to
        integer, intent(in) :: iounit
        !> Error message
        character(len=*), intent(in) :: message

        write(unit=iounit, fmt=*) "Unexpected problem!"
        write(unit=iounit, fmt=*) message

    end subroutine handle_generic_error