Skip to content
Snippets Groups Projects
Commit d2c52ac1 authored by Shivam Gupta's avatar Shivam Gupta
Browse files

Fixed issue with connectivity to self

parent c8a481e7
No related branches found
No related tags found
No related merge requests found
......@@ -692,10 +692,12 @@ class Refiner(object):
for ivertex in grp[iel_grp]:
element_to_element[element_index].update(
vertex_to_element[ivertex])
if self.hanging_vertex_element[ivertex] != -1:
if self.hanging_vertex_element[ivertex] != -1 and element_index != self.hanging_vertex_element[ivertex]:
element_to_element[element_index].update([self.hanging_vertex_element[ivertex]])
element_to_element[self.hanging_vertex_element[ivertex]].update([element_index])
element_index += 1
for iel, neighbors in enumerate(element_to_element):
neighbors.remove(iel)
#print self.ray_elements
'''
for ray in self.rays:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment