VertexCFD  0.0-dev
VertexCFD_ClosureModelFactory_TemplateBuilder.hpp
1 #ifndef VERTEXCFD_CLOSUREMODELFACTORY_TEMPLATEBUILDER_HPP
2 #define VERTEXCFD_CLOSUREMODELFACTORY_TEMPLATEBUILDER_HPP
3 
4 #include "VertexCFD_ClosureModelFactory.hpp"
5 
6 #include <Panzer_ClosureModel_Factory_Base.hpp>
7 
8 #include <Teuchos_RCP.hpp>
9 
10 namespace VertexCFD
11 {
12 namespace ClosureModel
13 {
14 //---------------------------------------------------------------------------//
15 template<int NumSpaceDim>
17 {
18  public:
19  template<typename EvalT>
20  Teuchos::RCP<panzer::ClosureModelFactoryBase> build() const
21  {
22  auto closure_factory = Teuchos::rcp(new Factory<EvalT, NumSpaceDim>{});
23  return Teuchos::rcp_static_cast<panzer::ClosureModelFactoryBase>(
24  closure_factory);
25  }
26 };
27 
28 //---------------------------------------------------------------------------//
29 
30 } // end namespace ClosureModel
31 } // end namespace VertexCFD
32 
33 #endif // end VERTEXCFD_CLOSUREMODELFACTORY_TEMPLATEBUILDER_HPP
VertexCFD
Definition: tstMethodManufacturedSolutionBC.cpp:23
VertexCFD::ClosureModel::FactoryTemplateBuilder
Definition: VertexCFD_ClosureModelFactory_TemplateBuilder.hpp:17
VertexCFD::ClosureModel::Factory
Definition: VertexCFD_ClosureModelFactory.hpp:15