You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm comparing some refinement indicators and I ran into this issue where calling mesh.refine_marked_elements() multiple times with different indicators fails with an index out of bounds error.
I'm not sure if this is coming from the ngsPETSc or firedrake.
Expected behavior
I would expect this method to work the same for both indicator functions.
Error message
Traceback (most recent call last):
File "/home/stefano/FiredrakeAdapt/bugExamples/SameMeshMultipleRefinements.py", line 22, in <module>
meshadapt2 = mesh.refine_marked_elements(mark2)
File "/home/stefano/FiredrakeAdapt/firedrake-dec24/lib/python3.10/site-packages/ngsPETSc/utils/firedrake/meshes.py", line 64, in refineMarkedElements
if mark[getIdx(i)] > 0:
IndexError: index 926 is out of bounds for axis 0 with size 926
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm comparing some refinement indicators and I ran into this issue where calling
mesh.refine_marked_elements()
multiple times with different indicators fails with an index out of bounds error.I'm not sure if this is coming from the ngsPETSc or firedrake.
Steps to Reproduce
Expected behavior
I would expect this method to work the same for both indicator functions.
Error message
The text was updated successfully, but these errors were encountered: