7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::mesh::BoundingBox"
10 #include <boost/assign/list_of.hpp>
11 #include <boost/test/unit_test.hpp>
28 BOOST_AUTO_TEST_SUITE( MeshFunctionsTestSuite )
34 std::vector<Uint> node_mapping;
35 std::vector<bool> is_interior;
39 const std::vector<Uint> expected_mapping = boost::assign::list_of(0)(1)(2)(3)(0)(1)(2)(3)(0);
41 for(
Uint point_idx = 0; point_idx != nb_target_points; ++point_idx)
43 BOOST_CHECK_EQUAL(node_mapping[point_idx], expected_mapping[point_idx]);
44 BOOST_CHECK(!(is_interior[point_idx] && point_idx != 8));
50 BOOST_AUTO_TEST_SUITE_END()
void nearest_node_mapping(const RealMatrix &support_local_coords, const RealMatrix &source_local_coords, std::vector< Uint > &node_mapping, std::vector< bool > &is_interior)
static const RealMatrix & local_coordinates()
static const Uint nb_nodes
Top-level namespace for coolfluid.
BOOST_AUTO_TEST_CASE(TestNearestNodeMapping)
static const RealMatrix & local_coordinates()
unsigned int Uint
typedef for unsigned int