Calling anyone with knowledge of FORTRAN

Right, so I’m editing someone else’s Fortran program to get it to do what I’d like (big mistake, I know, but hey, it beats having to write the thing from scratch!), and I’m having a minor problem with one of the format statements. The statement is:

Now, I understand what each bit means, but my compiler does not like the “$” bit at all. Anyone got any ideas as to what’s going on? I’m using an f95 compiler on Redhat.

isn’t Kferr an old fortraner?

I know some FORTRAN. But damned if I remember any of it. IT was probley the most useless thing I ever learned in 1998

Well, I fixed the problem. I deleted the “$” sign. The program still works, and gives me the right results, so, no loss there.

I last did fortran in 1982, but found this link. The $ suppresses trailing carriage return during interactive I/O. Don’t know why its choking on it.

You know what I Always hated about de buging fortran?

NO Numbered lines! you have to count oall the line to find problems,. reall pain in the ass

Here, emacs is your friend. It tells you which line you’re on. :slight_smile:

Since, by the time I looked up the answer, I found that the problem no longer existed - what’s left is to turn this thread into a vi-emacs war :stuck_out_tongue:

On second thought, nevermind…

I used to use emacs for everything! Mail, newreader, editing, the works, I did a lot of perl and sql at that time. Then they took my trusty old SPARC 10 away and stuck me with this Dell :eek: and Win2k :rolleyes: now I use TextPad for writing/editing, mostly TCL and MQL with a little SQL on the side.

Wheee!! Another emacs afficionado!!

Now, I’m trying out some numerical integration…

People still use FORTRAN? I thought it had been replaced by C++.

Arise and walk, my crippled friend! Xemacs and Gnu Emacs are available for Windows.

Not in the sciences. Fortran is still very common. There are efficient Fortran compilers for number crunching, and there are still lots of professors who only know Fortran themselves, so that’s the codes their students use.

I’m not 100% sure, but I’m pretty sure that $ is not standard Fortran. I would guess it’s probably an extension for a particular compiler. I’ve never seen it before, and I’ve seen a lot of Fortran.

I knew before I opened the thread that it was going to be a question about a FORMAT statement. I just knew it.

Hehe :slight_smile: Yeah, FORTRAN is still used extensively in the sciences, and this was a program given to me by our head of group that he’d written a few years ago, to try and hack into some sort of fit state to extract densities from a model spectrum. (Don’t ask).

vi must perish in the flames of emacs’ hatred!

Ah screw it, I’m using Kate.