open file in subroutine4247 (4/23/2008 8:55:22 AM) comp.lang.fortran I had already produce an open file with data in the main program, but I want to use the data in the file in the subroutine. However,it seems didn't use when I call it. I don't know what's wrong,please help me! ... wangning16934(1)
Integers and standard7735 (7/28/2008 6:15:49 PM) comp.lang.fortran Hi all, I have a quick question. Is the following piece legal according to fortran 77 and/or 90/95 standard? integer i data i/z'80000000'/ As far as my understanding goes, it is not but many compi... alfredo.buttari(9)
Unexpected STATEMENT FUNCTION statement11255 (10/8/2008 2:45:35 PM) comp.lang.fortran HI, I have written subroutine in fortran90 to calculate distance among three cartesient point using array. The code is as below: !####################################################### subroutine find_distan... vjramana(1)
convert a date to a number of days1466 (10/25/2008 9:22:50 PM) comp.lang.fortran Hi everybody, I would like to know if it exists an intrinsic function in Fortran to convert a date to a number of days ? For example the 25/10/2008 would be converted to: 2008*(365+1/4) + (31+29+31+30+31+30+... elodie.roux(82)
fmt: read unexpected character12142 (12/15/2008 10:23:18 AM) comp.lang.fortran I have bee trying to install a fortran program on my mac, apparently it compiles ok, but when I run, I get the following error fmt: read unexpected character apparent state: internal I/O last format: (I3) late... sfsdf.dfdsf(6)
strange result of mod function1337 (6/21/2009 4:30:46 PM) comp.lang.fortran Hi, consider the following program program test real(8) :: A real(8) :: P A = 550.0d0 p = 0.1d0 print*, mod(A,P) end program test I would expect this program to print... Michael
Rank mismatch in array reference3202 (7/15/2009 9:10:33 AM) comp.lang.fortran Sorry all, I know this is kinda old stuff and I have searched for the archive but still found no way to fix it.... In my case, I announced in the first place: real pm dimension pm(2:29) which speci... chingyan77(1)