]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reinsert dofs/function_map.h includes 6787/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 16 Jun 2018 23:53:54 +0000 (01:53 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 17 Jun 2018 09:44:54 +0000 (11:44 +0200)
include/deal.II/dofs/deprecated_function_map.h [new file with mode: 0644]
include/deal.II/dofs/dof_handler.h
include/deal.II/dofs/function_map.h
include/deal.II/hp/dof_handler.h
include/deal.II/numerics/error_estimator.h
include/deal.II/numerics/matrix_tools.h
include/deal.II/numerics/vector_tools.h

diff --git a/include/deal.II/dofs/deprecated_function_map.h b/include/deal.II/dofs/deprecated_function_map.h
new file mode 100644 (file)
index 0000000..045a72f
--- /dev/null
@@ -0,0 +1,91 @@
+// ---------------------------------------------------------------------
+//
+// Copyright (C) 2018 by the deal.II authors
+//
+// This file is part of the deal.II library.
+//
+// The deal.II library is free software; you can use it, redistribute
+// it, and/or modify it under the terms of the GNU Lesser General
+// Public License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// The full text of the license can be found in the file LICENSE.md at
+// the top level directory of deal.II.
+//
+// ---------------------------------------------------------------------
+
+#ifndef dealii_deprecated_function_map_h
+#define dealii_deprecated_function_map_h
+
+#include <deal.II/base/config.h>
+
+#include <map>
+
+DEAL_II_NAMESPACE_OPEN
+
+template <int spacedim, typename RangeNumberType>
+class Function;
+
+
+
+/**
+ * This class declares a local typedef that denotes a mapping between a
+ * boundary indicator (see
+ * @ref GlossBoundaryIndicator)
+ * that is used to describe what kind of boundary condition holds on a
+ * particular piece of the boundary, and the function describing the actual
+ * function that provides the boundary values on this part of the boundary.
+ * This type is required in many functions in the library where, for example,
+ * we need to know about the functions $h_i(\mathbf x)$ used in boundary
+ * conditions
+ * @f{align*}{
+ * \mathbf n \cdot \nabla u = h_i \qquad \qquad
+ * \text{on}\ \Gamma_i\subset\partial\Omega.
+ * @f}
+ * An example is the function KellyErrorEstimator::estimate() that allows us
+ * to provide a set of functions $h_i$ for all those boundary indicators $i$
+ * for which the boundary condition is supposed to be of Neumann type. Of
+ * course, the same kind of principle can be applied to cases where we care
+ * about Dirichlet values, where one needs to provide a map from boundary
+ * indicator $i$ to Dirichlet function $h_i$ if the boundary conditions are
+ * given as
+ * @f{align*}{
+ * u = h_i \qquad \qquad \text{on}\ \Gamma_i\subset\partial\Omega.
+ * @f}
+ * This is, for example, the case for the VectorTools::interpolate()
+ * functions.
+ *
+ * Tutorial programs step-6, step-7 and step-8 show examples of how to use
+ * function arguments of this type in situations where we actually have an
+ * empty map (i.e., we want to describe that <i>no</i> part of the boundary is
+ * a Neumann boundary). step-16 actually uses it in a case where one of the
+ * parts of the boundary uses a boundary indicator for which we want to use a
+ * function object.
+ *
+ * It seems odd at first to declare this typedef inside a class, rather than
+ * declaring a typedef at global scope. The reason is that C++ does not allow
+ * to define templated typedefs, where here in fact we want a typedef that
+ * depends on the space dimension. (Defining templated typedefs is something
+ * that is possible starting with the C++11 standard, but that wasn't possible
+ * within the C++98 standard in place when this programming pattern was
+ * conceived.)
+ *
+ * @ingroup functions
+ * @author Wolfgang Bangerth, Ralf Hartmann, 2001
+ */
+template <int dim, typename Number = double>
+struct DEAL_II_DEPRECATED FunctionMap
+{
+  /**
+   * Declare the type as discussed above. Since we can't name it FunctionMap
+   * (as that would ambiguate a possible constructor of this class), name it
+   * in the fashion of the standard container local typedefs.
+   *
+   * @deprecated Use the alias type directly.
+   */
+  DEAL_II_DEPRECATED
+  typedef std::map<types::boundary_id, const Function<dim, Number> *> type;
+};
+
+DEAL_II_NAMESPACE_CLOSE
+
+#endif
index 557abd90b650b8ac8ec249f1110b8f967d5d492a..bc214020d6c6b1e64d5bdae8bec6c99a211a225e 100644 (file)
@@ -27,6 +27,7 @@
 #include <deal.II/base/smartpointer.h>
 
 #include <deal.II/dofs/block_info.h>
+#include <deal.II/dofs/deprecated_function_map.h>
 #include <deal.II/dofs/dof_faces.h>
 #include <deal.II/dofs/dof_iterator_selector.h>
 #include <deal.II/dofs/dof_levels.h>
index 3d48930f8e77a05ee73ab146157967fb77cb8c6d..acc9b88154993127726ff4ff2c3bb89c24a1f273 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2001 - 2017 by the deal.II authors
+// Copyright (C) 2001 - 2018 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
 
 #ifndef dealii_function_map_h
 #define dealii_function_map_h
-#warning This file is deprecated.
 
 #include <deal.II/base/config.h>
 
-#include <map>
+#include <deal.II/dofs/deprecated_function_map.h>
 
-DEAL_II_NAMESPACE_OPEN
-
-template <int spacedim, typename RangeNumberType>
-class Function;
-
-
-
-/**
- * This class declares a local typedef that denotes a mapping between a
- * boundary indicator (see
- * @ref GlossBoundaryIndicator)
- * that is used to describe what kind of boundary condition holds on a
- * particular piece of the boundary, and the function describing the actual
- * function that provides the boundary values on this part of the boundary.
- * This type is required in many functions in the library where, for example,
- * we need to know about the functions $h_i(\mathbf x)$ used in boundary
- * conditions
- * @f{align*}{
- * \mathbf n \cdot \nabla u = h_i \qquad \qquad
- * \text{on}\ \Gamma_i\subset\partial\Omega.
- * @f}
- * An example is the function KellyErrorEstimator::estimate() that allows us
- * to provide a set of functions $h_i$ for all those boundary indicators $i$
- * for which the boundary condition is supposed to be of Neumann type. Of
- * course, the same kind of principle can be applied to cases where we care
- * about Dirichlet values, where one needs to provide a map from boundary
- * indicator $i$ to Dirichlet function $h_i$ if the boundary conditions are
- * given as
- * @f{align*}{
- * u = h_i \qquad \qquad \text{on}\ \Gamma_i\subset\partial\Omega.
- * @f}
- * This is, for example, the case for the VectorTools::interpolate()
- * functions.
- *
- * Tutorial programs step-6, step-7 and step-8 show examples of how to use
- * function arguments of this type in situations where we actually have an
- * empty map (i.e., we want to describe that <i>no</i> part of the boundary is
- * a Neumann boundary). step-16 actually uses it in a case where one of the
- * parts of the boundary uses a boundary indicator for which we want to use a
- * function object.
- *
- * It seems odd at first to declare this typedef inside a class, rather than
- * declaring a typedef at global scope. The reason is that C++ does not allow
- * to define templated typedefs, where here in fact we want a typedef that
- * depends on the space dimension. (Defining templated typedefs is something
- * that is possible starting with the C++11 standard, but that wasn't possible
- * within the C++98 standard in place when this programming pattern was
- * conceived.)
- *
- * @ingroup functions
- * @author Wolfgang Bangerth, Ralf Hartmann, 2001
- */
-template <int dim, typename Number = double>
-struct DEAL_II_DEPRECATED FunctionMap
-{
-  /**
-   * Declare the type as discussed above. Since we can't name it FunctionMap
-   * (as that would ambiguate a possible constructor of this class), name it
-   * in the fashion of the standard container local typedefs.
-   *
-   * @deprecated Use the alias type directly.
-   */
-  DEAL_II_DEPRECATED
-  typedef std::map<types::boundary_id, const Function<dim, Number> *> type;
-};
-
-DEAL_II_NAMESPACE_CLOSE
+#warning "This file is deprecated."
 
 #endif
index d2dbda18a271a80be181961f1f90fc662988173f..3fc75a63438bc5b8b9d4bee02b202f121e14440a 100644 (file)
@@ -26,6 +26,7 @@
 #include <deal.II/base/smartpointer.h>
 #include <deal.II/base/template_constraints.h>
 
+#include <deal.II/dofs/deprecated_function_map.h>
 #include <deal.II/dofs/dof_accessor.h>
 #include <deal.II/dofs/dof_iterator_selector.h>
 #include <deal.II/dofs/number_cache.h>
index 973ad4fe1c5a495b14a7b605a43ab324d056f60d..7737b9b3aa2d59898cf63dede413adce059d7b2d 100644 (file)
@@ -22,6 +22,8 @@
 #include <deal.II/base/exceptions.h>
 #include <deal.II/base/function.h>
 
+#include <deal.II/dofs/deprecated_function_map.h>
+
 #include <deal.II/fe/component_mask.h>
 
 #include <map>
index 66b56864789ed844a0a5e7d1195c1ecd82916d11..9ec667af1b0792155ddbb3e2ac51a51aadc4a95d 100644 (file)
@@ -23,6 +23,8 @@
 #include <deal.II/base/function.h>
 #include <deal.II/base/thread_management.h>
 
+#include <deal.II/dofs/deprecated_function_map.h>
+
 #include <deal.II/lac/affine_constraints.h>
 
 #include <map>
index 8053d63f4e21a51f6d56e10f028046261cf37c36..b813a0b49f78edc44705bceb961383bc960e3d62 100644 (file)
@@ -24,6 +24,7 @@
 #include <deal.II/base/point.h>
 #include <deal.II/base/quadrature_lib.h>
 
+#include <deal.II/dofs/deprecated_function_map.h>
 #include <deal.II/dofs/dof_handler.h>
 
 #include <deal.II/hp/dof_handler.h>

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.