7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::mesh::LoadMesh"
10 #include <boost/test/unit_test.hpp>
39 BOOST_AUTO_TEST_SUITE( LoadMesh_Suite )
59 std::vector<URI> files;
60 files.push_back(
"file:../../resources/rotation-tg-p1.neu" );
61 options.
add(
"mesh", domain->
uri()/
URI(
"Mesh") );
62 options.
add(
"files", files);
75 boost::shared_ptr< MeshWriter > mesh_writer = build_component_abstract_type<MeshWriter> (
"cf3.mesh.gmsh.Writer",
"GmshWriter" );
76 mesh_writer->write_from_to(*
mesh,
"utest-loadmesh-result.msh");
81 BOOST_AUTO_TEST_SUITE_END()
Abstracts the use of XML when adding options to a signal frame.
Classes that implement the XML protocol for use in COOLFluiD.
URI uri() const
Construct the full path.
SignalFrame create_frame(const std::string &name=std::string(), const URI &sender=URI(), const URI &receiver=URI()) const
Creates a frame and puts the options in an "options" map.
Handle< Component > get_child_checked(const std::string &name)
Basic Classes for Mesh applications used by COOLFluiD.
void signal_load_mesh(common::SignalArgs &node)
signal to load the mesh
Top-level namespace for coolfluid.
common::Component & root() const
Gives the default root component.
SelectOptionType< T >::type & add(const std::string &name, const T &default_value=T())
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.
BOOST_AUTO_TEST_CASE(constructor)