24小时热门版块排行榜    

查看: 6070  |  回复: 26

794025855

铜虫 (初入文坛)


[交流] 在redhat系统下安装了ifort编译器,运行程序时,出现了报错 error #7002,求大神帮帮忙

AEROSOLE.f90(17): error #7002:Error in opening the compiled module file.  Check INCLUDE paths.    [A_VARIABLES]
  use a_variables
------^
AEROSOLE.f90(18): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [A_PARAMETERS]
  use a_parameters
------^
AEROSOLE.f90(19): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [A_FUNCTIONS]
  use a_functions
------^
AEROSOLE.f90(21): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [A_DIFRACTION]
  use a_difraction
------^
AEROSOLE.f90(22): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [A_DISPERSION]
  use a_dispersion
------^
AEROSOLE.f90(23): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [A_PLASMA]
  use a_plasma
------^
AEROSOLE.f90(24): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [SP_CALC_AND_WRITE]
  use sp_calc_and_write
------^
AEROSOLE.f90(25): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DFLIB]
  use dflib
------^
AEROSOLE.f90(27): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [DFMT]
  use dfmt
------^
AEROSOLE.f90(32): error #6683: A kind type parameter must be a compile-time constant.   [REAL_KIND]
  real(real_kind) :: time_begin,time_end,new,kn, Pressurerat(N1), Temp(N1)
-------^
AEROSOLE.f90(33): error #6683: A kind type parameter must be a compile-time constant.   [REAL_KIND]
  real(real_kind) :: time_1,time_2, dn
-------^
AEROSOLE.f90(34): error #6683: A kind type parameter must be a compile-time constant.   [REAL_KIND]
  real(real_kind) :: delta_z_tmp,rand_value, x, y, zk,tix, dz0, Air_k22, Air_n22, Air_Pcr2, Air_n4, Air_n6, Air_n8
-------^
AEROSOLE.f90(35): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: local1, local2, break_count, index_z_point,k,num_,num_2,n,m
----------^
AEROSOLE.f90(36): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: x_point,y_point,t_point, var
----------^
AEROSOLE.f90(38): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: droplet_number,m_local,Droplet_x,Droplet_y,k_loc,m_loc,counter_loc,k11,m11
----------^
AEROSOLE.f90(39): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: t_index,kt,kt1
----------^
AEROSOLE.f90(40): error #6683: A kind type parameter must be a compile-time constant.   [REAL_KIND]
  real(real_kind) :: tk,tk1
-------^
AEROSOLE.f90(43): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: exitresult
----------^
AEROSOLE.f90(44): error #6683: A kind type parameter must be a compile-time constant.   [REAL_KIND]
  real(real_kind) :: tmp_real,tmp_realR,tmp_realF,tmp_realF2,tmp_realF10, tmp_after, Energy_Init, plasma_real, max0
-------^
AEROSOLE.f90(48): error #6683: A kind type parameter must be a compile-time constant.   [INTEGER_KIND]
  integer(integer_kind) :: drop_type, lastopenskin, time_layer1, time_layer2
----------^
AEROSOLE.f90(95): error #6404: This name does not have a type, and must have an explicit type.   [WRITE_SPECTRUM_FLAG]
      write_spectrum_flag=1
------^
AEROSOLE.f90(117): error #6456: This name must be a RECORD name.   [MEDIA]
  write(*,'(a40, e8.2)'), ' -- Average droplet number in skin   -- ', media.avr_skin_drop_number
----------------------------------------------------------------------^
AEROSOLE.f90(117): error #6460: This is not a field name that is defined in the encompassing structure.   [AVR_SKIN_DROP_NUMBER]
  write(*,'(a40, e8.2)'), ' -- Average droplet number in skin   -- ', media.avr_skin_drop_number
----------------------------------------------------------------------------^
AEROSOLE.f90(120): error #6404: This name does not have a type, and must have an explicit type.   [Z]
  z=0
--^
AEROSOLE.f90(124): error #6404: This name does not have a type, and must have an explicit type.   [ZK_AEROSOL]
  zk_aerosol=media.start_z_aerosol            !��ǰ���ܽ���λ�� -1.e-5         !Position of the current aerosol screen (distributed along the route evenly, through the distance media.delta_z_aerosol)
--^
AEROSOLE.f90(124): error #6456: This name must be a RECORD name.   [MEDIA]
  zk_aerosol=media.start_z_aerosol            !��ǰ���ܽ���λ�� -1.e-5         !Position of the current aerosol screen (distributed along the route evenly, through the distance media.delta_z_aerosol)
-------------^
AEROSOLE.f90(124): error #6460: This is not a field name that is defined in the encompassing structure.   [START_Z_AEROSOL]
  zk_aerosol=media.start_z_aerosol            !��ǰ���ܽ���λ�� -1.e-5         !Position of the current aerosol screen (distributed along the route evenly, through the distance media.delta_z_aerosol)
-------------------^
AEROSOLE.f90(125): error #6404: This name does not have a type, and must have an explicit type.   [ZK_TURB]
  zk_turb=media.start_z_turb                            !Position of the current turbulent screen  -1.e-5
--^
AEROSOLE.f90(125): error #6456: This name must be a RECORD name.   [MEDIA]
  zk_turb=media.start_z_turb                            !Position of the current turbulent screen  -1.e-5
----------^
AEROSOLE.f90(125): error #6460: This is not a field name that is defined in the encompassing structure.   [START_Z_TURB]
  zk_turb=media.start_z_turb                            !Position of the current turbulent screen  -1.e-5
----------------^
AEROSOLE.f90(995): catastrophic error: Too many errors, exiting
compilation aborted for AEROSOLE.f90 (code 1)


1.在windows系统下,我用VS+fortran运行没有任何问题,但在linux系统下运行,很多地方我不知道怎么处理了。A_VARIABLES, A_PARAMETERS, A_FUNCTIONS这些module都是我自己编译的,不是编译器自带的,而且我都和主程序放在一个路径下,但还是出现错误,希望大神能指导下这个问题。
2.  网上说,在linux 系统下,子程序要include在主程序中才能运行,而我这个程序有二十多个子程序和module,都要一个一个添加进去么?有没有更好的方法?
3.我的ifort下的是cluster_edition版,当时下的时候看说明说这个版本是带的工具最多的,但不知道带不带mkl库,还是说我要单独再去下一个mkl库?
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )
★
小木虫: 金币+0.5, 给个红包,谢谢回帖
编译顺序,你肯定需要先让生成mod,才能use它,你可以写个Makefile,这个比较方便

» 本帖已获得的红花(最新10朵)

22楼2018-07-24 09:46:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qchem

铁杆木虫 (著名写手)


★ ★
794025855(金币+2): 谢谢参与
jjdg: 金币+1, 感谢参与 2018-07-23 17:54:21
编译的时候模块文件要放在前面

发自小木虫IOS客户端
15楼2018-07-23 13:12:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

zuiaixuexi

至尊木虫 (文坛精英)


★
794025855(金币+2): 谢谢参与
祝你成功
16楼2018-07-23 13:15:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

794025855

铜虫 (初入文坛)


引用回帖:
15楼: Originally posted by qchem at 2018-07-23 13:12:44
编译的时候模块文件要放在前面

在主程序的开头我就use了模块文件了。应该不是这个问题吧
17楼2018-07-23 19:56:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

794025855

铜虫 (初入文坛)


引用回帖:
16楼: Originally posted by zuiaixuexi at 2018-07-23 13:15:30
祝你成功

不成功啊,不能给点帮助么
18楼2018-07-23 19:57:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qchem

铁杆木虫 (著名写手)


★
小木虫: 金币+0.5, 给个红包,谢谢回帖
引用回帖:
17楼: Originally posted by 794025855 at 2018-07-23 19:56:34
在主程序的开头我就use了模块文件了。应该不是这个问题吧...

一般我们用gfortran来编译

gfortran 模块文件.f90 主程序.f90 -o 执行文件.out

如果你模块和主程序写在一个文件里,那模块要在前面

发自小木虫IOS客户端
19楼2018-07-23 20:05:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

794025855

铜虫 (初入文坛)


引用回帖:
19楼: Originally posted by qchem at 2018-07-23 20:05:51
一般我们用gfortran来编译
gfortran 模块文件.f90 主程序.f90 -o 执行文件.out
如果你模块和主程序写在一个文件里,那模块要在前面
...

请问,模块都在一个文件下,还需要分先后顺序么?因为我用的redhat系统,同一个文件下的东西会按照名字来排序
20楼2018-07-23 21:48:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

qchem

铁杆木虫 (著名写手)


★
小木虫: 金币+0.5, 给个红包,谢谢回帖
引用回帖:
20楼: Originally posted by 794025855 at 2018-07-23 21:48:15
请问,模块都在一个文件下,还需要分先后顺序么?因为我用的redhat系统,同一个文件下的东西会按照名字来排序...

要分先后的
要按引用的顺序来

你编译的命令是什么?

发自小木虫IOS客户端
21楼2018-07-23 22:33:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

794025855

铜虫 (初入文坛)


引用回帖:
21楼: Originally posted by qchem at 2018-07-23 22:33:40
要分先后的
要按引用的顺序来
你编译的命令是什么?
...

ifort -o Aerosol AEROSOLE.f90这个么?
我现在还遇到一个问题就是dflib和dfmt这两个模块是用来干什么的?因为我知道这两个模块是window系统下编译器自带的,但是在linux下是行不通的,所以在linux系统下应该替换成什么模块?
23楼2018-07-24 12:26:08
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

794025855

铜虫 (初入文坛)


送红花一朵
引用回帖:
22楼: Originally posted by 1014511134 at 2018-07-24 09:46:47
编译顺序,你肯定需要先让生成mod,才能use它,你可以写个Makefile,这个比较方便

对的,我昨天也是意外试出来了,必须要生成mod才行,非常感谢
24楼2018-07-24 12:27:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yuan_328

铜虫 (小有名气)


26楼2021-06-02 08:24:02
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

taichiman

新虫 (正式写手)


★
小木虫: 金币+0.5, 给个红包,谢谢回帖
ifort能否给我一份

发自小木虫Android客户端
27楼2022-12-05 12:11:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
简单回复
pgkjj3422楼
2018-07-23 12:35   回复  
794025855(金币+2): 谢谢参与
tlirh9833楼
2018-07-23 12:38   回复  
794025855(金币+2): 谢谢参与
time884楼
2018-07-23 12:39   回复  
794025855(金币+2): 谢谢参与
mgkjc5455楼
2018-07-23 12:41   回复  
794025855(金币+2): 谢谢参与
tzynew6楼
2018-07-23 12:41   回复  
794025855(金币+2): 谢谢参与
ymbcq3897楼
2018-07-23 12:45   回复  
794025855(金币+2): 谢谢参与
mnggx4748楼
2018-07-23 12:46   回复  
794025855(金币+2): 谢谢参与
dzgzq7679楼
2018-07-23 12:51   回复  
794025855(金币+2): 谢谢参与
ktogh51110楼
2018-07-23 12:59   回复  
794025855(金币+2): 谢谢参与
ekxbr00711楼
2018-07-23 13:07   回复  
794025855(金币+2): 谢谢参与
wasxnbe12楼
2018-07-23 13:09   回复  
794025855(金币+2): 谢谢参与
l 发自小木虫IOS客户端
2018-07-23 13:11   回复  
794025855(金币+2): 谢谢参与
发自小木虫Android客户端
izbyu13114楼
2018-07-23 13:11   回复  
794025855(金币+2): 谢谢参与
Liu雷_HEU25楼
2020-12-16 09:38   回复  
ok
相关版块跳转 我要订阅楼主 794025855 的主题更新
普通表情 龙 兔 虎 猫 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 极限拉扯,如何抉择 +10 Isak0320 2026-10-12 14/700 2026-10-14 11:39 by thegarfield
[基金申请] 申请科研项目纯靠实力能成功吗? 200+3 David1982 2026-10-13 6/300 2026-10-14 11:14 by 北京莱茵编辑
[有机交流] OpenAI又攻克数学难题了,离AI做有机合成还有多远? +8 wangyl_123 2026-10-10 12/600 2026-10-13 20:40 by Merryya
[教师之家] 课题组会帮你通过考核么? +4 好运来~9527 2026-10-10 7/350 2026-10-13 08:41 by xli1984
[基金申请] 入职后第一次管课题组的专利缴费,对账才发现官费比别人多掏了一倍 +6 13108017953 2026-10-08 6/300 2026-10-12 20:07 by w3w3y3
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +5 qR2AdCWTVtkw 2026-10-09 9/450 2026-10-11 22:34 by XQNyDCa1Tk5n
[公派出国] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +5 qR2AdCWTVtkw 2026-10-09 10/500 2026-10-11 22:26 by XQNyDCa1Tk5n
[找工作] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +5 qR2AdCWTVtkw 2026-10-09 8/400 2026-10-11 22:26 by XQNyDCa1Tk5n
[考博] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +5 qR2AdCWTVtkw 2026-10-09 9/450 2026-10-11 22:15 by XQNyDCa1Tk5n
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 qR2AdCWTVtkw 2026-10-09 7/350 2026-10-11 22:11 by XQNyDCa1Tk5n
[教师之家] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 (EPI+-1)(金币-50) +5 qR2AdCWTVtkw 2026-10-09 10/500 2026-10-11 22:06 by XQNyDCa1Tk5n
[教师之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 (EPI+-1)(金币-50) +4 qR2AdCWTVtkw 2026-10-09 7/350 2026-10-11 14:05 by VOMexwnDzOFZ
[考研] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +5 qR2AdCWTVtkw 2026-10-09 8/400 2026-10-11 13:51 by VOMexwnDzOFZ
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +5 qR2AdCWTVtkw 2026-10-09 8/400 2026-10-11 13:45 by VOMexwnDzOFZ
[找工作] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 qR2AdCWTVtkw 2026-10-09 7/350 2026-10-11 10:54 by VOMexwnDzOFZ
[找工作] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +4 qR2AdCWTVtkw 2026-10-09 7/350 2026-10-11 10:34 by VOMexwnDzOFZ
[考博] 招收博士生一名 +3 mandolin 2026-10-10 3/150 2026-10-11 10:21 by 不是山谷!
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 qR2AdCWTVtkw 2026-10-09 4/200 2026-10-11 03:14 by M0zrYVSAnxpE
[有机交流] 各位大佬,路线设计求助 +6 zapen 2026-10-08 8/400 2026-10-10 15:59 by zapen
[有机交流] 我应该选哪条合成路线让实验成功率高一些? +5 jing816y 2026-10-08 9/450 2026-10-10 09:05 by zapen
信息提示
请填处理意见