def _get_resids_val(case, prom_name):
    """
    Retrieve residuals associated with the given output in the given case.

    Parameters
    ----------
    case : Case
        The CaseReader Case from which residuals are to be retrieved.
    prom_name : str
        The promoted name of the output whose residuals are to be retrieved.

    Returns
    -------
    np.ndarray
        The residuals of the given output in the given case.

    """
    listed_op = case.list_outputs(prom_name=True, residuals=True, val=False, out_stream=None)
    d = {meta['prom_name']: meta for _, meta in listed_op}
    return d[prom_name]['resids']