Closed renereimann closed 6 years ago
Seperating saving and calculation done by rewrite. The main loop still does one source at a time but that can be easily changed as all functions now work with N as parameter. We do not need this request any longer.
I have moved the part that saves things to the txt file into a seperate function. The result is stored in a numpy array in the mean time. I also rewrote the central simulation loop. Instead of the loop we now use the power of numpy arrays. This results in an improved performance of a factor 4. The runtime for a simple test decreased on my mashine from ~38sec to ~9sec.