爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3759|回复: 1

[求助] fortran调用netcdf出错

[复制链接]

新浪微博达人勋

发表于 2015-3-8 21:41:01 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
各位大神,小弟最近在服务器上用fortran调用netcdf时出现问题,如下:

conversion.f90(3): error #7013: This module file was not generated by any release of this compiler.   [NETCDF]
    USE NETCDF
------------^
conversion.f90(36): error #6404: This name does not have a type, and must have an explicit type.   [NF90_OPEN]
        stats = nf90_open(fn,nf90_NoWrite,ncid)
------------------------^

小弟的netcdf安装和路径确认无误。ncdump后也有反应如下:

ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-x] [-k] [-s] [-t] file
  [-c]             Coordinate variable data and header information
  [-h]             Header information only, no data
  [-v var1[,...]]  Data for variable(s) <var1>,... only
  [-b [c|f]]       Brief annotations for C or Fortran indices in data
  [-f [c|f]]       Full annotations for C or Fortran indices in data
  [-l len]         Line length maximum in data section (default 80)
  [-n name]        Name for netCDF (default derived from file name)
  [-p n[,n]]       Display floating-point values with less precision
  [-k]             Output kind of netCDF file
  [-x]             Output XML (NcML) instead of CDL
  [-s]             Output special (virtual) attributes
  [-t]             Output time data as ISO date-time strings
  file             Name of netCDF file
netcdf library version "4.0.1" of Mar  8 2015 18:07:57 $


且同样的程序在小弟自己的pc上面可以编译。请问各位大神有没有遇到过这样的情况。不知大家都是怎么解决的。多谢了!!!



密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2015-3-9 18:53:30 | 显示全部楼层
看看服务器中netcdf 支不支持 fortran 90 语言。
老版本的 Netcdf 只支持 fortran 77 。如 netcdf 3.6.*
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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