I still code - and have just finished converting some FORTRAN astrophysics simulation code from 1974 into C# for a Unity project.
I still code - and have just finished converting some FORTRAN astrophysics simulation code from 1974 into C# for a Unity project.
We coded carefully in days of yore :)
[1] https://www.eldacur.com/~brons/NerdCorner/StarGen/StarGen.ht...
But FORTRAN is SOOOO fast. In R there is still plenty of FORTRAN code running. I still would want the code running FORTRAN and try to figure a way for it to run as is.
I understand the need for it to run in Unity but just I hate the idea of all FORTRAN code needs to be converted.
I did experiment with native and f2c versions - but when targeting for mobile it meant a bunch of Android and iOS packaging that was kinda irritating.
The specific code I targeted (3 body evolution using KS regularization, the triple code at http://www.ast.cam.ac.uk/~sverre/web/pages/nbody.htm) was modest and not CPU intensive.
I'd love to do the same for NBODY6 and that would have to be native.
Look for an update to my ThreeBody app with this code (and a cool gallery of new 3B solutions) sometime late in the year.