From 3ba675854a5a75a4d539e95674d674e03be0b265 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 2 Mar 2006 16:56:54 +0000 Subject: [PATCH] add FE_RaviartThomasNodal to get_fe_from_name git-svn-id: https://svn.dealii.org/trunk@12526 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/fe_tools.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/deal.II/deal.II/source/fe/fe_tools.cc b/deal.II/deal.II/source/fe/fe_tools.cc index 476c1e12dc..b1d88164f0 100644 --- a/deal.II/deal.II/source/fe/fe_tools.cc +++ b/deal.II/deal.II/source/fe/fe_tools.cc @@ -1437,6 +1437,26 @@ FETools::get_fe_from_name_aux (const std::string &name) return std::make_pair (static_cast*> (new FE_RaviartThomas(tmp.first)), position); + } + // check other possibilities in + // exactly the same way + else if (Utilities::match_at_string_start (name, std::string("FE_RaviartThomasNodal"))) + { + unsigned int position = std::string("FE_RaviartThomasNodal").size(); + position += match_dimension (name, position); + AssertThrow (name[position] == '(', ExcInvalidFEName(name)); + ++position; + + const std::pair tmp + = Utilities::get_integer_at_position (name, position); + + AssertThrow (tmp.first>=0, ExcInvalidFEName(name)); + position += tmp.second; + AssertThrow (name[position] == ')', ExcInvalidFEName(name)); + ++position; + return std::make_pair (static_cast*> + (new FE_RaviartThomasNodal(tmp.first)), + position); } else if (Utilities::match_at_string_start (name, std::string("FE_Nedelec"))) { -- 2.39.5