37#include <boost/test/tools/floating_point_comparison.hpp>
38#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;
144 basisKeyDir1, basisKeyDir1, basisKeyDir1, hexGeom);
149 hexExp->GetCoords(c0, c1, c2);
150 std::shared_ptr<StdRegions::StdHexExp> stdHex =
151 std::dynamic_pointer_cast<StdRegions::StdHexExp>(hexExp);
152 stdHex->GetCoords(c0, c1, c2);
153 double epsilon = 1.0e-8;
154 BOOST_CHECK_CLOSE(c0[0], -1.0, epsilon);
155 BOOST_CHECK_CLOSE(c0[1], -0.76505532392946474, epsilon);
156 BOOST_CHECK_CLOSE(c0[2], -0.28523151648064510, epsilon);
157 BOOST_CHECK_CLOSE(c0[3], 0.28523151648064510, epsilon);
158 BOOST_CHECK_CLOSE(c0[4], 0.76505532392946474, epsilon);
159 BOOST_CHECK_CLOSE(c0[5], 1.0, epsilon);
182 CreateHex(v0, v1, v2, v3, v4, v5, v6, v7);
188 unsigned int numQuadPoints = 6;
196 basisKeyDir1, basisKeyDir1, basisKeyDir1, hexGeom);
201 hexExp->GetCoords(c0, c1, c2);
203 double epsilon = 1.0e-8;
204 BOOST_CHECK_EQUAL(c0[0], 0.0);
205 BOOST_CHECK_CLOSE(c0[1], .05873616902, epsilon);
206 BOOST_CHECK_CLOSE(c0[2], .17869212088, epsilon);
207 BOOST_CHECK_CLOSE(c0[3], .32130787912, epsilon);
208 BOOST_CHECK_CLOSE(c0[4], .44126383098, epsilon);
209 BOOST_CHECK_CLOSE(c0[5], .5, epsilon);
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.
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)
BOOST_AUTO_TEST_CASE(TestHexExpThatIsStdRegion)
@ 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
The above copyright notice and this permission notice shall be included.