I am considering a time-dependent fluid-kinetic problem for which, at every time step, I have a PDE to solve (that’s ok, it takes 3 seconds and that is fine by me) and ODEs for 200 particles. In order to solve these independent ODEs, I need a quite small discretization (about 8000 iterations) which leads to very long computation times (800 seconds to solve the 200 ODEs, multiplied by about 600 global time steps…).
Since the ODEs are independent from one another (they only depend on the solution of the PDE I solve at each global time step and a few other global variables), I was thinking I could have them solved on different cores and retrieve the result after each global iteration (I need it for the next global step of the PDE).
Hence my question: how could I do that?
Thanks for any advice or reference!
(PS: if the solution would work on the version 3.430002 that would be great because of the issue I raised on git with the function convect in 3D)