37#include <boost/test/tools/floating_point_comparison.hpp>
38#include <boost/test/unit_test.hpp>
102 face3, face4, face5};
128 CreateHex(v0, v1, v2, v3, v4, v5, v6, v7);
134 unsigned int numQuadPoints = 6;
142 basisKeyDir1, basisKeyDir1, basisKeyDir1, hexGeom);
147 hexExp->GetCoords(c0, c1, c2);
148 std::shared_ptr<StdRegions::StdHexExp> stdHex =
149 std::dynamic_pointer_cast<StdRegions::StdHexExp>(hexExp);
150 stdHex->GetCoords(c0, c1, c2);
151 double epsilon = 1.0e-8;
152 BOOST_CHECK_CLOSE(c0[0], -1.0, epsilon);
153 BOOST_CHECK_CLOSE(c0[1], -0.76505532392946474, epsilon);
154 BOOST_CHECK_CLOSE(c0[2], -0.28523151648064510, epsilon);
155 BOOST_CHECK_CLOSE(c0[3], 0.28523151648064510, epsilon);
156 BOOST_CHECK_CLOSE(c0[4], 0.76505532392946474, epsilon);
157 BOOST_CHECK_CLOSE(c0[5], 1.0, epsilon);
180 CreateHex(v0, v1, v2, v3, v4, v5, v6, v7);
186 unsigned int numQuadPoints = 6;
194 basisKeyDir1, basisKeyDir1, basisKeyDir1, hexGeom);
199 hexExp->GetCoords(c0, c1, c2);
201 double epsilon = 1.0e-8;
202 BOOST_CHECK_EQUAL(c0[0], 0.0);
203 BOOST_CHECK_CLOSE(c0[1], .05873616902, epsilon);
204 BOOST_CHECK_CLOSE(c0[2], .17869212088, epsilon);
205 BOOST_CHECK_CLOSE(c0[3], .32130787912, epsilon);
206 BOOST_CHECK_CLOSE(c0[4], .44126383098, epsilon);
207 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