Silverfrost Forums

Welcome to our forums

Problems with running Fortran 77

8 Dec 2011 1:40 #9356

Hello,

I got a couple of codes written in Fortran 77. I have to run them in order to use the data they produce. The problem is that Plato does not recognize the code as code. My guess is that Plato sees only characters and does not recognize that is a standard command like 'if' or 'do' or 'end' or 'call'... There is a margin in every line differently, if I make it larger, Plato could recognize that line as code. But I can not do this manually for the huge programs I have.

Can you please help me!!

Miriam

8 Dec 2011 10:45 #9359

Your problem could relate to mixing up fixed and free format. F77 should be in fixed format. You should review what the fixed format restrictions are.

John

9 Dec 2011 9:41 #9362

Plato is an editor that allows you to view and edit your code.

You can use Plato to access FTN95 that compiles your code etc. in order to create an executable program. All you need to do is click on the Build button on the toolbar and then click on the Start button.

If the compilation process fails then this could be because old code will be 'Fixed Format'. For Plato and FTN95, a file that has a .for extension is assumed to be Fixed Format. Simply changing the name of the file may solve your problem.

Another common problem is that some code files contain TAB characters rather than spaces. Note also that fixed format files use statements that begin at column 7 or after (and before column 72).

Please login to reply.