error: size of array 'momentumOfparticles' has non-integral type 'float [i]'

Thx for the help its solved and its working now :slight_smile: