Conversion of a fortran simulation of cosmic ray particle in a turbulent magnetic field into a C cuda program that executes many simulations at once.