Skip to content

Commit

Permalink
Issue557 face grad average is stupid (#653)
Browse files Browse the repository at this point in the history
* Deprecate .faceGradAverage

* Remove old deprecation
  • Loading branch information
guyer authored Jun 14, 2019
1 parent d6571c3 commit cc55531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fipy/meshes/abstractMesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ def faceCenters(self):
cellDistanceVectors = property(lambda s: s._cellDistanceVectors)
cellVolumes = property(lambda s: s._scaledCellVolumes)

@property
@deprecate(new_name="faceNormals", version=3.1)
def _faceNormals(self):
return self.faceNormals

@property
def cellCenters(self):
from fipy.variables.cellVariable import CellVariable
Expand Down
2 changes: 2 additions & 0 deletions fipy/variables/cellVariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from fipy.variables.meshVariable import _MeshVariable
from fipy.tools import numerix
from fipy.tools.decorators import deprecate

__all__ = ["CellVariable"]
from future.utils import text_to_native_str
Expand Down Expand Up @@ -402,6 +403,7 @@ def faceGrad(self):
return self._faceGrad

@property
@deprecate(new_name="grad.arithmeticFaceValue", version=3.3)
def faceGradAverage(self):
r"""
Return :math:`\nabla \phi` as a rank-1 `FaceVariable` using averaging
Expand Down

0 comments on commit cc55531

Please sign in to comment.