subroutine recv_error(err) type(w90_error_type), allocatable, intent(out) :: err allocate (err) err%code = code_remote end subroutine recv_error