Skip to content

Commit a5f54c8

Browse files
committed
Add Elem::nodes_on_edge_ptr
1 parent 718c60a commit a5f54c8

26 files changed

+112
-2
lines changed

include/geom/cell_hex20.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ class Hex20 final : public Hex
129129

130130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
131131

132+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
133+
{ return this->_nodes_on_edge_ptr<Hex20>(e); }
134+
132135
/**
133136
* \returns \p true if the specified (local) node number is on the
134137
* specified edge.

include/geom/cell_hex27.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ class Hex27 final : public Hex
129129

130130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
131131

132+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
133+
{ return this->_nodes_on_edge_ptr<Hex27>(e); }
134+
132135
/**
133136
* \returns \p true if the specified (local) node number is on the
134137
* specified edge.

include/geom/cell_hex8.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ class Hex8 final : public Hex
114114

115115
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
116116

117+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
118+
{ return this->_nodes_on_edge_ptr<Hex8>(e); }
119+
117120
/**
118121
* \returns \p true if the specified (local) node number is on the
119122
* specified edge.

include/geom/cell_inf_hex16.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ class InfHex16 final : public InfHex
129129

130130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
131131

132+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
133+
{ return this->_nodes_on_edge_ptr<InfHex16>(e); }
134+
132135
/**
133136
* \returns \p true if the specified (local) node number is on the
134137
* specified edge.

include/geom/cell_inf_hex18.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ class InfHex18 final : public InfHex
134134

135135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
136136

137+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
138+
{ return this->_nodes_on_edge_ptr<InfHex18>(e); }
139+
137140
/**
138141
* \returns \p true if the specified (local) node number is on the
139142
* specified edge.

include/geom/cell_inf_hex8.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ class InfHex8 final : public InfHex
114114

115115
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
116116

117+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
118+
{ return this->_nodes_on_edge_ptr<InfHex8>(e); }
119+
117120
/**
118121
* \returns \p true if the specified (local) node number is on the
119122
* specified edge.

include/geom/cell_inf_prism12.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ class InfPrism12 final : public InfPrism
120120

121121
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
122122

123+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
124+
{ return this->_nodes_on_edge_ptr<InfPrism12>(e); }
125+
123126
/**
124127
* \returns \p true if the specified (local) node number is on the
125128
* specified edge.

include/geom/cell_inf_prism6.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ class InfPrism6 final : public InfPrism
116116

117117
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
118118

119+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
120+
{ return this->_nodes_on_edge_ptr<InfPrism6>(e); }
121+
119122
/**
120123
* \returns \p true if the specified (local) node number is on the
121124
* specified edge.

include/geom/cell_prism15.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ class Prism15 final : public Prism
134134

135135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
136136

137+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
138+
{ return this->_nodes_on_edge_ptr<Prism15>(e); }
139+
137140
/**
138141
* \returns \p true if the specified (local) node number is on the
139142
* specified edge.

include/geom/cell_prism18.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ class Prism18 final : public Prism
134134

135135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
136136

137+
virtual const unsigned int * nodes_on_edge_ptr(const unsigned short e) const override final
138+
{ return this->_nodes_on_edge_ptr<Prism18>(e); }
139+
137140
/**
138141
* \returns \p true if the specified (local) node number is on the
139142
* specified edge.

0 commit comments

Comments
 (0)