- 积分
- 4249
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-10-12
- 最后登录
- 1970-1-1
|
发表于 2015-6-25 19:40:07
|
显示全部楼层
ifort read_wrf_nc_change.f -L/usr/local/netcdf/lib -lnetcdf -lm \-I/usr/local/netcdf/include -FR -o read_wrf_nc_change.f
运行之后出现如下,不知道出错没
read_wrf_nc_change.f(460): error #5102: Cannot open include file 'netcdf.inc'
include 'netcdf.inc'
----------^
read_wrf_nc_change.f(549): error #6404: This name does not have a type, and must have an explicit type. [NF_OPEN]
rcode = nf_open(file(1:length_input), NF_WRITE, cdfid )
------------^
read_wrf_nc_change.f(563): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_VARID]
rcode = nf_inq_varid ( cdfid, 'Times', id_var )
----------^
read_wrf_nc_change.f(570): error #6404: This name does not have a type, and must have an explicit type. [NCVID]
id_time = ncvid( cdfid, 'Times', rcode )
----------------^
read_wrf_nc_change.f(573): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_VAR]
rcode = nf_inq_var( cdfid, id_time, varnam, ivtype, ndims, dimids, natts )
----------^
read_wrf_nc_change.f(575): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_DIMLEN]
rcode = nf_inq_dimlen( cdfid, dimids(i), dims(i) )
------------^
read_wrf_nc_change.f(584): error #6404: This name does not have a type, and must have an explicit type. [NF_GET_VARA_TEXT]
rcode = NF_GET_VARA_TEXT ( cdfid, id_time, &
------------^
read_wrf_nc_change.f(600): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ]
rcode = nf_inq(cdfid, nDims, nVars, nAtts, unlimDimID)
----------^
read_wrf_nc_change.f(606): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_DIM]
rcode = nf_inq_dim(cdfid, ii, dname, dval)
------------^
read_wrf_nc_change.f(622): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_ATTNAME]
rcode = nf_inq_attname(cdfid,nf_global,iatt,att_name)
--------------^
read_wrf_nc_change.f(623): error #6404: This name does not have a type, and must have an explicit type. [NF_INQ_ATT]
rcode = nf_inq_att( cdfid,nf_global,att_name,ivtype,attlen )
--------------^
read_wrf_nc_change.f(625): error #6404: This name does not have a type, and must have an explicit type. [NF_GET_ATT_TEXT]
rcode = NF_GET_ATT_TEXT(cdfid, nf_global, att_name, value_chr )
----------------^
read_wrf_nc_change.f(628): error #6404: This name does not have a type, and must have an explicit type. [NF_GET_ATT_INT]
rcode = NF_GET_ATT_INT(cdfid, nf_global, att_name, value_int )
----------------^
read_wrf_nc_change.f(632): error #6404: This name does not have a type, and must have an explicit type. [NF_GET_ATT_REAL]
rcode = NF_GET_ATT_REAL(cdfid, nf_global, att_name, value_real )
----------------^
read_wrf_nc_change.f(1320): error #5102: Cannot open include file 'netcdf.inc'
include 'netcdf.inc'
--------------^
read_wrf_nc_change.f(1661): error #6404: This name does not have a type, and must have an explicit type. [I]
do i=1,181
--------^
read_wrf_nc_change.f(1661): error #6063: An INTEGER or REAL data type is required in this context. [I]
do i=1,181
--------^
read_wrf_nc_change.f(1662): error #6404: This name does not have a type, and must have an explicit type. [J]
do j=1,160
--------------^
read_wrf_nc_change.f(1662): error #6063: An INTEGER or REAL data type is required in this context. [J]
do j=1,160
--------------^
compilation aborted for read_wrf_nc_change.f (code 1)
|
|