爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: 天目神眉

地形敏感性实验参考

  [复制链接]
发表于 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)
密码修改失败请联系微信:mofangbao
发表于 2015-6-26 10:57:48 | 显示全部楼层
陌生街角 发表于 2012-2-18 13:38
我在用pgi编译这个程序是出现了错误,楼主知道这是什么原因导致的吗?

netcdf的路径已经指定了,环境 ...

你把.f文件改成.f90,然后用 pgf90 read_wrf_nc_change.f90 -L/usr/local/netcdf/lib -lnetcdf -lm -I/usr/local/netcdf/include  -Mfree  -o read_wrf_nc语句试试。另外问下怎么制定netcdf路径
?
密码修改失败请联系微信:mofangbao
发表于 2015-6-26 11:31:40 | 显示全部楼层
我的问题解决了,就是netcdf库的路径不对,设置正确了就能正确运行
密码修改失败请联系微信:mofangbao
发表于 2015-7-1 16:20:32 | 显示全部楼层
值得借鉴,感谢分享!
密码修改失败请联系微信:mofangbao
发表于 2015-7-6 14:56:46 | 显示全部楼层
太棒了,谢谢楼主!
密码修改失败请联系微信:mofangbao
发表于 2015-8-7 11:07:42 | 显示全部楼层
感谢楼主分享
密码修改失败请联系微信:mofangbao
发表于 2015-9-1 06:23:01 | 显示全部楼层
请问一下,我想把一个岛屿给彻底移除掉变成海洋,除了将LU_INDEX改成海洋外还需要将HGT设置为0么?
密码修改失败请联系微信:mofangbao
发表于 2015-9-8 09:07:53 | 显示全部楼层
我也再试试
密码修改失败请联系微信:mofangbao
发表于 2015-10-22 18:05:43 | 显示全部楼层
谢谢分享,回头试试
密码修改失败请联系微信:mofangbao
发表于 2015-10-26 22:06:24 | 显示全部楼层
{:5_213:}{:5_213:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表