1. 程式人生 > >My Math Teacher's Friend's Hurricane Simulation Story

My Math Teacher's Friend's Hurricane Simulation Story

FORTRAN is very popular in Physics. They have some private heavily optimized libraries written in 1980 and updated and improved each year and they are not going to rewrite them.

You can find some code with the classic 5+1 spaces at the left, line numbers, no more than 72 characters. My recommendation is that if you are going to add new code, write nice code with proper nesting and using the "intersection" formatting

http://fortranwiki.org/fortran/show/Continuation+lines . Preferably with modules, explicit types, and other modern stuff.

On the other hand, the compilers are very good. Sometimes they are faster than C because you are not expected to do too much silly things with pointers, so the compiler can understand the code better. In The Computer Language Benchmarks Game, you can see that many times Fortran is faster than C.

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...