// check that the new element has the right number of components. only check
// with the first element, since all the other elements have already passed
// the test against the first element
- Assert(this->size() == 0 ||
+ Assert(this->empty() ||
new_fe.n_components() == this->operator[](0).n_components(),
ExcMessage("All elements inside a collection need to have the "
"same number of vector components!"));
void
full_p_adaptivity(const DoFHandler<dim, spacedim> &dof_handler)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
p_adaptivity_from_flags(const DoFHandler<dim, spacedim> &dof_handler,
const std::vector<bool> &p_flags)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const ComparisonFunction<std_cxx20::type_identity_t<Number>>
&compare_coarsen)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const ComparisonFunction<std_cxx20::type_identity_t<Number>>
&compare_coarsen)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const ComparisonFunction<std_cxx20::type_identity_t<Number>>
&compare_coarsen)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
p_adaptivity_from_regularity(const DoFHandler<dim, spacedim> &dof_handler,
const Vector<Number> &sobolev_indices)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const ComparisonFunction<std_cxx20::type_identity_t<Number>>
&compare_coarsen)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const double gamma_h,
const double gamma_n)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
void
force_p_over_h(const DoFHandler<dim, spacedim> &dof_handler)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
void
choose_p_over_h(const DoFHandler<dim, spacedim> &dof_handler)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return;
const unsigned int max_difference,
const unsigned int contains_fe_index)
{
- if (dof_handler.get_fe_collection().size() == 0)
+ if (dof_handler.get_fe_collection().empty())
// nothing to do
return false;