From: Wolfgang Bangerth Date: Fri, 20 Aug 2021 02:12:53 +0000 (-0600) Subject: Sort member functions in .cc file. X-Git-Tag: v9.4.0-rc1~1048^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da343235cb0da67ce63f0bd2573d18a85275f6a8;p=dealii.git Sort member functions in .cc file. --- 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(