Skip to content

Commit

Permalink
Set is_tensor_product_flag in Quadrature::initialize(..)
Browse files Browse the repository at this point in the history
If you first create a quadrature which is a tensor product and then
call initialize with points and weights which does not correspond
to a tensor product, you can make is_tensor_product_flag have the
wrong value. Set the flag in intialize(..) to avoid this.
  • Loading branch information
simonsticko committed May 13, 2022
1 parent 725369c commit b3407f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/base/quadrature.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ Quadrature<dim>::initialize(const std::vector<Point<dim>> &p,
const std::vector<double> & w)
{
AssertDimension(w.size(), p.size());
quadrature_points = p;
weights = w;
quadrature_points = p;
weights = w;
is_tensor_product_flag = dim == 1;
}


Expand Down

0 comments on commit b3407f1

Please sign in to comment.