]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix undefined behavior in tests 5245/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 14 Oct 2017 12:25:16 +0000 (14:25 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 14 Oct 2017 12:57:31 +0000 (14:57 +0200)
tests/bits/error_estimator_01.cc
tests/bits/error_estimator_02.cc
tests/codim_one/error_estimator_01.cc
tests/codim_one/error_estimator_02.cc
tests/numerics/boundaries.cc
tests/numerics/error_estimator.cc

index 8afdd5538b62d91c659a9823a0dd550f8f547ac5..2627604794ffcf81840215e1cf72bd0d378164c8 100644 (file)
@@ -66,15 +66,6 @@ get_q_face (Function<dim> &)
 }
 
 
-Quadrature<0> &
-get_q_face (Function<1> &)
-{
-  Quadrature<0> *q = nullptr;
-  return *q;
-}
-
-
-
 template <int dim>
 void make_mesh (Triangulation<dim> &tria)
 {
index 3aeb4fdb3698c4902840e12cc777eb8dcb742ff7..71aa8d2370c09db0ae93e307695e241146acd7f6 100644 (file)
@@ -66,15 +66,6 @@ get_q_face (Function<dim> &)
 }
 
 
-Quadrature<0> &
-get_q_face (Function<1> &)
-{
-  Quadrature<0> *q = nullptr;
-  return *q;
-}
-
-
-
 template <int dim>
 void make_mesh (Triangulation<dim> &tria)
 {
index 7e4f1ffadbd13f17953c012392381678a14eeb1d..3fa501143a427fcfc61234675fbcecbe830c1e56 100644 (file)
@@ -65,14 +65,6 @@ get_q_face ()
   return q;
 }
 
-template <>
-Quadrature<0> &
-get_q_face <1>()
-{
-  Quadrature<0> *q = nullptr;
-  return *q;
-}
-
 template <int dim, int spacedim>
 void make_mesh (Triangulation<dim,spacedim> &tria)
 {
index 91953225f72cce387b4ee238de3648e499b62963..1ad1bd683ee7e4b8f08a5154312361d310c3dd81 100644 (file)
@@ -93,13 +93,7 @@ get_q_face ()
   return q;
 }
 
-template <>
-Quadrature<0> &
-get_q_face <1>()
-{
-  Quadrature<0> *q = nullptr;
-  return *q;
-}
+
 
 template <int dim, int spacedim>
 void make_mesh (Triangulation<dim,spacedim> &tria)
index dbba76cd1fa0fda2d4f499dff1aee0977e02771e..3bbc390164b9d22864d596aa4048834b79f9c296 100644 (file)
@@ -67,14 +67,6 @@ boundary_q (const DoFHandler<dim> &)
 }
 
 
-const Quadrature<0> &
-boundary_q (const DoFHandler<1> &)
-{
-  static const Quadrature<0> *q = nullptr;
-  return *q;
-}
-
-
 void write_map (const std::map<types::global_dof_index,double> &bv)
 {
   for (std::map<types::global_dof_index,double>::const_iterator
index 5d9f429f8e2f7f02ed1e47a20225c93c63ee3702..fc12eea806eb57485e0fe9cea45bb478e2e07d35 100644 (file)
@@ -66,16 +66,6 @@ get_q_face (Function<dim> &)
 }
 
 
-Quadrature<0> &
-get_q_face (Function<1> &)
-{
-  Quadrature<0> *q = nullptr;
-  return *q;
-}
-
-
-
-
 template <int dim>
 void
 check ()

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.