Skip to content

Commit

Permalink
fix tests for new version of meshio
Browse files Browse the repository at this point in the history
  • Loading branch information
keurfonluu committed Feb 17, 2022
1 parent 1910c58 commit 1d0f14a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_meshio.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def test_meshio_2d():
assert mesh.cell_data["Velocity"][0].sum() == nz * nx

assert len(mesh_ray.points) == len(ray)
assert len(mesh_ray.cells[0][1]) == len(ray) - 1
assert mesh_ray.cells[0][1].sum() == 64.0
assert len(mesh_ray.cells[0].data) == len(ray) - 1
assert mesh_ray.cells[0].data.sum() == 64.0


def test_meshio_3d():
Expand Down Expand Up @@ -55,5 +55,5 @@ def test_meshio_3d():
assert mesh.cell_data["Velocity"][0].sum() == nz * nx * ny

assert len(mesh_ray.points) == len(ray)
assert len(mesh_ray.cells[0][1]) == len(ray) - 1
assert mesh_ray.cells[0][1].sum() == 169.0
assert len(mesh_ray.cells[0].data) == len(ray) - 1
assert mesh_ray.cells[0].data.sum() == 169.0

0 comments on commit 1d0f14a

Please sign in to comment.