libMesh
fe_lagrange_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 namespace libMesh
24 {
25 
26 template <>
28  const Order,
29  const unsigned int libmesh_dbg_var(i),
30  const Point &)
31 {
32  libmesh_assert_less (i, 1);
33  return 1.;
34 }
35 
36 
37 
38 template <>
40  const Order,
41  const unsigned int libmesh_dbg_var(i),
42  const Point &,
43  const bool)
44 {
45  libmesh_assert_less (i, 1);
46  return 1.;
47 }
48 
49 
50 
51 template <>
53  const Order,
54  const unsigned int libmesh_dbg_var(i),
55  const Point &)
56 {
57  libmesh_assert_less (i, 1);
58  return 1.;
59 }
60 
61 
62 
63 template <>
65  const Order,
66  const unsigned int libmesh_dbg_var(i),
67  const Point &,
68  const bool)
69 {
70  libmesh_assert_less (i, 1);
71  return 1.;
72 }
73 
74 
75 
76 template <>
78  const Order,
79  const unsigned int,
80  const unsigned int,
81  const Point &)
82 {
83  libmesh_error_msg("No spatial derivatives in 0D!");
84  return 0.;
85 }
86 
87 
88 
89 template <>
91  const Order,
92  const unsigned int,
93  const unsigned int,
94  const Point &,
95  const bool)
96 {
97  libmesh_error_msg("No spatial derivatives in 0D!");
98  return 0.;
99 }
100 
101 
102 
103 template <>
105  const Order,
106  const unsigned int,
107  const unsigned int,
108  const Point &)
109 {
110  libmesh_error_msg("No spatial derivatives in 0D!");
111  return 0.;
112 }
113 
114 
115 
116 template <>
118  const Order,
119  const unsigned int,
120  const unsigned int,
121  const Point &,
122  const bool)
123 {
124  libmesh_error_msg("No spatial derivatives in 0D!");
125  return 0.;
126 }
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
184 
185 
186 } // 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