made the get_phis and qlinear functions work independant of dimension
This commit is contained in:
@@ -337,12 +337,13 @@ class delaunay_grid(grid):
|
||||
"""
|
||||
log.debug('start')
|
||||
qdelaunay_string = get_qdelaunay_dump_str(self)
|
||||
# log.debug(qdelaunay_string)
|
||||
cell_to_cells = []
|
||||
for matcher in delaunay_grid.cell_re.finditer(qdelaunay_string):
|
||||
d = matcher.groupdict()
|
||||
|
||||
cell_name = d['cell']
|
||||
verticies = d['verts']
|
||||
verticies = d['verts']
|
||||
neighboring_cells = d['neigh']
|
||||
|
||||
cur_cell = cell(cell_name)
|
||||
@@ -355,9 +356,11 @@ class delaunay_grid(grid):
|
||||
|
||||
nghbrs = [(cell_name, i) for i in neighboring_cells.split()]
|
||||
cell_to_cells.extend(nghbrs)
|
||||
log.debug(cell_to_cells)
|
||||
|
||||
for rel in cell_to_cells:
|
||||
if rel[1] in self.cells:
|
||||
self.cells[rel[0]].add_neighbor(self.cells[rel[1]])
|
||||
|
||||
log.debug(self.cells)
|
||||
log.debug('end')
|
||||
|
||||
Reference in New Issue
Block a user