Reference documentation for deal.II version 9.1.0-pre
vector_tools_rhs.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2014 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 #include <deal.II/numerics/vector_tools.templates.h>
18 
19 DEAL_II_NAMESPACE_OPEN
20 
21 
22 namespace VectorTools
23 {
24  // separate implementation for 1D because otherwise we get linker errors since
25  // (hp::)FEFaceValues<1> is not compiled
26  template <>
27  void
29  const DoFHandler<1, 1> &,
30  const Quadrature<0> &,
31  const Function<1> &,
33  const std::set<types::boundary_id> &)
34  {
35  Assert(false, ExcImpossibleInDim(1));
36  }
37 
38 
39 
40  template <>
41  void
43  const DoFHandler<1, 2> &,
44  const Quadrature<0> &,
45  const Function<2> &,
47  const std::set<types::boundary_id> &)
48  {
49  Assert(false, ExcImpossibleInDim(1));
50  }
51 
52 
53 
54  template <>
55  void
57  const hp::DoFHandler<1, 1> &,
58  const hp::QCollection<0> &,
59  const Function<1> &,
61  const std::set<types::boundary_id> &)
62  {
63  Assert(false, ExcImpossibleInDim(1));
64  }
65 
66 
67 
68  template <>
69  void
71  const hp::DoFHandler<1, 2> &,
72  const hp::QCollection<0> &,
73  const Function<2> &,
75  const std::set<types::boundary_id> &)
76  {
77  Assert(false, ExcImpossibleInDim(1));
78  }
79 } // namespace VectorTools
80 
81 // ---------------------------- explicit instantiations --------------------
82 #include "vector_tools_rhs.inst"
83 
84 DEAL_II_NAMESPACE_CLOSE
void create_boundary_right_hand_side(const Mapping< dim, spacedim > &mapping, const DoFHandler< dim, spacedim > &dof, const Quadrature< dim-1 > &q, const Function< spacedim, typename VectorType::value_type > &rhs, VectorType &rhs_vector, const std::set< types::boundary_id > &boundary_ids=std::set< types::boundary_id >())
static::ExceptionBase & ExcImpossibleInDim(int arg1)
#define Assert(cond, exc)
Definition: exceptions.h:1227
Abstract base class for mapping classes.
Definition: dof_tools.h:57