15 val += (
vals.det.array() *
vals.quadrature.weights.array()).sum() *
x(e);
24 gradv.setZero(
x.size());
29 gradv(e) = (
vals.det.array() *
vals.quadrature.weights.array()).sum();
ElementAssemblyValues vals
assembler::AssemblyValsCache ass_vals_cache
used to store assembly values for small problems
const std::vector< basis::ElementBases > & geom_bases() const
Get a constant reference to the geometry mapping bases.
std::unique_ptr< mesh::Mesh > mesh
current mesh, it can be a Mesh2D or Mesh3D
std::vector< basis::ElementBases > bases
FE bases, the size is #elements.
void compute(const int el_index, const bool is_volume, const basis::ElementBases &basis, const basis::ElementBases &gbasis, ElementAssemblyValues &vals) const
retrieves cached basis evaluation and geometric for the given element if it doesn't exist,...
stores per element basis values at given quadrature points and geometric mapping