Hi Alessandro,Welcome to Orekit. I agree that any infinite loop is the code is a bug, even for unexpected input. Would you be able to create a test case and submit a patch to fix the issue?
Best Regards, Evan On 02/09/2017 11:42 AM, alessandro.vananti@aiub.unibe.ch wrote:
I noticed that sometimes my code is hanging in an infinite loop. I found out that if eMeSinE(E) is called with NaN as argument then it never returns. In my code the NaN is caused by an eccentricity e < -1 that I can easily check. (In the application I need to use e < 0 even if it is in theory not possible!) However the hanging behaviour is a bit misleading. Perhaps the method should throw an exception. Alessandro