Smoothed-particle Hydrodynamics in Niagara

Looking through the code I start to wonder why you use to seperate loops to iterate over all particles. Try putting your computations into a single loop as the article suggests and see if you get more stable results