I am writing CUDA code but I think my error was caused in the CPU. The value n* dt were assigned to the kernel code to compute as timestep. However, when every time n = 100