From da343235cb0da67ce63f0bd2573d18a85275f6a8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 19 Aug 2021 20:12:53 -0600 Subject: [PATCH] Sort member functions in .cc file. --- source/hp/fe_collection.cc | 100 ++++++++++++++++++------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/source/hp/fe_collection.cc b/source/hp/fe_collection.cc index 5a747c2124..80661cd089 100644 --- a/source/hp/fe_collection.cc +++ b/source/hp/fe_collection.cc @@ -22,6 +22,56 @@ DEAL_II_NAMESPACE_OPEN namespace hp { + template + FECollection::FECollection() + { + set_default_hierarchy(); + } + + + + template + FECollection::FECollection( + const FiniteElement &fe) + : FECollection() + { + push_back(fe); + } + + + + template + FECollection::FECollection( + const std::vector *> &fes) + : FECollection() + { + Assert(fes.size() > 0, + ExcMessage("Need to pass at least one finite element.")); + + for (unsigned int i = 0; i < fes.size(); ++i) + push_back(*fes[i]); + } + + + + template + void + FECollection::push_back( + const FiniteElement &new_fe) + { + // 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 || + new_fe.n_components() == this->operator[](0).n_components(), + ExcMessage("All elements inside a collection need to have the " + "same number of vector components!")); + + Collection>::push_back(new_fe.clone()); + } + + + template std::set FECollection::find_common_fes( @@ -236,56 +286,6 @@ namespace hp - template - FECollection::FECollection() - { - set_default_hierarchy(); - } - - - - template - FECollection::FECollection( - const FiniteElement &fe) - : FECollection() - { - push_back(fe); - } - - - - template - FECollection::FECollection( - const std::vector *> &fes) - : FECollection() - { - Assert(fes.size() > 0, - ExcMessage("Need to pass at least one finite element.")); - - for (unsigned int i = 0; i < fes.size(); ++i) - push_back(*fes[i]); - } - - - - template - void - FECollection::push_back( - const FiniteElement &new_fe) - { - // 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 || - new_fe.n_components() == this->operator[](0).n_components(), - ExcMessage("All elements inside a collection need to have the " - "same number of vector components!")); - - Collection>::push_back(new_fe.clone()); - } - - - template void FECollection::set_hierarchy( -- 2.39.5