RE: Help please with a small code conversion
meek_at_skyway.usask.ca
Date: 10/19/04
- Next message: Dave Seaman: "Re: Installing g95 on OS X"
- Previous message: Gordon Sande: "Re: Installing g95 on OS X"
- In reply to: Jason: "Help please with a small code conversion"
- Next in thread: Richard Maine: "Re: Help please with a small code conversion"
- Reply: Richard Maine: "Re: Help please with a small code conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 19 OCT 04 15:43:40 GMT
In a previous article, jspaldin@umflint.edu (Jason) wrote:
>I am trying to convert a piece of FORTRAN code to C++.
>
>write(ifile,*) h(i,j)
>
>Does this simply write to a file a entry from a Ith by Jth entry of a
>matrix? If so what does (ifile, *) do? Does this make the entry
>added to a file called (ifile)?
>
>Also there is another line that has me stuck
>
>implicit double precision(a-h,o-z)
>
>I am not sure the significance of implicit. How could I get the same
>effect using c++?
>
>
>Jason Spalding
implicit ... means that all variable names starting with
these letters (a,b,c,...,h and o,p,q,...,z) are typed
as double precision (8byte) floating
This includes function names.
Since (in F77 and earlier) integer vs real was determined
this way (i.e. i-n=integer, a-h,o-z=real) unless typed
explicitly, then provided this naming scheme was followed
in the program, it was easy to change to DP to choose
speed vs. accuracy. These days
co-processer is probably doing DP no matter what you choose
Chris
- Next message: Dave Seaman: "Re: Installing g95 on OS X"
- Previous message: Gordon Sande: "Re: Installing g95 on OS X"
- In reply to: Jason: "Help please with a small code conversion"
- Next in thread: Richard Maine: "Re: Help please with a small code conversion"
- Reply: Richard Maine: "Re: Help please with a small code conversion"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]