7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for the SolveLSS action"
10 #include <boost/assign/std/vector.hpp>
11 #include <boost/test/unit_test.hpp>
29 BOOST_AUTO_TEST_SUITE( SolveSystemSuite )
35 Comm::instance().init(boost::unit_test::framework::master_test_suite().argc, boost::unit_test::framework::master_test_suite().argv);
42 std::vector<Uint> gid, conn, startidx, rnk;
43 gid += 0,1,2,3,4,5,6,7,8,9;
44 rnk += 0,0,0,0,0,0,0,0,0,0;
45 conn += 0,2,1,2,2,7,3,8,4,5,5,2,6,0,7,1,8,7,9,8;
46 startidx += 0,2,4,6,8,10,12,14,16,18,20;
47 cp.
insert(
"gid",gid,1,
false);
50 lss->options().set(
"matrix_builder", std::string(
"cf3.math.LSS.EmptyLSSMatrix"));
51 lss->options().set(
"solution_strategy", std::string(
"cf3.math.LSS.EmptyStrategy"));
52 lss->create(cp, 4u, conn, startidx);
60 BOOST_AUTO_TEST_SUITE_END()
62
BOOST_AUTO_TEST_CASE(TestSolveSystem)
This header collects all the headers needed for the linear system solver, also including configure-ti...
Basic Classes for Mathematical applications used by COOLFluiD.
Parallel Communication Pattern. This class provides functionality to collect communication. For efficiency it works such a way that you submit your request via the constructor or the add/remove/move magic triangle and then call setup to modify the commpattern. The data needed to be kept synchronous can be registered via the insert function. The word node here means any kind of "point of storage", in this context it is not directly related with the computational mesh.
void insert(const std::string &name, T *&data, const int size, const unsigned int stride=1, const bool needs_update=true)
Base wrapper class serving as interface.
Top-level namespace for coolfluid.
Classes offering a MPI interface for COOLFluiD.
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.
void execute()
Run the underlying linear system math.