7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for cf3::mesh::FieldManager"
10 #include <boost/test/unit_test.hpp>
11 #include <boost/assign/list_of.hpp>
12 #include <boost/foreach.hpp>
35 using namespace boost;
43 BOOST_AUTO_TEST_SUITE( FieldManagerSuite )
49 Core::instance().environment().options().set(
"exception_aborts",
false);
50 Core::instance().environment().options().set(
"exception_backtrace",
false);
51 Core::instance().environment().options().set(
"exception_outputs",
false);
55 const std::string tag =
"solution";
66 field_manager.
options().
set(
"variable_manager", var_manager);
78 var_manager->
get_child(tag)->remove_tag(tag);
85 BOOST_AUTO_TEST_SUITE_END()
VariablesDescriptor & create_descriptor(const std::string &name, const std::string &description)
bool has_variable(const std::string &vname) const
True if the field contains a variable with the given name.
Safe pointer to an object. This is the supported method for referring to components.
external boost library namespace
Basic Classes for Mathematical applications used by COOLFluiD.
BOOST_AUTO_TEST_CASE(test_FieldManager)
Field & field(const std::string &name)
Basic Classes for Mesh applications used by COOLFluiD.
Handle< Component > get_child(const std::string &name)
Top-level namespace for coolfluid.
Uint row_size(Uint i=0) const
void create_field(const std::string &tag, cf3::mesh::Dictionary &dict)
Create fields. Looks up the VariablesDescriptor with the given tag, and creates a field with the same...
Dictionary & geometry_fields() const
Base class for defining CF components.
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.
bool is_not_null(T ptr)
predicate for comparison to nullptr