ne201ph@prism.gatech.edu (Halvorson,Peter J) (05/26/90)
Has anyone had to port a Fortran program from a mainframe to a SPARCstation? The mainframe defaults to 64 bit numbers. On the SPARC the same statements and declarations produce 32 bit numbers. For our current program the extra precision of 64 bit real numbers is crucial. Is there a better way than going through the program line by line changing real to real*8, and changing constants to constantd0 ( i.e. 1./3. to 1./3.d0)? Constants are the bigger problem. Peter Halvorson -- Nuclear Engineering Program Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{allegra,amd,hplabs,ut-ngp}!gatech!prism!ne201ph Internet: ne201ph@prism.gatech.edu
ne201ph@prism.gatech.edu (Halvorson,Peter J) (05/31/90)
Thanks everyone, I guess my version of fortran is becoming obsolete. The correct answer is that version 1.3 of fortran has a command line switch to do what I wanted ( the switch is -r8). Peter Halvorson -- Nuclear Engineering Program Internet: ne201ph@prism.gatech.edu -- peter@fission.gatech.edu