File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 88def test_soa_init ():
99 soa = amr .StructOfArrays_2_1_default ()
1010 print ("--test init --" )
11- print ("num real components" , soa .NumRealComps () )
12- print ("num int components" , soa .NumIntComps () )
13- assert soa .NumRealComps () == 2 and soa .NumIntComps () == 1
11+ print ("num real components" , soa .num_real_comps )
12+ print ("num int components" , soa .num_int_comps )
13+ assert soa .num_real_comps == 2 and soa .num_int_comps == 1
1414
1515 soa .define (1 , 3 )
1616 print ("--test define --" )
17- print ("num real components" , soa .NumRealComps () )
18- print ("num int components" , soa .NumIntComps () )
19- assert soa .NumRealComps () == 3 and soa .NumIntComps () == 4
17+ print ("num real components" , soa .num_real_comps )
18+ print ("num int components" , soa .num_int_comps )
19+ assert soa .num_real_comps == 3 and soa .num_int_comps == 4
2020 print ("num particles" , soa .numParticles ())
2121 print ("num real particles" , soa .numRealParticles ())
2222 print ("num totalparticles" , soa .numTotalParticles ())
You can’t perform that action at this time.
0 commit comments