Skip to content

Commit d878831

Browse files
committed
Use libmesh_dbg_var(n) instead
1 parent 3da133e commit d878831

File tree

8 files changed

+9
-16
lines changed

8 files changed

+9
-16
lines changed

include/geom/node_elem.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ class NodeElem : public Elem
179179
/**
180180
* \returns \p true if the specified (local) node number is a vertex.
181181
*/
182-
virtual bool is_vertex(const unsigned int n) const override
183-
{ libmesh_ignore(n); libmesh_assert_not_equal_to (n, invalid_uint); return true; }
182+
virtual bool is_vertex(const unsigned int libmesh_dbg_var(n)) const override
183+
{ libmesh_assert_not_equal_to (n, invalid_uint); return true; }
184184

185185
/**
186186
* NodeElem objects don't have faces or sides.

src/geom/cell_hex8.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ const unsigned int Hex8::edge_nodes_map[Hex8::num_edges][Hex8::nodes_per_edge] =
6969
// ------------------------------------------------------------
7070
// Hex8 class member functions
7171

72-
bool Hex8::is_vertex(const unsigned int n) const
72+
bool Hex8::is_vertex(const unsigned int libmesh_dbg_var(n)) const
7373
{
74-
libmesh_ignore(n);
7574
libmesh_assert_not_equal_to (n, invalid_uint);
7675
return true;
7776
}

src/geom/cell_prism6.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,8 @@ const unsigned int Prism6::edge_nodes_map[Prism6::num_edges][Prism6::nodes_per_e
145145
// ------------------------------------------------------------
146146
// Prism6 class member functions
147147

148-
bool Prism6::is_vertex(const unsigned int n) const
148+
bool Prism6::is_vertex(const unsigned int libmesh_dbg_var(n)) const
149149
{
150-
libmesh_ignore(n);
151150
libmesh_assert_not_equal_to (n, invalid_uint);
152151
return true;
153152
}

src/geom/cell_pyramid5.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ const unsigned int Pyramid5::edge_nodes_map[Pyramid5::num_edges][Pyramid5::nodes
6262
// ------------------------------------------------------------
6363
// Pyramid5 class member functions
6464

65-
bool Pyramid5::is_vertex(const unsigned int n) const
65+
bool Pyramid5::is_vertex(const unsigned int libmesh_dbg_var(n)) const
6666
{
67-
libmesh_ignore(n);
6867
libmesh_assert_not_equal_to (n, invalid_uint);
6968
return true;
7069
}

src/geom/cell_tet4.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ const unsigned int Tet4::edge_nodes_map[Tet4::num_edges][Tet4::nodes_per_edge] =
5757
// ------------------------------------------------------------
5858
// Tet4 class member functions
5959

60-
bool Tet4::is_vertex(const unsigned int n) const
60+
bool Tet4::is_vertex(const unsigned int libmesh_dbg_var(n)) const
6161
{
62-
libmesh_ignore(n);
6362
libmesh_assert_not_equal_to (n, invalid_uint);
6463
return true;
6564
}

src/geom/edge_edge2.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ const Real Edge2::_embedding_matrix[Edge2::num_children][Edge2::num_nodes][Edge2
5151

5252
#endif
5353

54-
bool Edge2::is_vertex(const unsigned int n) const
54+
bool Edge2::is_vertex(const unsigned int libmesh_dbg_var(n)) const
5555
{
56-
libmesh_ignore(n);
5756
libmesh_assert_not_equal_to (n, invalid_uint);
5857
return true;
5958
}

src/geom/face_quad4.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,8 @@ const Real Quad4::_embedding_matrix[Quad4::num_children][Quad4::num_nodes][Quad4
9191
// ------------------------------------------------------------
9292
// Quad4 class member functions
9393

94-
bool Quad4::is_vertex(const unsigned int n) const
94+
bool Quad4::is_vertex(const unsigned int libmesh_dbg_var(n)) const
9595
{
96-
libmesh_ignore(n);
9796
libmesh_assert_not_equal_to (n, invalid_uint);
9897
return true;
9998
}

src/geom/face_tri3.C

+1-2
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,8 @@ const Real Tri3::_embedding_matrix[Tri3::num_children][Tri3::num_nodes][Tri3::nu
8383
// ------------------------------------------------------------
8484
// Tri3 class member functions
8585

86-
bool Tri3::is_vertex(const unsigned int n) const
86+
bool Tri3::is_vertex(const unsigned int libmesh_dbg_var(n)) const
8787
{
88-
libmesh_ignore(n);
8988
libmesh_assert_not_equal_to (n, invalid_uint);
9089
return true;
9190
}

0 commit comments

Comments
 (0)