Silverfrost Forums

Welcome to our forums

fortran 77 code

21 Mar 2013 2:46 #11855

Dear Support

I am converting some old F77 code (written on Vax computer, so it is old). When compiling the code I get an error with the following functions:

JIDINT COSD RAN

Can you help 'translate' these to F95 and is there somewhere a reference manual for F77 (and the F95 equivalent

regards

Sten Lou

21 Mar 2013 3:20 #11857

Do you have any idea what these functions do?

22 Mar 2013 10:41 #11865

For a concise guide to Fortran 77 consider: http://www.star.le.ac.uk/~cgp/prof77.html

Googling will show you many documents relating to migrating to Fortran-90 or 95, fewer to the even later standard - although a lot of the latter is not yet in FTN95. Opinions vary as to the usefulness of much in the later standards - old hobby programmers like me think most of it is pointless, talented computer scientists think most of it is vital - but one thing is clear: don't try to convert 77 to 90/95 until the 77 program works, or you will get in a real mess!

Books (made of paper) on Fortran can be obtained from a variety of internet sources.

Many compilers offered extensive libraries of functions. The earlier versions of FTN95 (e.g. FTN77) had one of the largest. Many of the functions still work. They are documented in the support section of the Silverfrost website as a downloadable manual. The Fortran 77 standard has fewer functions than later standards, and occasionally, the compiler-dependent functions have been replaced by standard functions. Most have not.

Eddie

22 Mar 2013 1:47 #11866

Quoted from stenlou Dear Support

I am converting some old F77 code (written on Vax computer, so it is old). When compiling the code I get an error with the following functions:

JIDINT COSD RAN

Can you help 'translate' these to F95 and is there somewhere a reference manual for F77 (and the F95 equivalent

regards

Sten Lou

The VAX Fortran Reference Manual http://h30266.www3.hp.com/odl/vax/progtool/fortnv66/olrm.htm contains the information you need.

See, in particular, the descriptions of the intrinsic functions: http://h30266.www3.hp.com/odl/vax/progtool/fortnv66/olrm0403.htm#numeric_intrinfuncs

Once you ascertain the meaning of each function, you can read the Silverfrost manual to find a one-for-one replacement or code a substitute function yourself.

Please login to reply.