COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Macros | Functions
utest-lss-system-emptylss.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <boost/assign/std/vector.hpp>
#include "common/Log.hpp"
#include "math/LSS/System.hpp"
#include "common/PE/CommPattern.hpp"
#include "common/PE/CommWrapper.hpp"

Go to the source code of this file.

Classes

struct  LSSSystem_EmptyLSSFixture
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "Test module for cf3::math::LSS where testing LSS::System and the dummy EmptyLSS."
 
#define CHECK_BLOCKACCUMULATOR_IS_CONSTANT(ba, refval)
 

Functions

 BOOST_AUTO_TEST_CASE (init_mpi)
 
 BOOST_AUTO_TEST_CASE (is_created)
 
 BOOST_AUTO_TEST_CASE (check_properties)
 
 BOOST_AUTO_TEST_CASE (blockaccumulator)
 
 BOOST_AUTO_TEST_CASE (check_emptylss_implementations)
 
 BOOST_AUTO_TEST_CASE (swap_matrix_vector)
 
 BOOST_AUTO_TEST_CASE (finalize_mpi)
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 8 of file utest-lss-system-emptylss.cpp.

#define BOOST_TEST_MODULE   "Test module for cf3::math::LSS where testing LSS::System and the dummy EmptyLSS."

Definition at line 9 of file utest-lss-system-emptylss.cpp.

#define CHECK_BLOCKACCUMULATOR_IS_CONSTANT (   ba,
  refval 
)
Value:
{ \
BOOST_CHECK_EQUAL(ba.mat.isConstant(refval,1.e-10),true); \
Real sum=ba.mat.sum(); \
Real numentries=(Real)(ba.mat.rows()*ba.mat.cols()); \
BOOST_CHECK_CLOSE(sum,numentries*refval,1.e-10); \
BOOST_CHECK_EQUAL(ba.rhs.isConstant(refval,1.e-10),true); \
sum=ba.rhs.sum(); \
numentries=(Real)(ba.rhs.rows()*ba.rhs.cols()); \
BOOST_CHECK_CLOSE(sum,numentries*refval,1.e-10); \
BOOST_CHECK_EQUAL(ba.sol.isConstant(refval,1.e-10),true); \
sum=ba.sol.sum(); \
numentries=(Real)(ba.sol.rows()*ba.sol.cols()); \
BOOST_CHECK_CLOSE(sum,numentries*refval,1.e-10); \
}
Real e()
Definition of the Unit charge [C].
Definition: Consts.hpp:30

Definition at line 85 of file utest-lss-system-emptylss.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( init_mpi  )

Definition at line 106 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( is_created  )

Definition at line 115 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( check_properties  )

Definition at line 130 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( blockaccumulator  )

Definition at line 149 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( check_emptylss_implementations  )

Definition at line 178 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( swap_matrix_vector  )

Definition at line 245 of file utest-lss-system-emptylss.cpp.

BOOST_AUTO_TEST_CASE ( finalize_mpi  )

Definition at line 270 of file utest-lss-system-emptylss.cpp.

Send comments to:
COOLFluiD Web Admin