PTT
Submit
Submit
选择语言
正體中文
简体中文
PTT
Fortran
[问题] fortran当中使用netcdf
楼主:
ihaveaids
2014-01-24 17:56:15
我在fortran程式中想写一些读取nc档的程式
简易程式码如下
program
use netcdf
implicit none
integer :: year=2007,doy=349,hh=2
integer :: ios
integer :: ncid,state
character(len=128) :: filename = 'flist_storm'
state = nf90_open(trim(file_pwd),nf90_nowrite, ncid)
end program
以上只是开启的程式 但compile一直没过 猜测是use netcdf这行
要把netcdf这个 moduleu一起compile
在网络上找了下面这个指令
ifort -c -I/home/mydir/netcdf/include yyyyy.f90 -o yyyyy.x
虽然有跑出执行档 但是执行时出现
-bash: ./podTec_GlobalMap.x: cannot execute binary file
有确认都是在64位元
想问问大家 fortran compilenetcdf的方法还有其他的吗
或者我用法哪里错误
谢谢
作者:
george1224
( )
2014-01-24 18:46:00
应该还有oPTION吧。。。跟NCARGF77一样
作者: gilocustom
2014-01-24 19:08:00
https://www.unidata.ucar.edu/software/netcdf/docs/n
etcdf-f90/Compiling-and-Linking-with-the-NetCDF-Library.html
楼主:
ihaveaids
2014-01-25 12:31:00
一楼大大 那是什么?? 二楼大大的连结跟我找的一样但无法执行@@
作者:
george1224
( )
2014-01-27 21:31:00
用Z大下面的那行试看看哩?
继续阅读
[问题]no matching symbolic information found?
iammyfriend
Re: [问题] 依照循环变量读取阵列
wenni
Re: [问题] 依照循环变量读取阵列
JiGo
Re: [问题] 依照循环变量读取阵列
snowanimal
[问题] 依照循环变量读取阵列
JiGo
[问题] cuda fortran二维阵列 copyout failed:4
zx09192939
[问题] 圆锥体积 蒙地卡罗法
ttvic
Re: [请益] 没有读取到的资料要计算+输出
wenni
[问题] 最小值有两个只显示一个
Laoda245566
[问题] 数列呈现水平而非垂直
Laoda245566
Links
booklink
Contact Us: admin [ a t ] ucptt.com