Closed tberlok closed 7 years ago
I am going to make a Jupyter notebook where we can test this thoroughly.
The conclusion in afbb68a is that function pointers are too slow, as @tobson suspected all along.
I guess we will have to create a push_and_deposit_cic, a push_and_deposit_tsc and so on. This is not really satisfactory.
The multiple species branch runs the circular damping test at the same speed as the master branch (0.12 μs/particle/timestep). So those changes are fine, at least!
This issue has been resolved by not using function pointers for now.
This code is still fast (0.12 μs/particle/timestep):
while this code is slow (0.18 μs/particle/timestep):