This commit is contained in:
Rowan Cockett
2015-11-18 17:18:55 -08:00
parent f928ab8019
commit ccc3e4fe8f
+2 -1
View File
@@ -160,10 +160,12 @@ class TreeMesh(BaseTensorMesh, InnerProducts):
@property
def fill(self):
"""How filled is the mesh compared to a TensorMesh? As a fraction: [0,1]."""
return float(self.nC)/((2**self.maxLevel)**self.dim)
@property
def maxLevel(self):
"""The maximum level used, which may be less than `levels`."""
l = 0
for cell in self._cells:
p = self._pointer(cell)
@@ -307,7 +309,6 @@ class TreeMesh(BaseTensorMesh, InnerProducts):
self.number()
return len(self._hangingEz)
@property
def ntN(self):
self.number()