Intel编译器下WRF安装指南.docx_第1页
Intel编译器下WRF安装指南.docx_第2页
Intel编译器下WRF安装指南.docx_第3页
Intel编译器下WRF安装指南.docx_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Intel编译器下WRF安装指南/wrf/src/.uk/research/interproj/nwpsaf/rtm/rtm_rttov8.html1、 虚拟机上安装Fedora14i386 比较简单,这里略去。建议:虚拟内存2G2、 安装需要的包 安装gFortran#yum install compat-gcc-34-g77#ln -s /usr/lib/libg2c.so.0 /usr/lib/libg2c.so#ln -s /usr/lib/libgfortran.so.3 /usr/lib/libgfortran.a 安装:libstdc+,包含libstdc+.so.5库,是intel编译器必须的。 #yum install libstdc+.so.5 安装 jasper-1.900.1a) #unzip jasper-1.900.1.zip b) #./configure -prefix=/usr/local/jasperc) #maked) #make install 安装netcdf-4.0.tar.gz注意:编译netcdf,网络必须是通的,否则make all64位check测试不通过a) #tar zxvf netcdf-4.0.tar.gzb) #./configure -prefix=/usr/local/netcdf4c) #make alld) #make check ;64位不需要e) #make install 安装 libpng-1.5.0.tar.gza) #tar zxvf libpng-1.5.0.tar.gzb) #./configure -prefix=/usr/local/libpngc) #maked) #make install 安装 zlib-1.2.5.tar.gza) #tar zxvf zlib-1.2.5.tar.gzb) #./configure -prefix=/usr/local/zlibc) #make d) #make install 安装ncl#mkdir /usr/local/ ncarg#cp ./ ncl_ncarg-5.2.1.Linux_i686_nodap_gcc432.tar.gz /usr/home/local/ncarg#cd /usr/home/local/ncarg#tar -zxvf ncl_ncarg-5.2.1.Linux_i686_nodap_gcc432.tar说明:缺什么库,就用yum安装什么库。但是不建议用yum命令安装netcdf和ncl。3、 安装Intel编译器电驴上有,可下载,学习完毕,记着删除: 安装Intel C编译器: Intel.C.编译器.TLF-SOFT-Intel.C.Plus.Plus.Compiler.Professional.v11.1.046.LINUX-SPYRAL.iso 安装步骤参照SPYRAL目录下install-cpp-linux.txt: Launch the setup. When asked, select the Alternative activation option. Use the included license file. 安装Intel Fortran编译器: Intel.Fortran.编译器Linux专业版.TLF-SOFT-Intel.Fortran.Compiler.Professional.v11.1.046.LINUX-SPYRAL.iso 安装步骤参照SPYRAL目录下install-cpp-linux.txt: Launch the setup. When asked, select the Alternative activation option. Use the included license file.4、 环境变量 /etc/profile文件添加export INTEL_COMPILER_TOPDIR=/opt/intel/Compiler/11.1/046export NETCDF=/usr/local/netcdf4export NCARG=/usr/local/ncargexport NCARG_ROOT=/usr/local/ncargexport PATH=/opt/intel/Compiler/11.1/046/bin:/opt/intel/Compiler/11.1/046/bin/ia32:/opt/intel/Compiler/11.1/046/include:/opt/intel/Compiler/11.1/046/lib/ia32:$NETCDF/lib:$NETCDF/include:$NCARG/bin:$NCARG/lib:$NCARG/include:/usr/local/libpng /include:/usr/local/libpng /bin:$PATHexport WRFIO_NCD_LARGE_FILE_SUPPORT=1export JASPERLIB=/usr/local/jasper/libexport JASPERINC=/usr/local/jasper/includeexport INCLUDE=/usr/include:$INCLUDE 5、 安装 WRFV3 解压缩:#gzip -cd WRFV3.1.1.TAR.gz | tar -xf 运行命令:#/opt/intel/Compiler/11.1/046/bin/ia32/ifortvars_ia32.sh#/opt/intel/Compiler/11.1/046/bin/ia32/iccvars_ia32.sh#cd WRFV3 运行环境设置#export NETCDF=/usr/local/netcdf4#export JASPERLIB=/usr/local/jasper/lib#export JASPERINC=/usr/local/jasper/include#export LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH#export INCLUDE=/usr/include/:$INCLUDE#export WRFIO_NCD_LARGE_FILE_SUPPORT=1#export DM_FC=mpiifort#export DM_CC=mpiicc 配置:#./configure -prefix=/opt/WRFV3-mpi注意:运行./ compile报错,则执行:#yum install tcsh编译选项,请酌情选择,如:选择11,选择默认回车。 编译#mkdir ./buildlog ;编译日志目录#./compile em_b_wave & ./buildlog/em_b_wave#./compile em_grav2d_x & ./buildlog/em_grav2d_x#./compile em_heldsuarez & ./buildlog/em_heldsuarez#./compile em_hill2d_x & ./buildlog/em_hill2d_x#./compile em_les & ./buildlog/em_les#./compile em_quarter_ss & ./buildlog/em_quarter_ss#./compile em_real & ./buildlog/em_real#./compile em_seabreeze2d_x & ./buildlog/em_seabreeze2d_x#./compile em_squall2d_x & ./buildlog/em_squall2d_x#./compile em_squall2d_y & ./buildlog/em_squall2d_y 检查:ls -ls main/*.exe if you built a real-data case, you should see ndown.exe, real.exe, and wrf.exe if you built an ideal-data case, you should see ideal.exe and wrf.exe WRF编译完毕!6、 安装WPSV3.1.1.TAR.gz 解压缩: #gzip -cd WPSV3.1.1.TAR.gz | tar -xf 配置#cd WPS #./configure 选择Intel编译器的选项,如:选11,然后选默认。 修改配置文件后才可以编译 #gedit ./configure.wps文件修改如下行:COMPRESSION_LIBS=-L/usr/local/jasper/lib -ljasper -L/usr/local/libpng/lib -lpng -L/usr/local/zlib/lib -lzCOMPRESSION_INC=-I/usr/local/zlib/include -I/usr/local/jasper/include -I/usr/local/png/includeNCARG_LIBS=-L/usr/local/ncarg/lib -lncarg -lncarg_gks -lncarg_c -L/usr/lib -lX11 -L/usr/lib -lgfortran 执行编译#./compile &/home/wrf/logger.txt 检查:ls -ls *.exe you should see geogrid.exe, ungrib.exe, and metgrid.exe ls -ls util/*.exe you should see a number of utility executables: avg_tsfc.exe, g1print.exe, g2print.exe, mod_levs.exe, plotfmt.exe, plotgrids.exe, and rd_intermediate.exe7、 安装其它包的说明: 安装wrfplus 需要修改configure.wrf文件, FCOPTIM = -O3 -switch fe_use_rtl_arg_copy_inout -mP2OPT_vec_xform_level=103以免出现:internal threshold was exceeded错误。 安装OBSGRID.tar.gz修改configure.oa文件NETCDF_LIBS=-L$NETCDF

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论