def single_point_hist_update(hist, x, fout, ifail):
    """
  Update the complete_history structure after a single call to f.
 
  single_point_hist_update(hist, x, fout, ifail)"""
    if ifail == 1:
        hist.failed_points.append(x)
    else:
        hist.good_points.append(x)
        hist.good_values.append(fout)
