def _get_cbend_msg(is_mag_phase, is_sort1):
    """get the header for the CBEND result"""
    if is_mag_phase:
        raise NotImplementedError()
    else:
        realimag_magphase = (
            '                                                          (REAL/IMAGINARY)'
            )
    msg = [
        '                         C O M P L E X   S T R E S S E S   I N   B E N D   E L E M E N T S   ( C B E N D ) '
        , realimag_magphase,
        '                        CIRC.      LOCATION         LOCATION         LOCATION         LOCATION'
        ]
    if is_sort1:
        msg.append(
            """   ELEMENT-ID  GRID END  ANG.         C                D                E                F
"""
            )
    else:
        msg.append(
            """   FREQUENCY   GRID END  ANG.         C                D                E                F
"""
            )
    return msg
