39#include <boost/test/unit_test.hpp>
104 face3, face4, face5};
130 CreateHex(v0, v1, v2, v3, v4, v5, v6, v7);
136 unsigned int numQuadPoints = 6;
145 basisKeyDir1, basisKeyDir1, basisKeyDir1, hexGeom);
156 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
157 BOOST_CHECK_EQUAL(idmap[0], 0);
158 BOOST_CHECK_EQUAL(idmap[1], 1);
159 BOOST_CHECK_EQUAL(idmap[2], 2);
160 BOOST_CHECK_EQUAL(idmap[3], 3);
161 BOOST_CHECK_EQUAL(idmap[4], 4);
162 BOOST_CHECK_EQUAL(idmap[5], 5);
163 BOOST_CHECK_EQUAL(idmap[6], 6);
164 BOOST_CHECK_EQUAL(idmap[7], 7);
165 BOOST_CHECK_EQUAL(idmap[8], 8);
168 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
169 BOOST_CHECK_EQUAL(idmap[0], 6);
170 BOOST_CHECK_EQUAL(idmap[1], 7);
171 BOOST_CHECK_EQUAL(idmap[2], 8);
172 BOOST_CHECK_EQUAL(idmap[3], 3);
173 BOOST_CHECK_EQUAL(idmap[4], 4);
174 BOOST_CHECK_EQUAL(idmap[5], 5);
175 BOOST_CHECK_EQUAL(idmap[6], 0);
176 BOOST_CHECK_EQUAL(idmap[7], 1);
177 BOOST_CHECK_EQUAL(idmap[8], 2);
180 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
181 BOOST_CHECK_EQUAL(idmap[0], 2);
182 BOOST_CHECK_EQUAL(idmap[1], 1);
183 BOOST_CHECK_EQUAL(idmap[2], 0);
184 BOOST_CHECK_EQUAL(idmap[3], 5);
185 BOOST_CHECK_EQUAL(idmap[4], 4);
186 BOOST_CHECK_EQUAL(idmap[5], 3);
187 BOOST_CHECK_EQUAL(idmap[6], 8);
188 BOOST_CHECK_EQUAL(idmap[7], 7);
189 BOOST_CHECK_EQUAL(idmap[8], 6);
192 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
193 BOOST_CHECK_EQUAL(idmap[0], 8);
194 BOOST_CHECK_EQUAL(idmap[1], 7);
195 BOOST_CHECK_EQUAL(idmap[2], 6);
196 BOOST_CHECK_EQUAL(idmap[3], 5);
197 BOOST_CHECK_EQUAL(idmap[4], 4);
198 BOOST_CHECK_EQUAL(idmap[5], 3);
199 BOOST_CHECK_EQUAL(idmap[6], 2);
200 BOOST_CHECK_EQUAL(idmap[7], 1);
201 BOOST_CHECK_EQUAL(idmap[8], 0);
204 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
205 BOOST_CHECK_EQUAL(idmap[0], 0);
206 BOOST_CHECK_EQUAL(idmap[1], 3);
207 BOOST_CHECK_EQUAL(idmap[2], 6);
208 BOOST_CHECK_EQUAL(idmap[3], 1);
209 BOOST_CHECK_EQUAL(idmap[4], 4);
210 BOOST_CHECK_EQUAL(idmap[5], 7);
211 BOOST_CHECK_EQUAL(idmap[6], 2);
212 BOOST_CHECK_EQUAL(idmap[7], 5);
213 BOOST_CHECK_EQUAL(idmap[8], 8);
216 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
217 BOOST_CHECK_EQUAL(idmap[0], 2);
218 BOOST_CHECK_EQUAL(idmap[1], 5);
219 BOOST_CHECK_EQUAL(idmap[2], 8);
220 BOOST_CHECK_EQUAL(idmap[3], 1);
221 BOOST_CHECK_EQUAL(idmap[4], 4);
222 BOOST_CHECK_EQUAL(idmap[5], 7);
223 BOOST_CHECK_EQUAL(idmap[6], 0);
224 BOOST_CHECK_EQUAL(idmap[7], 3);
225 BOOST_CHECK_EQUAL(idmap[8], 6);
228 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
229 BOOST_CHECK_EQUAL(idmap[0], 6);
230 BOOST_CHECK_EQUAL(idmap[1], 3);
231 BOOST_CHECK_EQUAL(idmap[2], 0);
232 BOOST_CHECK_EQUAL(idmap[3], 7);
233 BOOST_CHECK_EQUAL(idmap[4], 4);
234 BOOST_CHECK_EQUAL(idmap[5], 1);
235 BOOST_CHECK_EQUAL(idmap[6], 8);
236 BOOST_CHECK_EQUAL(idmap[7], 5);
237 BOOST_CHECK_EQUAL(idmap[8], 2);
240 exp3d->ReOrientTracePhysMap(orient, idmap, nq0, nq1);
241 BOOST_CHECK_EQUAL(idmap[0], 8);
242 BOOST_CHECK_EQUAL(idmap[1], 5);
243 BOOST_CHECK_EQUAL(idmap[2], 2);
244 BOOST_CHECK_EQUAL(idmap[3], 7);
245 BOOST_CHECK_EQUAL(idmap[4], 4);
246 BOOST_CHECK_EQUAL(idmap[5], 1);
247 BOOST_CHECK_EQUAL(idmap[6], 6);
248 BOOST_CHECK_EQUAL(idmap[7], 3);
249 BOOST_CHECK_EQUAL(idmap[8], 0);
Describes the specification for a Basis.
Defines a specification for a set of points.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
BOOST_AUTO_TEST_CASE(TestReOrientQuadFacePhysMap)
SpatialDomains::HexGeomSharedPtr CreateHex(SpatialDomains::PointGeomSharedPtr v0, SpatialDomains::PointGeomSharedPtr v1, SpatialDomains::PointGeomSharedPtr v2, SpatialDomains::PointGeomSharedPtr v3, SpatialDomains::PointGeomSharedPtr v4, SpatialDomains::PointGeomSharedPtr v5, SpatialDomains::PointGeomSharedPtr v6, SpatialDomains::PointGeomSharedPtr v7)
SpatialDomains::SegGeomSharedPtr CreateSegGeom(unsigned int id, SpatialDomains::PointGeomSharedPtr v0, SpatialDomains::PointGeomSharedPtr v1)
@ eGaussLobattoLegendre
1D Gauss-Lobatto-Legendre quadrature points
@ eModified_A
Principle Modified Functions .
std::shared_ptr< HexExp > HexExpSharedPtr
std::shared_ptr< QuadGeom > QuadGeomSharedPtr
std::shared_ptr< HexGeom > HexGeomSharedPtr
std::shared_ptr< SegGeom > SegGeomSharedPtr
std::shared_ptr< PointGeom > PointGeomSharedPtr
@ eDir1BwdDir2_Dir2BwdDir1
@ eDir1FwdDir1_Dir2FwdDir2
@ eDir1BwdDir1_Dir2BwdDir2
@ eDir1BwdDir2_Dir2FwdDir1
@ eDir1FwdDir1_Dir2BwdDir2
@ eDir1BwdDir1_Dir2FwdDir2
@ eDir1FwdDir2_Dir2FwdDir1
@ eDir1FwdDir2_Dir2BwdDir1