Skip to content

Commit

Permalink
fix common_refinement
Browse files Browse the repository at this point in the history
  • Loading branch information
gertjanvanzwieten committed Feb 3, 2015
1 parent 51f43d7 commit dff0279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nutils/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,10 +1317,10 @@ def common_refine( topo1, topo2 ):
commonelem.append( elem1 )
topo2trans[ head ] = None
commonelem.extend( elem for elem in topo2trans.values() if elem is not None )
base1 = topo1.basetopo if isinstance( topo1, topology.HierarchicalTopology ) else topo1
base2 = topo2.basetopo if isinstance( topo2, topology.HierarchicalTopology ) else topo2
base1 = topo1.basetopo if isinstance( topo1, HierarchicalTopology ) else topo1
base2 = topo2.basetopo if isinstance( topo2, HierarchicalTopology ) else topo2
assert base1 == base2
return topology.HierarchicalTopology( base1, commonelem )
return HierarchicalTopology( base1, commonelem )


# vim:shiftwidth=2:foldmethod=indent:foldnestmax=2

0 comments on commit dff0279

Please sign in to comment.