libMesh
fe_hierarchic_shape_0D.C
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 
19 // Local includes
20 #include "libmesh/fe.h"
21 #include "libmesh/elem.h"
22 
23 
24 namespace libMesh
25 {
26 
27 template <>
29  const Order,
30  const unsigned int libmesh_dbg_var(i),
31  const Point &)
32 {
33  libmesh_assert_less (i, 1);
34  return 1.;
35 }
36 
37 
38 
39 template <>
41  const Order,
42  const unsigned int libmesh_dbg_var(i),
43  const Point &,
44  const bool)
45 {
46  libmesh_assert_less (i, 1);
47  return 1.;
48 }
49 
50 
51 
52 template <>
54  const Order,
55  const unsigned int libmesh_dbg_var(i),
56  const Point &)
57 {
58  libmesh_assert_less (i, 1);
59  return 1.;
60 }
61 
62 
63 
64 template <>
66  const Order,
67  const unsigned int libmesh_dbg_var(i),
68  const Point &,
69  const bool)
70 {
71  libmesh_assert_less (i, 1);
72  return 1.;
73 }
74 
75 
76 
77 template <>
79  const Order,
80  const unsigned int,
81  const unsigned int,
82  const Point &)
83 {
84  libmesh_error_msg("No spatial derivatives in 0D!");
85  return 0.;
86 }
87 
88 
89 
90 template <>
92  const Order,
93  const unsigned int,
94  const unsigned int,
95  const Point &,
96  const bool)
97 {
98  libmesh_error_msg("No spatial derivatives in 0D!");
99  return 0.;
100 }
101 
102 
103 
104 template <>
106  const Order,
107  const unsigned int,
108  const unsigned int,
109  const Point &)
110 {
111  libmesh_error_msg("No spatial derivatives in 0D!");
112  return 0.;
113 }
114 
115 
116 
117 template <>
119  const Order,
120  const unsigned int,
121  const unsigned int,
122  const Point &,
123  const bool)
124 {
125  libmesh_error_msg("No spatial derivatives in 0D!");
126  return 0.;
127 }
128 
129 
130 
131 #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
132 
133 template <>
135  const Order,
136  const unsigned int,
137  const unsigned int,
138  const Point &)
139 {
140  libmesh_error_msg("No spatial derivatives in 0D!");
141  return 0.;
142 }
143 
144 
145 
146 template <>
148  const Order,
149  const unsigned int,
150  const unsigned int,
151  const Point &,
152  const bool)
153 {
154  libmesh_error_msg("No spatial derivatives in 0D!");
155  return 0.;
156 }
157 
158 template <>
160  const Order,
161  const unsigned int,
162  const unsigned int,
163  const Point &)
164 {
165  libmesh_error_msg("No spatial derivatives in 0D!");
166  return 0.;
167 }
168 
169 
170 
171 template <>
173  const Order,
174  const unsigned int,
175  const unsigned int,
176  const Point &,
177  const bool)
178 {
179  libmesh_error_msg("No spatial derivatives in 0D!");
180  return 0.;
181 }
182 
183 #endif // LIBMESH_ENABLE_SECOND_DERIVATIVES
184 
185 } // namespace libMesh
libMesh::FE::shape_second_deriv
static OutputShape shape_second_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition: factoryfunction.C:55
libMesh::Order
Order
Definition: enum_order.h:40
libMesh::FE::shape
static OutputShape shape(const ElemType t, const Order o, const unsigned int i, const Point &p)
libMesh::FE::shape_deriv
static OutputShape shape_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
libMesh::Point
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38
libMesh::Elem
This is the base class from which all geometric element types are derived.
Definition: elem.h:100
libMesh::Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Definition: libmesh_common.h:121
libMesh::ElemType
ElemType
Defines an enum for geometric element types.
Definition: enum_elem_type.h:33