[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
PHiLiP::Tests::TestsFactory< dim, nstate, MeshType > Class Template Reference

Test factory, that will create the correct test with the right template parameters. More...

#include <tests.h>

Collaboration diagram for PHiLiP::Tests::TestsFactory< dim, nstate, MeshType >:

Static Public Member Functions

static std::unique_ptr< TestsBasecreate_test (const Parameters::AllParameters *const parameters_input, dealii::ParameterHandler &parameter_handler_input)
 Recursive factory that will create TestBase<int dim, int nstate> More...
 
static std::unique_ptr< TestsBaseselect_mesh (const Parameters::AllParameters *const parameters_input, dealii::ParameterHandler &parameter_handler_input)
 selects the mesh type to be used in the test More...
 
static std::unique_ptr< TestsBaseselect_test (const Parameters::AllParameters *const parameters_input, dealii::ParameterHandler &parameter_handler_input)
 Selects the actual test such as grid convergence, numerical flux conversation, etc. More...
 

Detailed Description

template<int dim, int nstate, typename MeshType = dealii::Triangulation<dim>>
class PHiLiP::Tests::TestsFactory< dim, nstate, MeshType >

Test factory, that will create the correct test with the right template parameters.

Definition at line 71 of file tests.h.

Member Function Documentation

◆ create_test()

template<int dim, int nstate, typename MeshType >
std::unique_ptr< TestsBase > PHiLiP::Tests::TestsFactory< dim, nstate, MeshType >::create_test ( const Parameters::AllParameters *const  parameters_input,
dealii::ParameterHandler &  parameter_handler_input 
)
static

Recursive factory that will create TestBase<int dim, int nstate>

Must be called with the highest number possible of dimension and nstate. For example

TestBase test = TestFactory::create_test<3,5>(parameters_input)

Parameters
[in]parameters_inputInput parameters.
Returns
Smart pointer to the test

Definition at line 351 of file tests.cpp.

◆ select_mesh()

template<int dim, int nstate, typename MeshType >
std::unique_ptr< TestsBase > PHiLiP::Tests::TestsFactory< dim, nstate, MeshType >::select_mesh ( const Parameters::AllParameters *const  parameters_input,
dealii::ParameterHandler &  parameter_handler_input 
)
static

selects the mesh type to be used in the test

Parameters
[in]parameters_inputInput parameters.
Returns
Smart pointer to the test

Definition at line 203 of file tests.cpp.

◆ select_test()

template<int dim, int nstate, typename MeshType >
std::unique_ptr< TestsBase > PHiLiP::Tests::TestsFactory< dim, nstate, MeshType >::select_test ( const Parameters::AllParameters *const  parameters_input,
dealii::ParameterHandler &  parameter_handler_input 
)
static

Selects the actual test such as grid convergence, numerical flux conversation, etc.

Parameters
[in]parameters_inputInput parameters.
Returns
Smart pointer to the test

Definition at line 233 of file tests.cpp.


The documentation for this class was generated from the following files: