def update_state(td_state, job_results):
    """
    Updates the torsiondrive state with the compute jobs. The state is updated inplace

    Parameters
    ----------
    td_state : dict
        The current torsiondrive state
    job_results : dict
        A dictionary of completed jobs and job ID's

    Returns
    -------
    None
    """
    for grid_id_str, job_result_tuple_list in job_results.items():
        if grid_id_str not in td_state['grid_status']:
            td_state['grid_status'][grid_id_str] = []
        td_state['grid_status'][grid_id_str] += job_result_tuple_list
    return td_state