if (idx != DoFHandler<1>::invalid_dof_index)
i->set_index (level, d,
- (indices.n_elements() == 0)?
+ (indices.size() == 0)?
(new_numbers[idx]) :
(new_numbers[indices.index_within_set(idx)]));
}
if (*i != DoFHandler<1>::invalid_dof_index)
{
Assert(*i<new_numbers.size(), ExcInternalError());
- *i = (indices.n_elements() == 0)?
+ *i = (indices.size() == 0)?
(new_numbers[*i]) :
(new_numbers[indices.index_within_set(*i)]);
}
i=dof_handler.vertex_dofs.begin();
i!=dof_handler.vertex_dofs.end(); ++i)
if (*i != DoFHandler<2,spacedim>::invalid_dof_index)
- *i = (indices.n_elements() == 0)?
+ *i = (indices.size() == 0)?
(new_numbers[*i]) :
(new_numbers[indices.index_within_set(*i)]);
else if (check_validity)
i=dof_handler.faces->lines.dofs.begin();
i!=dof_handler.faces->lines.dofs.end(); ++i)
if (*i != DoFHandler<2,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
i=dof_handler.levels[level]->dof_object.dofs.begin();
i!=dof_handler.levels[level]->dof_object.dofs.end(); ++i)
if (*i != DoFHandler<2,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
}
if (idx != DoFHandler<1>::invalid_dof_index)
i->set_index (level, d/*, dof_handler.get_fe().dofs_per_vertex*/,
- ((indices.n_elements() == 0) ?
+ ((indices.size() == 0) ?
new_numbers[idx] :
new_numbers[indices.index_within_set(idx)]));
}
Assert(idx != DoFHandler<2>::invalid_dof_index, ExcInternalError ());
if (idx != DoFHandler<1>::invalid_dof_index)
- cell->line(l)->set_mg_dof_index (level, d, ((indices.n_elements() == 0) ?
+ cell->line(l)->set_mg_dof_index (level, d, ((indices.size() == 0) ?
new_numbers[idx] :
new_numbers[indices.index_within_set(idx)]));
}
if (*i != DoFHandler<2>::invalid_dof_index)
{
Assert(*i<new_numbers.size(), ExcInternalError());
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
}
i=dof_handler.vertex_dofs.begin();
i!=dof_handler.vertex_dofs.end(); ++i)
if (*i != DoFHandler<3,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
else if (check_validity)
i=dof_handler.faces->lines.dofs.begin();
i!=dof_handler.faces->lines.dofs.end(); ++i)
if (*i != DoFHandler<3,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
for (std::vector<types::global_dof_index>::iterator
i=dof_handler.faces->quads.dofs.begin();
i!=dof_handler.faces->quads.dofs.end(); ++i)
if (*i != DoFHandler<3,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
i=dof_handler.levels[level]->dof_object.dofs.begin();
i!=dof_handler.levels[level]->dof_object.dofs.end(); ++i)
if (*i != DoFHandler<3,spacedim>::invalid_dof_index)
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
}
if (idx != DoFHandler<3>::invalid_dof_index)
i->set_index (level, d,
- ((indices.n_elements() == 0) ?
+ ((indices.size() == 0) ?
new_numbers[idx] :
new_numbers[indices.index_within_set(idx)]));
}
Assert(idx != DoFHandler<3>::invalid_dof_index, ExcInternalError ());
if (idx != DoFHandler<3>::invalid_dof_index)
- cell->line(l)->set_mg_dof_index (level, d, ((indices.n_elements() == 0) ?
+ cell->line(l)->set_mg_dof_index (level, d, ((indices.size() == 0) ?
new_numbers[idx] :
new_numbers[indices.index_within_set(idx)]));
}
Assert(idx != DoFHandler<3>::invalid_dof_index, ExcInternalError ());
if (idx != DoFHandler<1>::invalid_dof_index)
- cell->quad(l)->set_mg_dof_index (level, d, ((indices.n_elements() == 0) ?
+ cell->quad(l)->set_mg_dof_index (level, d, ((indices.size() == 0) ?
new_numbers[idx] :
new_numbers[indices.index_within_set(idx)]));
}
if (*i != DoFHandler<3>::invalid_dof_index)
{
Assert(*i<new_numbers.size(), ExcInternalError());
- *i = ((indices.n_elements() == 0) ?
+ *i = ((indices.size() == 0) ?
new_numbers[*i] :
new_numbers[indices.index_within_set(*i)]);
}