g****g 发帖数: 1828 | 1 貌似我这个error 是由于unit不对。怎么把这个input file的unit改一下?
fmt: read unexpected character
apparent state: unit 87 named hdecay.in
last format: (10X,I30)
lately reading sequential formatted external IO
Aborted | j**f 发帖数: 28 | 2 There's nothing wrong with unit. You could assign a unit number when you
open a file in Fortran
Your problem is your file format dosen't macth your format in code.
Another most posssible reason is that your do loop ends incorrectly, for exmaple,
for loop dosen't stop at the end of file.
【在 g****g 的大作中提到】 : 貌似我这个error 是由于unit不对。怎么把这个input file的unit改一下? : fmt: read unexpected character : apparent state: unit 87 named hdecay.in : last format: (10X,I30) : lately reading sequential formatted external IO : Aborted
| g****g 发帖数: 1828 | 3 多谢牛人! 大学学的FORTRAN到现在全忘了,(现在用C++),现在要用一个程序是
FORTRAN写的,基本上都不知道怎么用了。唉!
exmaple,
【在 j**f 的大作中提到】 : There's nothing wrong with unit. You could assign a unit number when you : open a file in Fortran : Your problem is your file format dosen't macth your format in code. : Another most posssible reason is that your do loop ends incorrectly, for exmaple, : for loop dosen't stop at the end of file.
|
|