| 查看: 2184 | 回复: 5 | |||
[求助]
ifort和gfortran无格式输出的区别
|
|
比如有一个长度为20的数组A(20),用无格式输出: write(10,*)A gfortran编译的结果正确显示,A(1),A(2),...,A(20)都输出到一行。 ifort编译的结果却分行显示了,每行只有3个数,如何让输出结果只有一行? |
» 猜你喜欢
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有7人回复
申请2026年博士
已经有5人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有5人回复
寻求一种能扛住强氧化性腐蚀性的容器密封件
已经有6人回复
2025冷门绝学什么时候出结果
已经有7人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有6人回复
Bioresource Technology期刊,第一次返修的时候被退回好几次了
已经有7人回复
请问哪里可以有青B申请的本子可以借鉴一下。
已经有4人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复
» 本主题相关价值贴推荐,对您同样有帮助:
【原创】ubuntu中用ifort串行编译VASP详细步骤
已经有11人回复
intel visual fortran中MKL如何使用,是用use module还是include?
已经有4人回复
编译出现错误,请各位大神指教
已经有8人回复
ifort编译optics
已经有3人回复
linux系统下 ifort的安装
已经有8人回复
redhat下安装vasp ifort11的编译器和mkl
已经有4人回复
使用ifort+MKL编译VASP,出错信息却是gfortran
已经有11人回复
vasp gk.x文件生成KPOINTS出错
已经有24人回复
求助ifort 调用lapack的问题!
已经有4人回复
ifort出现问题!求教!
已经有16人回复
ifort设置时遇到问题
已经有8人回复
ifort编译的siesta和gfortran编译的siesta在计算时执行效率会差多少呢?
已经有4人回复
ifort12下编译VASP5.2
已经有3人回复
求VASP4.6的编译文件_基于ifort编译器和atlas数学库
已经有10人回复
如何删除ifort编译器?
已经有16人回复
【求助】此程序也是没有问题了,但是依然运行不出结果
已经有7人回复
【求助】求quantum-espresso使用方法
已经有11人回复
snoopyzhao
至尊木虫 (职业作家)
- 程序强帖: 16
- 应助: 157 (高中生)
- 贵宾: 0.02
- 金币: 18844.7
- 红花: 29
- 帖子: 3803
- 在线: 1422.4小时
- 虫号: 183750
- 注册: 2006-02-13
- 专业: 污染生态化学
2楼2011-11-19 10:56:23
锐利的碎片
木虫 (正式写手)
star watcher
- 应助: 136 (高中生)
- 金币: 3637.1
- 散金: 252
- 红花: 22
- 帖子: 988
- 在线: 1224.9小时
- 虫号: 961933
- 注册: 2010-03-05
- 专业: 凝聚态物性 II :电子结构
3楼2011-11-19 11:02:42

4楼2011-11-30 12:22:41

5楼2011-11-30 12:23:26
snoopyzhao
至尊木虫 (职业作家)
- 程序强帖: 16
- 应助: 157 (高中生)
- 贵宾: 0.02
- 金币: 18844.7
- 红花: 29
- 帖子: 3803
- 在线: 1422.4小时
- 虫号: 183750
- 注册: 2006-02-13
- 专业: 污染生态化学
【答案】应助回帖
★ ★
jjdg(金币+1): 感谢参与 2011-11-30 16:09:03
余泽成(金币+1): 谢谢参与应助! 2011-12-02 17:23:36
jjdg(金币+1): 感谢参与 2011-11-30 16:09:03
余泽成(金币+1): 谢谢参与应助! 2011-12-02 17:23:36
|
Fortran 77 标准中有这个类型,不过不常用,呵呵…… [qutoe] 13.5.9.2.3 G Editing. The Gw.d and Gw.dEe edit descriptors indicate that the external field occupies w positions, the fractional part of which consists of d digits, unless a scale factor greater than one is in effect, and the exponent part consists of e digits. G input editing is the same as for F editing ( 13.5.9.2.1). The method of representation in the output field depends on the magnitude of the datum being edited. Let N be the magnitude of the internal datum. If N < 0.1 or N >= 10**d,Gw.d output editing is the same as kPEw.d output editing and Gw.dEe output editing is the same as kPEw.dEe output editing, where k is the scale factor currently in effect. If N is greater than or equal to 0.1 and is less than 10**d , the scale factor has no effect, and the value of N determines the editing as follows: ________________________________________________ | | | |_Magnitude_of_Datum____|__Equivalent_Conversion| | | | | 0.1=N<=1 | F(w-n).d, n('b') | | | | | 1<=N<10 | F(w-n).(d-1), n('b') | | | | | . | . | | . | . | | . | . | | 10**(d-2)<=N<10**(d-1)| F(w-n).1, n('b') | | | | | 10**(d-1)<=N<10**d | F(w-n).0, n('b') | | | | |_______________________|_______________________| where: b is a blank n is 4 for Gw.d and e+2 for Gw.dEe Note that the scale factor has no effect unless the magnitude of the datum to be edited is outside of the range that permits effective use of F editing. [/quote] |
6楼2011-11-30 13:43:45













回复此楼
(A(i),i=1,20)