| 查看: 5344 | 回复: 26 | |||
[交流]
在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库? |
» 猜你喜欢
孩子确诊有中度注意力缺陷
已经有9人回复
2025冷门绝学什么时候出结果
已经有3人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有4人回复
康复大学泰山学者周祺惠团队招收博士研究生
已经有6人回复
AI论文写作工具:是科研加速器还是学术作弊器?
已经有3人回复
2026博士申请-功能高分子,水凝胶方向
已经有6人回复
论文投稿,期刊推荐
已经有4人回复
硕士和导师闹得不愉快
已经有13人回复
请问2026国家基金面上项目会启动申2停1吗
已经有5人回复
同一篇文章,用不同账号投稿对编辑决定是否送审有没有影响?
已经有3人回复
» 抢金币啦!回帖就可以得到:
坐标武汉,征友
+2/236
海南大学徐月山老师招收2026年第二批博士名额1个--化工反应设备设计方向
+1/175
双面压敏硅胶胶带
+2/98
华东师范大学 程义云 课题组招2026年博士研究生 - 有机化学、材料化学、高分子合成等
+1/84
华中科技大学2026级申请考核制博士生1名-新型共轭MOF/COF合成及其超电应用方向
+1/79
中科院理化所(北京)招收2026年材料学外招博士生1名(考核制)
+1/78
双一流大学湘潭大学“化工过程模拟与强化”国家地方联合工程研究中心招收各类博士生
+1/49
双一流大学湘潭大学“化工过程模拟与强化”国家地方联合工程研究中心招收各类博士生
+1/44
医学检验方向招收申请考核博士研究生
+2/38
浙大城市学院向铮教授与浙江大学联合招聘博后
+1/27
华北电力大学(北京)(第一性原理计算)博士招生——学博,专博各1人
+2/20
中山大学院士团队王来源教授课题组招聘博士后
+2/18
南京大学能源与资源学院蔡亮课题组诚招2026年申请-考核制博士生2-3名
+1/10
【陕西师范大学】催化化学课题组2026年招收博士后/讲师/副高
+1/9
欢迎报考中山大学课题组,提供2025-2026级硕士研究生名额
+1/6
东莞理工学院-大连化物所联合招聘光催化方向博士后2名(年薪48W)
+1/6
有没有一款可以听文献的APP
+1/4
爱尔兰都柏林圣三一大学 招聘全奖博士生/博士后/联培(电池热管理、MPC、机器人方向)
+1/2
英国拉夫堡大学智能建造方向招收多名带奖学金博士研究生
+1/1
北京理工大学飞行机器人研究团队招聘2026届博士生
+1/1
22楼2018-07-24 09:46:47
15楼2018-07-23 13:12:44
16楼2018-07-23 13:15:30
17楼2018-07-23 19:56:34
18楼2018-07-23 19:57:07
★
小木虫: 金币+0.5, 给个红包,谢谢回帖
小木虫: 金币+0.5, 给个红包,谢谢回帖
|
一般我们用gfortran来编译 gfortran 模块文件.f90 主程序.f90 -o 执行文件.out 如果你模块和主程序写在一个文件里,那模块要在前面 发自小木虫IOS客户端 |
19楼2018-07-23 20:05:51
20楼2018-07-23 21:48:15
21楼2018-07-23 22:33:40
23楼2018-07-24 12:26:08
24楼2018-07-24 12:27:06
26楼2021-06-02 08:24:02
27楼2022-12-05 12:11:38
简单回复
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客户端
tangbohejin13楼
2018-07-23 13:11
回复
izbyu13114楼
2018-07-23 13:11
回复
794025855(金币+2): 谢谢参与
Liu雷_HEU25楼
2020-12-16 09:38
回复
ok













回复此楼
794025855