COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Classes | Macros | Functions | Variables
utest-proto-components.cpp File Reference
#include <map>
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include "common/ActionDirector.hpp"
#include "common/Core.hpp"
#include "common/Log.hpp"
#include "common/TimedComponent.hpp"
#include <common/Environment.hpp>
#include "math/MatrixTypes.hpp"
#include "mesh/Domain.hpp"
#include "mesh/Mesh.hpp"
#include "mesh/Field.hpp"
#include "mesh/FieldManager.hpp"
#include "physics/PhysModel.hpp"
#include "solver/Model.hpp"
#include "solver/SimpleSolver.hpp"
#include "solver/actions/Proto/ComponentWrapper.hpp"
#include "solver/actions/Proto/ConfigurableConstant.hpp"
#include "solver/actions/Proto/ProtoAction.hpp"
#include "solver/actions/Proto/Expression.hpp"
#include "solver/actions/Proto/Terminals.hpp"
#include "solver/actions/Proto/Transforms.hpp"
#include "Tools/MeshGeneration/MeshGeneration.hpp"
#include "solver/Tags.hpp"

Go to the source code of this file.

Classes

struct  SimpleGrammar
 Simple test grammar. More...
 
class  CustomProtoSolver
 Create a custom actiondomain. More...
 
struct  ComponentURIPrinter
 
struct  ComponentURIPrinter::impl< ExprT, StateT, DataT >
 
struct  SomeTag
 Define a tag (not used here) More...
 

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   "Test module for proto operations related to components"
 

Functions

void check_close (const RealMatrix2 &a, const RealMatrix2 &b, const Real threshold)
 Check close, for testing purposes. More...
 
void check_equal (const Uint a, const Uint b)
 Check_equal function for use inside expressions. More...
 
 BOOST_AUTO_TEST_CASE (CopiedReference)
 Check if copying references works as expected. More...
 
 BOOST_AUTO_TEST_CASE (UseConfigurableConstant)
 
 BOOST_AUTO_TEST_CASE (SetupModel)
 Set up a model. More...
 
 BOOST_AUTO_TEST_CASE (ExpressionOptions)
 Test option creation from an expression. More...
 
 BOOST_AUTO_TEST_CASE (PhysicalModelUsage)
 Test variable registration with a physical model. More...
 
 BOOST_AUTO_TEST_CASE (ProtoActionTest)
 Test ProtoAction. More...
 
 BOOST_AUTO_TEST_CASE (SimpleSolverTest)
 Test SimpleSolver. More...
 
 BOOST_AUTO_TEST_CASE (PhysicsSolverTest)
 Test Physics constants. More...
 
 BOOST_AUTO_TEST_CASE (ProtoCustomSolver)
 
 BOOST_AUTO_TEST_CASE (CopyExpression)
 
 BOOST_AUTO_TEST_CASE (ComponentWrapperURI)
 

Variables

static boost::proto::terminal< void(*)(const RealMatrix2 &, const RealMatrix2 &, Real) >::type const _check_close = {&check_close}
 
static boost::proto::terminal< void(*)(const Uint, const Uint) >::type const _check_equal = {&check_equal}
 

Macro Definition Documentation

#define BOOST_TEST_DYN_LINK

Definition at line 7 of file utest-proto-components.cpp.

#define BOOST_TEST_MODULE   "Test module for proto operations related to components"

Definition at line 8 of file utest-proto-components.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( CopiedReference  )

Check if copying references works as expected.

Definition at line 89 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( UseConfigurableConstant  )

Definition at line 100 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( SetupModel  )

Set up a model.

Definition at line 123 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( ExpressionOptions  )

Test option creation from an expression.

Definition at line 133 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( PhysicalModelUsage  )

Test variable registration with a physical model.

Definition at line 159 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( ProtoActionTest  )

Test ProtoAction.

Definition at line 189 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( SimpleSolverTest  )

Test SimpleSolver.

Definition at line 221 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( PhysicsSolverTest  )

Test Physics constants.

Definition at line 255 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( ProtoCustomSolver  )

Definition at line 324 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( CopyExpression  )

Definition at line 343 of file utest-proto-components.cpp.

BOOST_AUTO_TEST_CASE ( ComponentWrapperURI  )

Definition at line 385 of file utest-proto-components.cpp.

void check_close ( const RealMatrix2 a,
const RealMatrix2 b,
const Real  threshold 
)
inline

Check close, for testing purposes.

Definition at line 51 of file utest-proto-components.cpp.

void check_equal ( const Uint  a,
const Uint  b 
)
inline

Check_equal function for use inside expressions.

Definition at line 78 of file utest-proto-components.cpp.

Variable Documentation

boost::proto::terminal< void(*)(const RealMatrix2&, const RealMatrix2&, Real) >::type const _check_close = {&check_close}
static

Definition at line 58 of file utest-proto-components.cpp.

boost::proto::terminal< void(*)(const Uint, const Uint) >::type const _check_equal = {&check_equal}
static

Definition at line 83 of file utest-proto-components.cpp.

Send comments to:
COOLFluiD Web Admin