||
首先是安装netCDF
#---------------------------------------------------------------------------------------------------------------
出现警告 /share/apps/intel/composerxe-2011.5.220/compiler/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
NetCDF 预配置(netcdf-4.1.3)
make && make install
出现库函数不能调用问题,有以下办法解决
1. root
2.普通用户
在~/.bashrc 中加入
export NetCDF_root=/share/apps/siesta/netcdf # you have to change it !!!
export PATH=$PATH:${NetCDF_root}/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${NetCDF_root}/lib
export INCLUDE=$INCLUDE:${NetCDF_root}/include
#-----------------------------------------------------------------------------------------------------------------------
编译SIESTA
在SIESTA 的arch.make 文件中加入
FPPFLAGS= -DMPI -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DCDF
netcdf=/share/apps/siesta/netcdf # you have to change it !!!
LDFLAGS= -static-intel -I${netcdf}/include -limf
NETCDF_LIBS=-L${netcdf}/lib -lnetcdff
NETCDF_INCLUDE=-L${netcdf}/include
NETCDF_INCFLAGS=
#-----------------------------------------------------------------------------------------------------------------------
siesta/Util/Grid小程序
程序 输入文件 输出文件
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-30 04:05
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社