aryafallahi / mithra

MITHRA is a full-wave numerical solver for free-electron lasers.
17 stars 7 forks source link

End point #43

Closed arnaualba closed 4 years ago

arnaualba commented 4 years ago

This is just a proposition, you don't have to merge it if you don't agree. When we discussed it you said that it would slow down the code to do it this way. I have implemented and in a small test on my laptop I saw no significant slow down. Let me know what you think.

Personally I like this implementation, and I think it also saves time because you only simulate up to the point you need. By giving a total time you might be simulating for too long, in which case the simulation takes longer than needed, or too little, in which case you only discover after the simulation that you had actually given a wrong time.