def convert_composition_vector_to_dict( g, Xv ):
    """Convert a composition vector Xv into a dict, for a given gas g"""
    Xd = {}
    for iv, v in enumerate(Xv):
        if v > 0.0:
            Xd[g.species_name(iv)] = v
    return Xd