]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add FE_RaviartThomasNodal to get_fe_from_name
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 2 Mar 2006 16:56:54 +0000 (16:56 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 2 Mar 2006 16:56:54 +0000 (16:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@12526 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_tools.cc

index 476c1e12dcd9a42a5da670633338ae9e236de8c2..b1d88164f00b30ba7b8b955bd631c25f41448e02 100644 (file)
@@ -1437,6 +1437,26 @@ FETools::get_fe_from_name_aux (const std::string &name)
       return std::make_pair (static_cast<FiniteElement<dim>*>
                             (new FE_RaviartThomas<dim>(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<dim> (name, position);
+      AssertThrow (name[position] == '(', ExcInvalidFEName(name));
+      ++position;
+
+      const std::pair<int,unsigned int> 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<FiniteElement<dim>*>
+                            (new FE_RaviartThomasNodal<dim>(tmp.first)),
+                            position);
     }
   else if (Utilities::match_at_string_start (name, std::string("FE_Nedelec")))
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.