libMesh
Loading...
Searching...
No Matches
fe_lagrange_gll_shape_0D.C
Go to the documentation of this file.
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
25namespace libMesh
26{
27
28
30
31
32template <>
34 const Order,
35 const unsigned int libmesh_dbg_var(i),
36 const Point &)
37{
38 libmesh_assert_less (i, 1);
39 return 1.;
40}
41
42
43template <>
45 const Order,
46 const unsigned int libmesh_dbg_var(i),
47 const Point &,
48 const bool)
49{
50 libmesh_assert_less (i, 1);
51 return 1.;
52}
53
54
55template <>
57 const Elem *,
58 const unsigned int libmesh_dbg_var(i),
59 const Point &,
60 const bool)
61{
62 libmesh_assert_less (i, 1);
63 return 1.;
64}
65
66
67template <>
69 const Order,
70 const unsigned int,
71 const unsigned int,
72 const Point &)
73{
74 libmesh_error_msg("No spatial derivatives in 0D!");
75 return 0.;
76}
77
78
79template <>
81 const Order,
82 const unsigned int,
83 const unsigned int,
84 const Point &,
85 const bool)
86{
87 libmesh_error_msg("No spatial derivatives in 0D!");
88 return 0.;
89}
90
91
92template <>
94 const Elem *,
95 const unsigned int,
96 const unsigned int,
97 const Point &,
98 const bool)
99{
100 libmesh_error_msg("No spatial derivatives in 0D!");
101 return 0.;
102}
103
104
105#ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
106
107template <>
109 const Order,
110 const unsigned int,
111 const unsigned int,
112 const Point &)
113{
114 libmesh_error_msg("No spatial derivatives in 0D!");
115 return 0.;
116}
117
118
119template <>
121 const Order,
122 const unsigned int,
123 const unsigned int,
124 const Point &,
125 const bool)
126{
127 libmesh_error_msg("No spatial derivatives in 0D!");
128 return 0.;
129}
130
131
132template <>
134 const Elem *,
135 const unsigned int,
136 const unsigned int,
137 const Point &,
138 const bool)
139{
140 libmesh_error_msg("No spatial derivatives in 0D!");
141 return 0.;
142}
143
144
145#endif // LIBMESH_ENABLE_SECOND_DERIVATIVES
146
147} // namespace libMesh
This is the base class from which all geometric element types are derived.
Definition elem.h:96
class FEType hides (possibly multiple) FEFamily and approximation orders, thereby enabling specialize...
Definition fe_type.h:197
static OutputShape shape(const ElemType t, const Order o, const unsigned int i, const Point &p)
static OutputShape shape_second_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
static OutputShape shape_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition point.h:41
The libMesh namespace provides an interface to certain functionality in the library.
LIBMESH_DEFAULT_VECTORIZED_FE(template<>Real FE< 0, BERNSTEIN)
ElemType
Defines an enum for geometric element types.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real