21 template <
int p,
int c>
22 struct finite_element<mfem::Geometry::SEGMENT, Hcurl<p, c> > {
23 static constexpr
auto geometry = mfem::Geometry::SEGMENT;
24 static constexpr
auto family = Family::HCURL;
25 static constexpr
int components = c;
26 static constexpr
int dim = 1;
27 static constexpr
int ndof = (p + 1);
29 using dof_type = tensor<double, c, ndof>;
30 using dof_type_if = dof_type;
32 SERAC_HOST_DEVICE static constexpr tensor<double, ndof> shape_functions(
double xi)
34 return GaussLegendreInterpolation<ndof>(xi);
37 SERAC_HOST_DEVICE static constexpr tensor<double, ndof> shape_function_gradients(
double xi)
39 return GaussLegendreInterpolationDerivative<ndof>(xi);
#define SERAC_HOST_DEVICE
Macro that evaluates to __host__ __device__ when compiling with nvcc and does nothing on a host compi...