由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 如何改变一个文件的UNIT?
相关主题
c语言abort时怎么清理堆空间?double free or corruption问题
装了centos7,实验了一下qt creator c++c++ exception 一问
Daemon threadperl beginner question "1;" ?
怎么做C++的unit testing?winsock error 10053
class D:public B;help!无法编译一个package
what's the difference between a .cpp file and a compilation unit?memory leak 问题
菜鸟以为C++的unit test功能没有java强大,是一大缺点How to resolve "terminate called after throwing an instance of 'std::bad_alloc'???
有没有会自动聚合的操作符重载或宏?请教perl 高手: 如何detect windows programm的Debug window
相关话题的讨论汇总
话题: unit话题: fortran话题: file话题: format话题: your
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
请教perl 高手: 如何detect windows programm的Debug windowclass D:public B;
一个比较模糊的问题what's the difference between a .cpp file and a compilation unit?
perl eval and if菜鸟以为C++的unit test功能没有java强大,是一大缺点
Re: 有pyclewn大牛吗?教教怎么用?有没有会自动聚合的操作符重载或宏?
c语言abort时怎么清理堆空间?double free or corruption问题
装了centos7,实验了一下qt creator c++c++ exception 一问
Daemon threadperl beginner question "1;" ?
怎么做C++的unit testing?winsock error 10053
相关话题的讨论汇总
话题: unit话题: fortran话题: file话题: format话题: your