[P]arallel [Hi]gh-order [Li]brary for [P]DEs  Latest
Parallel High-Order Library for PDEs through hp-adaptive Discontinuous Galerkin methods
bound_preserving_limiter_factory.hpp
1 #ifndef __BOUND_PRESERVING_LIMITER_FACTORY_H__
2 #define __BOUND_PRESERVING_LIMITER_FACTORY_H__
3 
4 #include "parameters/all_parameters.h"
5 #include "bound_preserving_limiter.h"
6 
7 namespace PHiLiP {
8 
10 template <int dim, int nstate, typename real>
12 {
13 public:
15  static std::unique_ptr< BoundPreservingLimiter<dim,real> > create_limiter(
16  const Parameters::AllParameters *const parameters_input);
17 
19  static std::unique_ptr< BoundPreservingLimiter<dim, real> > select_limiter(
20  const Parameters::AllParameters* const parameters_input);
21 
22 };
23 
24 } // PHiLiP namespace
25 
26 #endif
Files for the baseline physics.
Definition: ADTypes.hpp:10
static std::unique_ptr< BoundPreservingLimiter< dim, real > > create_limiter(const Parameters::AllParameters *const parameters_input)
Recursively templated function that calls select_limiter when nstate is equal to one specified in prm...
This class creates a new BoundPreservingLimiter object based on input parameters. ...
Main parameter class that contains the various other sub-parameter classes.
static std::unique_ptr< BoundPreservingLimiter< dim, real > > select_limiter(const Parameters::AllParameters *const parameters_input)
Create a pointer to the limiter specified in prms.