]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modified test 2410/head
authorNicola Giuliani <ngiuliani@sissa.it>
Thu, 24 Mar 2016 23:14:17 +0000 (00:14 +0100)
committerNicola Giuliani <ngiuliani@sissa.it>
Thu, 24 Mar 2016 23:14:17 +0000 (00:14 +0100)
source/fe/fe_dgq.inst.in
source/fe/fe_tools.cc
tests/fe/get_fe_from_name_01.cc
tests/fe/get_fe_from_name_01.output

index e3c6a0b763747deb092a94a20f0fa79864d3333f..7f556d4e893f5a3cebde69845a5768c8e196eeaf 100644 (file)
 
 for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS)
   {
-#if deal_II_dimension <= deal_II_space_dimension       
+#if deal_II_dimension <= deal_II_space_dimension
     template class FE_DGQ<deal_II_dimension, deal_II_space_dimension>;
+    template class FE_DGQArbitraryNodes<deal_II_dimension, deal_II_space_dimension>;
 #endif
   }
-
-
-for (deal_II_dimension : DIMENSIONS)
-  {
-    template class FE_DGQArbitraryNodes<deal_II_dimension>;
-
-#if deal_II_dimension != 3
-    template class FE_DGQArbitraryNodes<deal_II_dimension, deal_II_dimension+1>;
-#endif
-
-  }
-
index 9fc4c1a7100ebe5f27dca5668886669fdc0382e4..eee128e3679c05f9a2dc71459328a675455953a4 100644 (file)
@@ -103,6 +103,12 @@ namespace FETools
     return new FE_DGQArbitraryNodes<1, 2>(quad);
   }
   template <>
+  FiniteElement<1, 3> *
+  FEFactory<FE_DGQ<1, 3> >::get (const Quadrature<1> &quad) const
+  {
+    return new FE_DGQArbitraryNodes<1, 3>(quad);
+  }
+  template <>
   FiniteElement<2, 2> *
   FEFactory<FE_DGQ<2> >::get (const Quadrature<1> &quad) const
   {
index 7075c721f18dbfecf9962f385593408ef16176c2..27ef32ac62abb51ff04851605f3feace6888e4fa 100644 (file)
@@ -77,11 +77,12 @@ int main ()
   // gen.generate("FE_DGPNonparametric(1)");
   gen.generate("FE_DGQ     (1)");
   gen.generate("FE_Q(1)");
-
+  gen.generate("FE_DGQArbitraryNodes(QGauss(2))");
   // gen.generate("FE_Q_Hierarchical(2)");
   // gen.generate("FE_DGPNonparametric(2)");
   gen.generate("FE_DGQ(2)");
   gen.generate("FE_Q(2)");
+  gen.generate("FE_DGQArbitraryNodes(QGauss(3))");
 
   // gen.generate("FESystem[FE_Q_Hierarchical(1)^2-FE_Q_Hierarchical(1)]");
   // gen.generate("FESystem[FE_DGPNonparametric(1)^2-FE_Q_Hierarchical(1)]");
@@ -97,6 +98,8 @@ int main ()
   // gen.generate("FESystem[FE_DGPNonparametric(1)^2-FE_DGQ(1)]");
   gen.generate("      FESystem[FE_DGQ(1)^2     -FE_DGQ(1)]");
   gen.generate("FESystem[FE_Q(1)^2-FE_DGQ(1)]");
+  gen.generate("FESystem[FE_Q(1)^2-FE_DGQArbitraryNodes(QGauss(2))]");
+  gen.generate("FESystem[FE_DGQArbitraryNodes(QGauss(2))^2-FE_Q(1)]");
 
 
   // gen.generate("FESystem[FE_Q_Hierarchical(1)^2-FE_Q(1)]");
@@ -107,4 +110,3 @@ int main ()
 
   return 0;
 }
-
index 6ef9630582c709f2e1f73640a5631eb372d0d617..8369f3bd0017f539702e20f90edd3153cc39389e 100644 (file)
@@ -15,6 +15,14 @@ DEAL::FE_Q<3>(1)
 DEAL::FE_Q<1,2>(1)
 DEAL::FE_Q<1,3>(1)
 DEAL::FE_Q<2,3>(1)
+DEAL::Read FE_DGQArbitraryNodes(QGauss(2))
+DEAL::Generated :
+DEAL::FE_DGQArbitraryNodes<1>(QGauss(2))
+DEAL::FE_DGQArbitraryNodes<2>(QGauss(2))
+DEAL::FE_DGQArbitraryNodes<3>(QGauss(2))
+DEAL::FE_DGQArbitraryNodes<1,2>(QGauss(2))
+DEAL::FE_DGQArbitraryNodes<1,3>(QGauss(2))
+DEAL::FE_DGQArbitraryNodes<2,3>(QGauss(2))
 DEAL::Read FE_DGQ(2)
 DEAL::Generated :
 DEAL::FE_DGQ<1>(2)
@@ -31,6 +39,14 @@ DEAL::FE_Q<3>(2)
 DEAL::FE_Q<1,2>(2)
 DEAL::FE_Q<1,3>(2)
 DEAL::FE_Q<2,3>(2)
+DEAL::Read FE_DGQArbitraryNodes(QGauss(3))
+DEAL::Generated :
+DEAL::FE_DGQArbitraryNodes<1>(QGauss(3))
+DEAL::FE_DGQArbitraryNodes<2>(QGauss(3))
+DEAL::FE_DGQArbitraryNodes<3>(QGauss(3))
+DEAL::FE_DGQArbitraryNodes<1,2>(QGauss(3))
+DEAL::FE_DGQArbitraryNodes<1,3>(QGauss(3))
+DEAL::FE_DGQArbitraryNodes<2,3>(QGauss(3))
 DEAL::Read       FESystem[FE_DGQ(1)^2     -FE_DGQ(1)]
 DEAL::Generated :
 DEAL::FESystem<1>[FE_DGQ<1>(1)^2-FE_DGQ<1>(1)]
@@ -47,6 +63,22 @@ DEAL::FESystem<3>[FE_Q<3>(1)^2-FE_DGQ<3>(1)]
 DEAL::FESystem<1,2>[FE_Q<1,2>(1)^2-FE_DGQ<1,2>(1)]
 DEAL::FESystem<1,3>[FE_Q<1,3>(1)^2-FE_DGQ<1,3>(1)]
 DEAL::FESystem<2,3>[FE_Q<2,3>(1)^2-FE_DGQ<2,3>(1)]
+DEAL::Read FESystem[FE_Q(1)^2-FE_DGQArbitraryNodes(QGauss(2))]
+DEAL::Generated :
+DEAL::FESystem<1>[FE_Q<1>(1)^2-FE_DGQArbitraryNodes<1>(QGauss(2))]
+DEAL::FESystem<2>[FE_Q<2>(1)^2-FE_DGQArbitraryNodes<2>(QGauss(2))]
+DEAL::FESystem<3>[FE_Q<3>(1)^2-FE_DGQArbitraryNodes<3>(QGauss(2))]
+DEAL::FESystem<1,2>[FE_Q<1,2>(1)^2-FE_DGQArbitraryNodes<1,2>(QGauss(2))]
+DEAL::FESystem<1,3>[FE_Q<1,3>(1)^2-FE_DGQArbitraryNodes<1,3>(QGauss(2))]
+DEAL::FESystem<2,3>[FE_Q<2,3>(1)^2-FE_DGQArbitraryNodes<2,3>(QGauss(2))]
+DEAL::Read FESystem[FE_DGQArbitraryNodes(QGauss(2))^2-FE_Q(1)]
+DEAL::Generated :
+DEAL::FESystem<1>[FE_DGQArbitraryNodes<1>(QGauss(2))^2-FE_Q<1>(1)]
+DEAL::FESystem<2>[FE_DGQArbitraryNodes<2>(QGauss(2))^2-FE_Q<2>(1)]
+DEAL::FESystem<3>[FE_DGQArbitraryNodes<3>(QGauss(2))^2-FE_Q<3>(1)]
+DEAL::FESystem<1,2>[FE_DGQArbitraryNodes<1,2>(QGauss(2))^2-FE_Q<1,2>(1)]
+DEAL::FESystem<1,3>[FE_DGQArbitraryNodes<1,3>(QGauss(2))^2-FE_Q<1,3>(1)]
+DEAL::FESystem<2,3>[FE_DGQArbitraryNodes<2,3>(QGauss(2))^2-FE_Q<2,3>(1)]
 DEAL::Read FESystem[FE_DGQ(1)^2-FE_Q(1)]
 DEAL::Generated :
 DEAL::FESystem<1>[FE_DGQ<1>(1)^2-FE_Q<1>(1)]

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.