Menu

#4 E for exponent dropped in solution file

v1.0 (example)
closed
None
5
2019-05-23
2008-07-08
Daan
No

In solution files (e.g. "fort.7"), if the exponent has more than two digits, the "E" for exponent disappears, e.g. -9.8813129168E-324 becomes -9.8813129168-324. When imported into Mathematica, the number becomes a String in stead of a Real.

I'm using auto-07p-0.5, but I also encountered the problem in files generated by older versions.

Discussion

  • Daan

    Daan - 2008-07-08

    Solution file with missing "E"'s

     
  • Bart Oldeman

    Bart Oldeman - 2010-02-14

    Hi,

    sorry for the late reply, I just saw this.

    this is a general issue with Fortran. We'd have to use three digits for exponents everywhere to avoid the problem.
    But if you use the Python method writeRawFilename (see manual) to export solutions the E's will be there.

    Bart

     
  • Daan

    Daan - 2011-01-15

    Thanks Bart! That works.

     
  • Bart Oldeman

    Bart Oldeman - 2019-05-23
    • status: open --> closed
    • assigned_to: Bart Oldeman
    • Group: --> v1.0 (example)
     

Log in to post a comment.