【问题标题】:how to change specific error into warning in intel-fortran如何在 intel-fortran 中将特定错误更改为警告
【发布时间】:2022-12-31 03:00:29
【问题描述】:

第一次使用ifort。

试图抑制此错误。

ifort -c -fpp -DRADM_WRF_FIM -O2 -convert big_endian -warn none   -I../../aux_src/utils/include -I/home/workhorse/WRFCHEM/WRF_CHEM_Tools/Libs/NETCDF/include  -I/home/workhorse/WRFCHEM/WRF_CHEM_Tools/Libs/grib2/include  convert_edgar_to_RELACS_REAC.f90

抛出这个错误:

convert_edgar_to_RELACS_REAC.f90(17): error #6405: The same named entity from different modules and/or program units cannot be referenced. 

我对 ifort -warn 不够熟悉,不知道哪个选项会将其更改为警告。

【问题讨论】:

  • 尝试使用 -diag-disable 6405 并且终端显示:无法禁用 Fortran 错误消息 6405

标签: ubuntu intel-fortran


【解决方案1】:

没有这样的选项,你的程序根本就是非法的 Fortran。对于这样一个选项来说,禁用错误的存在太不合法了。

【讨论】:

    猜你喜欢
    • 2021-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-04
    • 2018-01-07
    • 1970-01-01
    • 1970-01-01
    • 2017-09-10
    相关资源
    最近更新 更多