Skip to content

Commit

Permalink
adjust comments
Browse files Browse the repository at this point in the history
  • Loading branch information
BillXu2000 committed Apr 22, 2022
1 parent 85a71e7 commit 8fb5660
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/taichi/lang/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ def get_relation_size(self, from_index, to_element_type):

def get_relation_access(self, from_index, to_element_type,
neighbor_idx_ptr):
# from_order = element_order(from_index.element_type)
# to_order = element_order(to_element_type)
return _ti_core.get_relation_access(self.mesh_ptr, from_index.ptr,
to_element_type, neighbor_idx_ptr)

Expand Down Expand Up @@ -562,8 +560,9 @@ def load_meta(filename):
def generate_meta(data):
return MeshMetadata(data)

class RelationVisitor(ast.NodeVisitor
): # TODO: only works for simple cases
class RelationVisitor(ast.NodeVisitor):
# TODO: only works for simple cases

def __init__(self, ctx):
self.vars = {}
self.visits = []
Expand Down

0 comments on commit 8fb5660

Please sign in to comment.