From 16e835898e3efdadb7f0e1d19f4c5c93f9e75830 Mon Sep 17 00:00:00 2001 From: Oliver Sander <oliver.sander@tu-dresden.de> Date: Fri, 2 Mar 2018 10:11:03 +0100 Subject: [PATCH] Rename RaviartThomasNodalBasis to RaviartThomasBasis It is just the standard Raviart-Thomas basis. There is nothing particularly 'nodal' about it. --- dune/functions/functionspacebases/raviartthomasbasis.hh | 6 +++--- .../functionspacebases/test/raviartthomasbasistest.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/functions/functionspacebases/raviartthomasbasis.hh b/dune/functions/functionspacebases/raviartthomasbasis.hh index 7893e8a..268bc08 100644 --- a/dune/functions/functionspacebases/raviartthomasbasis.hh +++ b/dune/functions/functionspacebases/raviartthomasbasis.hh @@ -367,7 +367,7 @@ public: // throw if Element is not of predefined type if (not(basic_type==GeometryType::BasicType::cube and element.type().isCube()) and - not(basic_type==GeometryType::BasicType::simplex and element.type().isSimplex())) DUNE_THROW(Dune::NotImplemented, "RaviartThomasNodalBasis only implemented for cube and simplex elements."); + not(basic_type==GeometryType::BasicType::simplex and element.type().isSimplex())) DUNE_THROW(Dune::NotImplemented, "RaviartThomasBasis only implemented for cube and simplex elements."); for(std::size_t i=0, end=size(); i<end; ++i, ++it) { @@ -436,7 +436,7 @@ auto rt() // This is the actual global basis implementation based on the reusable parts. // ***************************************************************************** -/** \brief Nodal basis of a scalar k-th-order Raviart Thomas finite element space +/** \brief Basis of a k-th-order Raviart Thomas finite element space * * TODO * @@ -444,7 +444,7 @@ auto rt() * \tparam k The order of the basis */ template<typename GV, int k, GeometryType::BasicType basic_type, class ST = std::size_t> -using RaviartThomasNodalBasis = DefaultGlobalBasis<RaviartThomasPreBasis<GV, k, FlatMultiIndex<ST>, ST, basic_type> >; +using RaviartThomasBasis = DefaultGlobalBasis<RaviartThomasPreBasis<GV, k, FlatMultiIndex<ST>, ST, basic_type> >; } // end namespace Functions } // end namespace Dune diff --git a/dune/functions/functionspacebases/test/raviartthomasbasistest.cc b/dune/functions/functionspacebases/test/raviartthomasbasistest.cc index 99e0dd4..6171540 100644 --- a/dune/functions/functionspacebases/test/raviartthomasbasistest.cc +++ b/dune/functions/functionspacebases/test/raviartthomasbasistest.cc @@ -34,7 +34,7 @@ int main (int argc, char* argv[]) { typedef GridType::LeafGridView GridView; const GridView& gridView = grid.leafGridView(); - Functions::RaviartThomasNodalBasis<GridView,0,GeometryType::BasicType::cube> basis(gridView); + Functions::RaviartThomasBasis<GridView,0,GeometryType::BasicType::cube> basis(gridView); test.subTest(checkBasis(basis)); } -- GitLab