From dc334e77c5f7a29a7c8fcb17e86f0cfa87b950a4 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 6 Nov 2023 14:44:50 -0800 Subject: [PATCH] SoA Test: Update Breaking APIs --- tests/test_soa.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_soa.py b/tests/test_soa.py index 24c6911f..0edaaf78 100644 --- a/tests/test_soa.py +++ b/tests/test_soa.py @@ -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())