|
发表于 2012-5-17 01:41:31
|
显示全部楼层
linux下编译opencfd-ec-2d
我是在linux ubuntu下面编译的,用的是 intel fortran compiler.
serial的感觉没有问题,命令是 ifort -g -O2 -check bounds opencfd_ec_2d_1.4.f90 -o opencfd
但是添加 -openmp 在 ifort 之后就出来问题了, 提示错误如下:
=========================================================================
!$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(i,j,k,m,alfa,dui,duj,duk,DF)
----------------------------------------------^
sub_LU_SGS2.f90(72): error #7656: Subobjects are not allowed in this OpenMP* clause; a named variable must be specified. [K]
!$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(i,j,k,m,alfa,dui,duj,duk,DF)
----------------------------------------------^
sub_LU_SGS2.f90(72): error #6404: This name does not have a type, and must have an explicit type. [DUK]
!$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(i,j,k,m,alfa,dui,duj,duk,DF)
---------------------------------------------------------------^
sub_LU_SGS2.f90(72): error #7656: Subobjects are not allowed in this OpenMP* clause; a named variable must be specified. [DUK]
!$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(i,j,k,m,alfa,dui,duj,duk,DF)
---------------------------------------------------------------^
compilation aborted for opencfd_ec2d_v1.4.f90 (code 1)
=======================================================================
我不懂 openmp, 但是很想学,很想用下看看,这个问题可以解决吗?谢谢 |
|