Skip to content

Commit

Permalink
python - fix bad array bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylt committed Jan 16, 2025
1 parent cc3bdf8 commit daa84e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/test-1-vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,11 @@ def test_126(ceed_resource, capsys):
y = ceed.Vector(n)

a = np.arange(10, 10 + n, dtype=ceed.scalar_type())
print(a)
x.set_array(a, cmode=libceed.USE_POINTER)

a2 = np.arange(10, n, dtype=ceed.scalar_type())
a2 = np.arange(0, n, dtype=ceed.scalar_type())
print(a2)
y.set_array(a2, cmode=libceed.USE_POINTER)

y.copy_from(x)
Expand Down

0 comments on commit daa84e4

Please sign in to comment.