Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用新gfortran版本{gcc版本9.3.0(Ubuntu 9.3.0-17ubuntu1~20.04)}的具有不同种类参数的iand_Fortran_Gfortran_Type Kinds - Fatal编程技术网

使用新gfortran版本{gcc版本9.3.0(Ubuntu 9.3.0-17ubuntu1~20.04)}的具有不同种类参数的iand

使用新gfortran版本{gcc版本9.3.0(Ubuntu 9.3.0-17ubuntu1~20.04)}的具有不同种类参数的iand,fortran,gfortran,type-kinds,Fortran,Gfortran,Type Kinds,我正在尝试编译dtc upp,但当我尝试为upp构建NCEP库时,我发现以下错误: intmath.f:207:14: 207 | if(iand(i,i-1)/=0) then | 1 Error: Arguments of ‘iand’ have different kind type parameters at (1) intmath.f:172:14: 172 | if(iand(i,i-1)/=0) then | 1 Error: Argum

我正在尝试编译dtc upp,但当我尝试为upp构建NCEP库时,我发现以下错误:

    intmath.f:207:14:
    
    207 | if(iand(i,i-1)/=0) then | 1 Error: Arguments of ‘iand’ have different kind type parameters at (1) intmath.f:172:14:
    
    172 | if(iand(i,i-1)/=0) then | 1 Error: Arguments of ‘iand’ have different kind type parameters at (1) make[1]: *** [makefile:108: ../../../../libg2_v3.1.0_4.a(intmath.o)] Error 1 make[1]: Leaving directory '/home/wrf/WRF/downloads/NCEPlibs/exec_linux.gnu/src/g2/v3.1.0/src' make: *** [Makefile:38: upplibs] Error 2

An error occurred building the NCEP libraries

注意:我搜索了一下,发现gfortran版本8和更早版本作为一个扩展,可以使用不同类型的整数调用iand,而gfortran版本9中删除了这个选项。因此,我尝试卸载默认下载的gfortran 9并安装gfortran 7。不幸的是,它没有工作…只有最后一个版本被识别。。。。任何想法?????

都需要查看源代码。据推测,
i
不是默认的整数种类,其种类类型参数不同于种类类型参数
1
,其中
i
的小数范围较小。修复表达式中1或i的种类是迄今为止修复此问题的最佳方法。对于Ubuntu20.04LTS,“很遗憾,它不起作用…”,我可以通过键入“sudo apt install gfortran-8”(安装命令“gfortran-8”)分别安装gfortran-7/8/9/10,对于其他版本也可以安装类似的命令(无需卸载)。因此,它们可能有助于比较结果。。。