I am working with deal.II and encountering an issue with KellyErrorEstimator. I started with a code that solves the Laplace equation in a non-convex domain using adaptive refinement. The original code was designed for rectangular mesh, but I updated it to work with a triangular mesh. While KellyErrorEstimator runs fine on the initial mesh and first iteration of refinement, the code breaks on the second iteration, and the error seems to originate from KellyErrorEstimator.
Has anyone faced a similar issue or have any suggestions on what might be causing this? Any insights on debugging would be greatly appreciated.
Thanks in advance!
Best,
Devansh
Output:
Number of active cells: 2400
Total number of cells: 2400
Number of degrees of freedom: 1281
35 CG iterations needed to obtain convergence.
Computing error norms
Refining grid based on error estimator
Debug message - Before running KellyErrorEstimator
Debug message - After running KellyErrorEstimator
Number of active cells: 2634
Total number of cells: 2712
Number of degrees of freedom: 1414
53 CG iterations needed to obtain convergence.
Computing error norms
Refining grid based on error estimator
Debug message - Before running KellyErrorEstimator
Segmentation fault: 11
--------------------------------------------------------
An error occurred in line <1597> of file </home/c.praveen_052/work/deal.II/9.6.2/source/base/qprojector.cc> in function
static dealii::QProjector<dim>::DataSetDescriptor dealii::QProjector<dim>::DataSetDescriptor::subface(const dealii::ReferenceCell&, unsigned int, unsigned int, unsigned char, unsigned int, dealii::internal::SubfaceCase<dim>) [with int dim = 2]
The violated condition was:
reference_cell == ReferenceCells::Quadrilateral
Additional information:
You are trying to use functionality in deal.II that is currently not
implemented. In many cases, this indicates that there simply didn't
appear much of a need for it, or that the author of the original code
did not have the time to implement a particular case. If you hit this
exception, it is therefore worth the time to look into the code to
find out whether you may be able to implement the missing
functionality. If you do, please consider providing a patch to the
deal.II development sources (see the deal.II website on how to
contribute).
Once the triangular mesh has hanging nodes, it fails at this point.
best
praveen
To view this discussion visit https://groups.google.com/d/msgid/dealii/CAOYDWb%2BKHcuHPDH9kJgbcqJ7wqQXYYuX148C90jWb4WZ4w89nQ%40mail.gmail.com.