Line data Source code
1 : // The libMesh Finite Element Library.
2 : // Copyright (C) 2002-2026 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 :
20 : // Local includes
21 : #include "libmesh/fe.h"
22 : #include "libmesh/elem.h"
23 :
24 :
25 : namespace libMesh
26 : {
27 :
28 0 : LIBMESH_DEFAULT_VECTORIZED_FE(0,L2_LAGRANGE_GLL)
29 0 : LIBMESH_DEFAULT_VECTORIZED_FE(0,LAGRANGE_GLL)
30 :
31 :
32 : template <>
33 0 : Real FE<0,L2_LAGRANGE_GLL>::shape(const ElemType,
34 : const Order,
35 : const unsigned int libmesh_dbg_var(i),
36 : const Point &)
37 : {
38 0 : libmesh_assert_less (i, 1);
39 0 : return 1.;
40 : }
41 :
42 :
43 : template <>
44 0 : Real FE<0,L2_LAGRANGE_GLL>::shape(const Elem *,
45 : const Order,
46 : const unsigned int libmesh_dbg_var(i),
47 : const Point &,
48 : const bool)
49 : {
50 0 : libmesh_assert_less (i, 1);
51 0 : return 1.;
52 : }
53 :
54 :
55 : template <>
56 0 : Real FE<0,L2_LAGRANGE_GLL>::shape(const FEType,
57 : const Elem *,
58 : const unsigned int libmesh_dbg_var(i),
59 : const Point &,
60 : const bool)
61 : {
62 0 : libmesh_assert_less (i, 1);
63 0 : return 1.;
64 : }
65 :
66 :
67 : template <>
68 0 : Real FE<0,LAGRANGE_GLL>::shape(const ElemType,
69 : const Order,
70 : const unsigned int libmesh_dbg_var(i),
71 : const Point &)
72 : {
73 0 : libmesh_assert_less (i, 1);
74 0 : return 1.;
75 : }
76 :
77 :
78 : template <>
79 0 : Real FE<0,LAGRANGE_GLL>::shape(const Elem *,
80 : const Order,
81 : const unsigned int libmesh_dbg_var(i),
82 : const Point &,
83 : const bool)
84 : {
85 0 : libmesh_assert_less (i, 1);
86 0 : return 1.;
87 : }
88 :
89 :
90 : template <>
91 0 : Real FE<0,LAGRANGE_GLL>::shape(const FEType,
92 : const Elem *,
93 : const unsigned int libmesh_dbg_var(i),
94 : const Point &,
95 : const bool)
96 : {
97 0 : libmesh_assert_less (i, 1);
98 0 : return 1.;
99 : }
100 :
101 :
102 : template <>
103 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_deriv(const ElemType,
104 : const Order,
105 : const unsigned int,
106 : const unsigned int,
107 : const Point &)
108 : {
109 0 : libmesh_error_msg("No spatial derivatives in 0D!");
110 : return 0.;
111 : }
112 :
113 :
114 : template <>
115 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_deriv(const Elem *,
116 : const Order,
117 : const unsigned int,
118 : const unsigned int,
119 : const Point &,
120 : const bool)
121 : {
122 0 : libmesh_error_msg("No spatial derivatives in 0D!");
123 : return 0.;
124 : }
125 :
126 :
127 : template <>
128 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_deriv(const FEType,
129 : const Elem *,
130 : const unsigned int,
131 : const unsigned int,
132 : const Point &,
133 : const bool)
134 : {
135 0 : libmesh_error_msg("No spatial derivatives in 0D!");
136 : return 0.;
137 : }
138 :
139 :
140 : template <>
141 0 : Real FE<0,LAGRANGE_GLL>::shape_deriv(const ElemType,
142 : const Order,
143 : const unsigned int,
144 : const unsigned int,
145 : const Point &)
146 : {
147 0 : libmesh_error_msg("No spatial derivatives in 0D!");
148 : return 0.;
149 : }
150 :
151 :
152 : template <>
153 0 : Real FE<0,LAGRANGE_GLL>::shape_deriv(const Elem *,
154 : const Order,
155 : const unsigned int,
156 : const unsigned int,
157 : const Point &,
158 : const bool)
159 : {
160 0 : libmesh_error_msg("No spatial derivatives in 0D!");
161 : return 0.;
162 : }
163 :
164 :
165 : template <>
166 0 : Real FE<0,LAGRANGE_GLL>::shape_deriv(const FEType,
167 : const Elem *,
168 : const unsigned int,
169 : const unsigned int,
170 : const Point &,
171 : const bool)
172 : {
173 0 : libmesh_error_msg("No spatial derivatives in 0D!");
174 : return 0.;
175 : }
176 :
177 :
178 : #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
179 :
180 : template <>
181 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_second_deriv(const ElemType,
182 : const Order,
183 : const unsigned int,
184 : const unsigned int,
185 : const Point &)
186 : {
187 0 : libmesh_error_msg("No spatial derivatives in 0D!");
188 : return 0.;
189 : }
190 :
191 :
192 : template <>
193 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_second_deriv(const Elem *,
194 : const Order,
195 : const unsigned int,
196 : const unsigned int,
197 : const Point &,
198 : const bool)
199 : {
200 0 : libmesh_error_msg("No spatial derivatives in 0D!");
201 : return 0.;
202 : }
203 :
204 :
205 : template <>
206 0 : Real FE<0,L2_LAGRANGE_GLL>::shape_second_deriv(const FEType,
207 : const Elem *,
208 : const unsigned int,
209 : const unsigned int,
210 : const Point &,
211 : const bool)
212 : {
213 0 : libmesh_error_msg("No spatial derivatives in 0D!");
214 : return 0.;
215 : }
216 :
217 :
218 : template <>
219 0 : Real FE<0,LAGRANGE_GLL>::shape_second_deriv(const ElemType,
220 : const Order,
221 : const unsigned int,
222 : const unsigned int,
223 : const Point &)
224 : {
225 0 : libmesh_error_msg("No spatial derivatives in 0D!");
226 : return 0.;
227 : }
228 :
229 :
230 : template <>
231 0 : Real FE<0,LAGRANGE_GLL>::shape_second_deriv(const Elem *,
232 : const Order,
233 : const unsigned int,
234 : const unsigned int,
235 : const Point &,
236 : const bool)
237 : {
238 0 : libmesh_error_msg("No spatial derivatives in 0D!");
239 : return 0.;
240 : }
241 :
242 :
243 : template <>
244 0 : Real FE<0,LAGRANGE_GLL>::shape_second_deriv(const FEType,
245 : const Elem *,
246 : const unsigned int,
247 : const unsigned int,
248 : const Point &,
249 : const bool)
250 : {
251 0 : libmesh_error_msg("No spatial derivatives in 0D!");
252 : return 0.;
253 : }
254 :
255 :
256 : #endif // LIBMESH_ENABLE_SECOND_DERIVATIVES
257 :
258 : } // namespace libMesh
|