Skip to content

Commit 3c13146

Browse files
committed
Add Elem::nodes_on_side_ptr
1 parent 0936e36 commit 3c13146

39 files changed

+157
-25
lines changed

include/geom/cell_hex20.h

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

125125
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
126126

127+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
128+
{ return this->_nodes_on_side_ptr<Hex20>(s); }
129+
127130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
128131

129132
/**

include/geom/cell_hex27.h

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

125125
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
126126

127+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
128+
{ return this->_nodes_on_side_ptr<Hex27>(s); }
129+
127130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
128131

129132
/**

include/geom/cell_hex8.h

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

110110
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
111111

112+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
113+
{ return this->_nodes_on_side_ptr<Hex8>(s); }
114+
112115
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
113116

114117
/**

include/geom/cell_inf_hex16.h

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

125125
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
126126

127+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
128+
{ return this->_nodes_on_side_ptr<InfHex16>(s); }
129+
127130
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
128131

129132
/**

include/geom/cell_inf_hex18.h

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

130130
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
131131

132+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
133+
{ return this->_nodes_on_side_ptr<InfHex18>(s); }
134+
132135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
133136

134137
/**

include/geom/cell_inf_hex8.h

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

110110
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
111111

112+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
113+
{ return this->_nodes_on_side_ptr<InfHex8>(s); }
114+
112115
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
113116

114117
/**

include/geom/cell_inf_prism12.h

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

116116
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
117117

118+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
119+
{ return this->_nodes_on_side_ptr<InfPrism12>(s); }
120+
118121
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
119122

120123
/**

include/geom/cell_inf_prism6.h

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

112112
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
113113

114+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
115+
{ return this->_nodes_on_side_ptr<InfPrism6>(s); }
116+
114117
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
115118

116119
/**

include/geom/cell_prism15.h

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

130130
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
131131

132+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
133+
{ return this->_nodes_on_side_ptr<Prism15>(s); }
134+
132135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
133136

134137
/**

include/geom/cell_prism18.h

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

130130
virtual std::vector<unsigned int> nodes_on_side(const unsigned int s) const override;
131131

132+
virtual const unsigned int * nodes_on_side_ptr(const unsigned short s) const override final
133+
{ return this->_nodes_on_side_ptr<Prism18>(s); }
134+
132135
virtual std::vector<unsigned int> nodes_on_edge(const unsigned int e) const override;
133136

134137
/**

0 commit comments

Comments
 (0)