7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Tests cf3::mesh::NodeElementConnectivity"
10 #include <boost/test/unit_test.hpp>
24 using namespace boost;
61 boost::shared_ptr<NodeElementConnectivity> c = allocate_component<NodeElementConnectivity>(
"nodes_to_elements");
62 BOOST_CHECK_EQUAL(c->name(),
"nodes_to_elements");
71 boost::shared_ptr< MeshReader > meshreader = build_component_abstract_type<MeshReader>(
"cf3.mesh.neu.Reader",
"meshreader");
73 Mesh&
mesh = *Core::instance().root().create_component<
Mesh>(
"quadtriag");
74 meshreader->read_mesh_into(
"../../resources/quadtriag.neu",mesh);
80 c->
setup( find_component<Region>(mesh) );
89 CFinfo <<
CFendl <<
"node 10 is connected to elements: \n";
102 BOOST_AUTO_TEST_SUITE_END()
#define CFinfo
these are always defined
common::DynTable< Uint > & connectivity()
const access to the node to element connectivity table in unified indices
~NodeElementConnectivity_Fixture()
common tear-down for each test case
Safe pointer to an object. This is the supported method for referring to components.
external boost library namespace
NodeElementConnectivity_Fixture()
common setup for each test case
URI uri() const
Construct the full path.
std::string type_name(const boost::python::api::object &python_object)
#define boost_foreach
lowercase version of BOOST_FOREACH
BOOST_AUTO_TEST_CASE(Constructors)
Basic Classes for Mesh applications used by COOLFluiD.
Top-level namespace for coolfluid.
boost::tuple< Handle< common::Component >, Uint > location(const Uint data_glb_idx)
void setup(Region ®ion)
unsigned int Uint
typedef for unsigned int
Most basic kernel library.
const std::vector< T > & ConstRow