Skip to content

Commit 8109244

Browse files
committed
fix bug in 3D faceLocations
1 parent c0ff086 commit 8109244

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/pyfvtool/face.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,8 @@ def faceLocations(m: MeshStructure):
567567
raise TypeError('mesh type not implemented')
568568
return None
569569

570-
570+
571+
571572
def faceeval(f, *args):
572573
"""
573574
Evaluate a function f on a FaceVariable.

tests/test_facevariable.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ def test_facelocations3D():
133133
assert X.xvalue.shape == X.zvalue.shape, "error in X faceLocations for Grid3D"
134134
assert Y.xvalue.shape == Y.yvalue.shape, "error in Y faceLocations for Grid3D"
135135
assert Y.xvalue.shape == Y.zvalue.shape, "error in Y faceLocations for Grid3D"
136-
# assert Z.xvalue.shape == Z.yvalue.shape, "error in Z faceLocations for Grid3D"
136+
assert Z.xvalue.shape == Z.yvalue.shape, "error in Z faceLocations for Grid3D"
137137
assert Z.xvalue.shape == Z.zvalue.shape, "error in Z faceLocations for Grid3D"
138-
return m,X,Y,Z
138+
# return m,X,Y,Z
139139

140140

141141

142142
if __name__ == '__main__':
143143
test_facevariables()
144-
m,X,Y,Z = test_facelocations3D()
144+
test_facelocations3D()
145145

0 commit comments

Comments
 (0)