4 ms·
> converting some FORTRAN astrophysics simulation code from 1974 into C# for a Unity project But FORTRAN is SOOOO fast. In R there is still plenty of FORTRAN
by baldfat 11y ago
> converting some FORTRAN astrophysics simulation code from 1974 into C# for a Unity project
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.
- musgravepeter 11y agoYeah - I hear you. Converting 1000 lines was a BIG drag. 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 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.
- baldfat 11y agoSo I am hoping you read the SciFi book the Three Body Problem?