Hello,
I'm trying to access the coordinates of the quadrature points.
I'm doing :
QGauss<dim> quadrature_formula(degree + 1);
FEValues<dim> fe_values(fe, quadrature_formula,
update_values | update_quadrature_points |
update_JxW_values | update_gradients);
const std::vector<Point<dim>> & q_list =
quadrature_formula.get_points();
in the loop of the quadrature points,
const Point<dim> & GaussPoint = q_list[q];
And when i'm trying to get the values of GaussPoint, with GaussPoint[0]
(in my case dim=2), i've got the error :
--------------------------------------------------------
An error occurred in line <2778> of file
</local/lib/dealii/9.5.2_with_petsc/include/deal.II/base/table.h> in
function
typename dealii::AlignedVector<T>::reference dealii::Table<2,
ElementType>::operator()(dealii::Table<2, ElementType>::size_type,
dealii::Table<2, ElementType>::size_type) [with T = double; typename
dealii::AlignedVector<T>::reference = double&; dealii::Table<2,
ElementType>::size_type = long unsigned int]
The violated condition was:
::dealii::deal_II_exceptions::internals::compare_less_than(i,
this->table_size[0])
Additional information:
Index 4 is not in the half-open range [0,4).
Stacktrace:
-----------
#0 ./step-22: dealii::Table<2, double>::operator()(unsigned long,
unsigned long)
#1 ./step-22: Step22::StokesProblem<2>::compute_residual()
#2 ./step-22: Step22::StokesProblem<2>::run()
#3 ./step-22: main
--------------------------------------------------------
I don't understand why !!
How can i access to those coordinates ?
Many thanks,
Yann
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dealii+unsubscr...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/dealii/ec566c25-8b78-4b1e-b246-d145e47983e8%40gmail.com.