1#ifndef HLDO_SPHERE_MESH_FUNCTION_WHITNEY_TWO_H
2#define HLDO_SPHERE_MESH_FUNCTION_WHITNEY_TWO_H
7#include <lf/uscalfe/uscalfe.h>
17template <
typename SCALAR>
35 const std::shared_ptr<const lf::mesh::Mesh> mesh)
36 : mu_(mu), mesh_(mesh) {
39 int mu_size = mu.size();
42 "Not the right number of basis expansion coefficiants in mu expected: "
43 << n <<
" given: " << mu_size);
72 const Eigen::MatrixXd& local)
const {
75 "Unsupported cell type " << e.
RefEl());
82 std::vector<SCALAR> vals(local.cols());
83 for (
int i = 0; i < local.cols(); i++) {
84 vals[i] = mu_(global_index);
91 const Eigen::Matrix<SCALAR, Eigen::Dynamic, 1>& mu_;
92 const std::shared_ptr<const lf::mesh::Mesh> mesh_;
static constexpr RefEl kTria()
Returns the reference triangle.
Interface class representing a topological entity in a cellular complex
virtual base::RefEl RefEl() const =0
Describes the reference element type of this entity.
Provides Mesh Function for Whitney two basis expansion coefficients.
MeshFunctionWhitneyTwo(const Eigen::Matrix< SCALAR, Eigen::Dynamic, 1 > &mu, const std::shared_ptr< const lf::mesh::Mesh > mesh)
basic constructor
unsigned int size_type
general type for variables related to size of arrays
Postprocessing such as computing norms and Mesh Functions and plot scripts.