def rewrite(all_data):
    """Given a dictionary of values and keys, this method creates
    the appropriate new line for replacement in the header.f90 file."""
    tags = ['NS', 'NRTOT', 'NTIME', 'NX', 'NELEM']
    new_line = "       parameter ("
    new_line += (tags[0] + "=" + str(all_data[tags[0]]) + ", ")
    new_line += (tags[1] + "=" + str(all_data[tags[1]]) + ", ")
    new_line += (tags[2] + "=" + str(all_data[tags[2]]) + ",")
    new_line += (tags[3] + "=" + str(all_data[tags[3]]) + ",")
    new_line += (tags[4] + "=" + str(all_data[tags[4]]) + ")\t\n")
    return new_line