Skip to content

Commit

Permalink
Work-around
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Jun 16, 2024
1 parent de88591 commit 6c1b942
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cpp/QuadratureRule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ QuadratureRule::QuadratureRule(dolfinx::mesh::CellType cell, int degree,
basix::cell::type b_ct = dolfinx::mesh::cell_type_to_basix_type(cell);
_num_sub_entities = basix::cell::num_sub_entities(b_ct, dim);
int tdim = basix::cell::topological_dimension(b_ct);
int _tdim = basix::cell::topological_dimension(b_ct);

assert(dim <= 3);

Expand Down Expand Up @@ -96,13 +97,17 @@ QuadratureRule::QuadratureRule(dolfinx::mesh::CellType cell, int degree,
= basix::cell::sub_entity_geometry<double>(b_ct, dim, i);
mdspan_t<const double, 2> coords(sub_geomb.data(), sub_geom_shape);

std::cout << "Test dim: " << _tdim << ", " << coords.extent(1)
<< std::endl;

// Push forward quadrature point from reference entity to reference
// entity on cell
const std::size_t offset = _points.size();
_points.resize(_points.size() + num_points * coords.extent(1));
mdspan_t<double, 2> entity_qp(_points.data() + offset, num_points,
coords.extent(1));
assert(coords.extent(1) == tdim);

assert(coords.extent(1) == (std::size_t)_tdim);
dolfinx::math::dot(phi, coords, entity_qp);
const std::size_t weights_offset = _weights.size();
_weights.resize(_weights.size() + q_weights.size());
Expand Down

0 comments on commit 6c1b942

Please sign in to comment.