7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Tests cf3::mesh::FaceCellConnectivity"
10 #include <boost/test/unit_test.hpp>
11 #include <boost/assign/list_of.hpp>
29 using namespace boost;
70 boost::shared_ptr<FaceCellConnectivity> c = allocate_component<FaceCellConnectivity>(
"faces_to_cells");
71 BOOST_CHECK_EQUAL(c->name(),
"faces_to_cells");
85 m_mesh = Core::instance().root().create_component<
Mesh>(
"mesh");
87 std::vector<Real> lengths = list_of(4.)(2.);
88 std::vector<Uint> nb_cells = list_of(scale*2u)(scale*2u);
103 c->
setup( find_component<Region>(*m_mesh) );
107 CFinfo <<
"nodes of face 0 : ";
109 CFinfo <<
" " << node;
117 BOOST_AUTO_TEST_SUITE_END()
static Handle< Mesh > m_mesh
possibly common functions used on the tests below
#define CFinfo
these are always defined
virtual void execute()
execute
FaceCellConnectivity_Fixture()
common setup for each test case
void create_mesh(const ImplicitFunction &function, Mesh &mesh, const MeshParameters parameters)
Using the given implicit function delimiting a domain,.
~FaceCellConnectivity_Fixture()
common tear-down for each test case
external boost library namespace
std::string type_name(const boost::python::api::object &python_object)
#define boost_foreach
lowercase version of BOOST_FOREACH
void setup(Region ®ion)
Handle< Component const > root() const
Generate a simple carthesian P1 mesh without grading.
ElementConnectivity & connectivity()
const access to the node to element connectivity table in unified indices
Basic Classes for Mesh applications used by COOLFluiD.
Top-level namespace for coolfluid.
BOOST_AUTO_TEST_CASE(Constructors)
unsigned int Uint
typedef for unsigned int
std::vector< Uint > face_nodes(const Uint face) const
void set(const std::string &pname, const boost::any &val)
Most basic kernel library.