7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Tests mesh::actions::GlobalConnectivity"
10 #include <boost/test/unit_test.hpp>
39 m_argc = boost::unit_test::framework::master_test_suite().argc;
40 m_argv = boost::unit_test::framework::master_test_suite().argv;
80 mesh_generator->
options().
set(
"lengths",std::vector<Real>(2,10.));
81 std::vector<Real> offsets(2);
84 mesh_generator->
options().
set(
"offsets",offsets);
85 std::vector<Uint> nb_cells(2);
88 mesh_generator->
options().
set(
"nb_cells",nb_cells);
92 mesh_generator->
options().
set(
"nb_cells",std::vector<Uint>(1,20));
93 mesh_generator->
options().
set(
"lengths",std::vector<Real>(1,20.));
114 gmsh_writer->
options().
set(
"fields",std::vector<URI>(1,target.
uri()) );
128 BOOST_AUTO_TEST_SUITE_END()
Field & create_field(const std::string &name, const Uint cols)
Create a new field in this group.
Field & coordinates() const
static Handle< Mesh > mesh
common values accessed by all tests goes here
URI uri() const
Construct the full path.
boost::python::object create_component(ComponentWrapper &self, const std::string &name, const std::string &builder_name)
common::URI uri(ComponentWrapper &self)
TestGlobalConnectivity_Fixture()
common setup for each test case
virtual void execute()
execute the action
Generate a simple carthesian P1 mesh without grading.
Mesh & generate()
generate, wraps execute() and returns the mesh reference
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.
unsigned int Uint
typedef for unsigned int
Action derived classes for mesh manipulations.
virtual void write_from_to(const Mesh &mesh, const common::URI &file_path)
Classes offering a MPI interface for COOLFluiD.
Handle< Component > handle()
Get a handle to the component.
Dictionary & geometry_fields() const
static Comm & instance()
Return a reference to the current PE.
Interpolate Fields with matching support.
void set(const std::string &pname, const boost::any &val)
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