fipy icon indicating copy to clipboard operation
fipy copied to clipboard

`getFaceCenters()` is not dimensional

Open guyer opened this issue 10 years ago • 0 comments

In the case of a dimensional mesh, getCellCenters() returns scaled values but getFaceCenters() does not:

>>> mesh = Grid1D(nx=3, dx=Variable("1. mum"))
>>> print mesh.getCellCenters()
[[ 0.5  1.5  2.5]] mum
>>> print mesh.getFaceCenters()
[[ 0.  1.  2.  3.]]

Imported from trac ticket #186, created by guyer on 04-25-2009 at 08:49, last modified: 04-25-2009 at 08:49

guyer avatar Sep 19 '14 21:09 guyer