danieljprice / phantom

Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
https://phantomsph.github.io
Other
103 stars 224 forks source link

dust diffusion test not safe with MPI #360

Open danieljprice opened 1 year ago

danieljprice commented 1 year ago

the dust diffusion test in the test suite is not safe with the MPI code, which could cause test failures. This is because dustevol_pred is locally allocated in test_dust.F90, but during the call to get_derivs_global() particles might be moved to other nodes which changes their identification

this causes a test failure in the MPI code when run on separate nodes