- 积分
- 42
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-3-3
- 最后登录
- 1970-1-1
|
发表于 2017-3-3 21:43:27
|
显示全部楼层
您好,我最近的毕设也需要用CALWRF转文件,刚刚入门很多不懂,我的CALWRF还没有编译通过,能麻烦您说一下calwrf在linux系统的编译吗 下载CALWRF的版本 netcdf和pgi版本 虽然不知道是不是版本的问题
http://www.src.com/calpuff/calpuff1.htm这是我下载CALWRF的地址,我用的是CALWRF_v2.0.1
用compile.sh编译出现很多问题 解决了一些 现在还有问题 compile.sh是这样的:
#!/bin/sh
# Compile calwrf on Linux using pgf95
if [ -f calwrf.exe ]; then rm calwrf.exe; fi
pgf90 -Bstatic calwrf.f -L/usr/local/netcdf/lib -L/usr/lib/x86_64-redhat-linux5E/lib64 -I/usr/local/netcdf/include -lnetcdf -lm -o calwrf.exe
这个是我改过之后的,下载的文件中的compile.sh是这样的:
#!/bin/sh
# Compile calwrf on Linux using pgf95
if [ -f calwrf.exe ]; then rm calwrf.exe; fi
pgf95 -Bstatic calwrf_v2.0.1.f -lnetcdf -lm -o calwrf.exe
我现在的错误是:[root@hitsunli code]# ./compile.sh
/tmp/pgf90lkJbHC5lkGEP.o: In function `calwrf':
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:144: undefined reference to `nf_open_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:154: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:167: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:167: undefined reference to `nf_inq_var_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:173: undefined reference to `nf_inq_dimlen_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:180: undefined reference to `nf_get_vara_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:194: undefined reference to `nf_inq_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:203: undefined reference to `nf_inq_dim_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:388: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:388: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:392: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:392: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:392: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:395: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:427: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:427: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:427: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:427: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:438: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:438: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:567: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:589: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:589: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:596: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:602: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:612: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:612: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:617: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:624: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:631: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:631: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:631: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:676: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:713: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:731: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:731: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:731: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:779: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:779: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:790: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:816: undefined reference to `nf_get_vara_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1228: undefined reference to `nf_close_'
/tmp/pgf90lkJbHC5lkGEP.o: In function `gblatts_':
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1856: undefined reference to `nf_get_att_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1856: undefined reference to `nf_inq_att_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1898: undefined reference to `nf_get_att_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1898: undefined reference to `nf_inq_att_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1923: undefined reference to `nf_inq_att_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1931: undefined reference to `nf_get_att_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1940: undefined reference to `nf_get_att_int_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1944: undefined reference to `nf_get_att_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1953: undefined reference to `nf_get_att_int_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1961: undefined reference to `nf_get_att_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1961: undefined reference to `nf_get_att_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1961: undefined reference to `nf_get_att_real_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1987: undefined reference to `nf_inq_varid_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1995: undefined reference to `nf_get_att_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1995: undefined reference to `nf_inq_att_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1995: undefined reference to `nf_get_att_text_'
/root/桌面/CALWRF_v2.0.1/CALWRF/code/./calwrf.f:1995: undefined reference to `nf_inq_att_'
不知道您是否遇到过此类问题,或者您能具体告诉我一下您编译的过程可以吗?很着急,谢谢您!!
|
|