Skip to content

Commit

Permalink
SoA Test: Update Breaking APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Nov 30, 2023
1 parent 7908a44 commit 069fd62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_soa.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
def test_soa_init():
soa = amr.StructOfArrays_2_1_default()
print("--test init --")
print("num real components", soa.NumRealComps())
print("num int components", soa.NumIntComps())
assert soa.NumRealComps() == 2 and soa.NumIntComps() == 1
print("num real components", soa.num_real_comps)
print("num int components", soa.num_int_comps)
assert soa.num_real_comps == 2 and soa.num_int_comps == 1

soa.define(1, 3)
print("--test define --")
print("num real components", soa.NumRealComps())
print("num int components", soa.NumIntComps())
assert soa.NumRealComps() == 3 and soa.NumIntComps() == 4
print("num real components", soa.num_real_comps)
print("num int components", soa.num_int_comps)
assert soa.num_real_comps == 3 and soa.num_int_comps == 4
print("num particles", soa.numParticles())
print("num real particles", soa.numRealParticles())
print("num totalparticles", soa.numTotalParticles())
Expand Down

0 comments on commit 069fd62

Please sign in to comment.