mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-12 12:30:37 +08:00
Refactoring.
This commit is contained in:
@@ -480,8 +480,6 @@ class TreeMesh(BaseTensorMesh, InnerProducts):
|
||||
self.balance()
|
||||
return recurse
|
||||
|
||||
if verbose: print ' ', time.time() - tic
|
||||
|
||||
def _refineCell(self, ind, pointer=None):
|
||||
ind = self._asIndex(ind)
|
||||
pointer = self._asPointer(pointer if pointer is not None else ind)
|
||||
@@ -524,7 +522,6 @@ class TreeMesh(BaseTensorMesh, InnerProducts):
|
||||
return self._index(pointer)
|
||||
raise Exception
|
||||
|
||||
|
||||
def _childPointers(self, pointer, direction=0, positive=True, returnAll=False):
|
||||
l = self._levelWidth(pointer[-1] + 1)
|
||||
|
||||
@@ -557,7 +554,6 @@ class TreeMesh(BaseTensorMesh, InnerProducts):
|
||||
return children
|
||||
return [children[_] for _ in ind[:(self.dim-1)*2]]
|
||||
|
||||
|
||||
def _parentPointer(self, pointer):
|
||||
if pointer[-1] == 0: return None
|
||||
mod = self._levelWidth(pointer[-1] - 1)
|
||||
|
||||
Reference in New Issue
Block a user