35#include <NekMesh/MeshElements/Element.h>
36#include <NekMesh/NekMeshDeclspec.h>
38#include <boost/test/unit_test.hpp>
42using namespace Nektar::NekMesh;
50 std::vector<NodeSharedPtr> node_set(4);
51 node_set[0] = std::make_shared<Node>(0, -1., 0., 0.);
52 node_set[1] = std::make_shared<Node>(1, 1., 0., 0.);
53 node_set[2] = std::make_shared<Node>(2, 0., 1., 0.);
54 node_set[3] = std::make_shared<Node>(3, 0., 0.5, 1.);
56 std::vector<int> tags;
59 ElementSharedPtr TestTet = GetElementFactory().CreateInstance(
62 BOOST_CHECK_EQUAL(TestTet->GetVertex(3)->m_x, 0.);
63 BOOST_CHECK_EQUAL(TestTet->GetVertex(3)->m_y, 0.5);
64 BOOST_CHECK_EQUAL(TestTet->GetVertex(3)->m_z, 1.);
The above copyright notice and this permission notice shall be included.
BOOST_AUTO_TEST_CASE(TestConstruction)