25 #ifndef GRINS_PARSED_FUNCTION_TRAITS_H
26 #define GRINS_PARSED_FUNCTION_TRAITS_H
29 #include "libmesh/composite_fem_function.h"
30 #include "libmesh/composite_function.h"
31 #include "libmesh/const_fem_function.h"
32 #include "libmesh/fem_function_base.h"
33 #include "libmesh/function_base.h"
34 #include "libmesh/parsed_fem_function.h"
35 #include "libmesh/parsed_function.h"
36 #include "libmesh/zero_function.h"
40 template<
typename FunctionType>
43 template<
typename FEShape>
46 static bool const is_fem_function =
false;
49 template<
typename FEShape>
52 static bool const is_fem_function =
true;
57 template <
typename FunctionType,
58 bool is_fem_function =
65 const std::string & expression) {
69 static libMesh::ZeroFunction<libMesh::Number>
71 return libMesh::ZeroFunction<libMesh::Number>();
75 template <
typename FunctionType>
77 typedef libMesh::CompositeFEMFunction<libMesh::Number>
to_composite;
81 const std::string & expression) {
85 static libMesh::ConstFEMFunction<libMesh::Number>
87 return libMesh::ConstFEMFunction<libMesh::Number>(0);
93 #endif // GRINS_PARSED_FUNCTION_TRAITS_H
libMesh::CompositeFunction< libMesh::Number > to_composite
static libMesh::ConstFEMFunction< libMesh::Number > to_zero()
static libMesh::ParsedFunction< libMesh::Number > to_parsed(const libMesh::System &, const std::string &expression)
static libMesh::ZeroFunction< libMesh::Number > to_zero()
static libMesh::ParsedFEMFunction< libMesh::Number > to_parsed(const libMesh::System &system, const std::string &expression)
libMesh::CompositeFEMFunction< libMesh::Number > to_composite