7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Tests mesh::actions::GlobalConnectivity"
10 #include <boost/test/unit_test.hpp>
42 m_argc = boost::unit_test::framework::master_test_suite().argc;
43 m_argv = boost::unit_test::framework::master_test_suite().argv;
80 boost::shared_ptr< MeshReader > meshreader = build_component_abstract_type<MeshReader>(
"cf3.mesh.neu.Reader",
"meshreader");
81 meshreader->options().set(
"read_boundaries",
false);
82 meshreader->read_mesh_into(
"../../../resources/quadtriag.neu",*
mesh);
85 boost::shared_ptr<GlobalNumbering> build_glb_numbering = allocate_component<GlobalNumbering>(
"build_glb_numbering");
86 build_glb_numbering->set_mesh(
mesh);
87 build_glb_numbering->options().set(
"debug",
true);
88 build_glb_numbering->execute();
90 boost::shared_ptr<GlobalConnectivity> build_connectivity = allocate_component<GlobalConnectivity>(
"build_glb_connectivity");
91 build_connectivity->set_mesh(
mesh);
92 build_connectivity->execute();
95 std::cout <<
"rank = " << Comm::instance().rank() << std::endl;
96 std::cout <<
"nodes = " <<
mesh->geometry_fields().glb_idx() << std::endl;
97 std::cout <<
"ranks = " <<
mesh->geometry_fields().rank() << std::endl;
100 std::cout <<
"elems = " << entities.
glb_idx() << std::endl;
116 BOOST_AUTO_TEST_SUITE_END()
static Handle< Mesh > mesh
common values accessed by all tests goes here
int m_argc
possibly common functions used on the tests below
#define boost_foreach
lowercase version of BOOST_FOREACH
TestGlobalConnectivity_Fixture()
common setup for each test case
common::List< Uint > & glb_idx()
Mutable access to the list of nodes.
Basic Classes for Mesh applications used by COOLFluiD.
void initiate(int argc, char **argv)
void init(int argc=0, char **args=0)
Top-level namespace for coolfluid.
BOOST_AUTO_TEST_CASE(Init)
common::Component & root() const
Gives the default root component.
Action derived classes for mesh manipulations.
Classes offering a MPI interface for COOLFluiD.
static Comm & instance()
Return a reference to the current PE.
Handle< Component > create_component(const std::string &name, const std::string &builder)
Build a (sub)component of this component using the extended type_name of the component.
Most basic kernel library.
~TestGlobalConnectivity_Fixture()
common tear-down for each test case
#define PEProcessSortedExecute(irank, expression)