WRF安裝總結(jié)說(shuō)明_第1頁(yè)
WRF安裝總結(jié)說(shuō)明_第2頁(yè)
WRF安裝總結(jié)說(shuō)明_第3頁(yè)
WRF安裝總結(jié)說(shuō)明_第4頁(yè)
WRF安裝總結(jié)說(shuō)明_第5頁(yè)
已閱讀5頁(yè),還剩11頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、一、CentOS 5 Linux 安裝圖解即設(shè)置(一)、安裝圖解 參考 wrf模式學(xué)習(xí)_從linux安裝開(kāi)始.pdf (二)、設(shè)置linux系統(tǒng)(此步驟可以不做)1.調(diào)整顯示器分辨率如遇顯示器分辨率不對(duì),中文版在系統(tǒng) - 首選項(xiàng)- 顯示 (或者是屏幕分辨率 ) 英文版是: system - preference - display 打開(kāi)就看到調(diào)整分辨率的選項(xiàng)。也可也該配置文件/boot/grub/grub.conf 具體操作看CentOS修改分辨率命令。2.防火墻設(shè)置幾種方法(1) root 用戶下,終端輸入setup,進(jìn)入圖形界面。可進(jìn)行X 配置、時(shí)區(qū)配置、系統(tǒng)服務(wù)、網(wǎng)絡(luò)配置、鍵盤(pán)配置、防火

2、墻配置、驗(yàn)證配置。rootnumerca #setup(2) root 用戶下,rootnumerca #service iptables start/restart/stop/status(3) root 用戶下,rootnumerca #/etc/init.d/ iptables start/restart/stop/status(4) root 用戶下,rootnumerca # iptables F 關(guān)閉防火墻3、配置Xmanager 遠(yuǎn)程桌面rootnumerca # vi /usr/share/gdm/defaults.conf(1)打開(kāi) /etc/inittab 文件,將 run

3、level 變?yōu)?, 即id:5:initdefault: 如果原來(lái)就是5,則不用修改。(注:5 為圖形界面,3 為文本界面,即命令行方式)(2)修改 /etc/gdm/custom.conf,將 xdmcp 部分的 Enable 設(shè)置為 1,即:xdmcpEnable=truePort=177 (注:打開(kāi)177 端口)securityDisallowTCP=false (注:允許TCP)AllowRemoteRoot=true (注:允許遠(yuǎn)程以根用戶登陸)rootnumerca # service iptables statusFirewall is stopped.rootnumerca

4、# gdm-restart (注:重啟圖形顯示界面,回到登陸界面)二、相關(guān)軟件安裝1、準(zhǔn)備工作1)通過(guò)rpm -qa |grep * 或locate 來(lái)檢查某軟件或庫(kù)是否安裝,需要檢查的有samba,gcc,hdf.h,Xlib.h,Intrinsic.h,后3 個(gè)用于安裝ncarg。首先,查看samba 是否安裝:rootnumerca # rpm -qa |grep samba有以下顯示:samba-common-3.0.33-3.14.el5samba-client-3.0.33-3.14.el5若缺文件,則從安裝光盤(pán)中安裝。如下rootnumerca # cd /media/CentO

5、S_5.4_Final/CentOS/rootnumerca CentOS# ls * |grep sambasamba-3.0.33-3.14.el5.i386.rpmsystem-config-samba-1.2.41-5.el5.noarch.rpmrootnumerca CentOS# rpm -ivh samba-3.0.33-3.14.el5.i386.rpm warning: samba-3.0.33-3.14.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID e8562897error: Failed dependenci

6、es:perl(Convert:ASN1) is needed by samba-3.0.33-3.14.el5.i386rootnumerca CentOS# ls * |grep perlperl-Convert-ASN1-0.20-1.1.noarch.rpmrootnumerca CentOS# rpm -ivh perl-Convert-ASN1-0.20-1.1.noarch.rpmrootnumerca CentOS# rpm -ivh samba-3.0.33-3.14.el5.i386.rpmrootnumerca CentOS# rpm -ivh system-config

7、-samba-1.2.41-5.el5.noarch.rpmrootnumerca CentOS# cdrootnumerca # ntsysv選中smbrootnumerca # cd /media/CentOS_5.4_Final/CentOS/然后,查看gcc 是否安裝:rootnumerca CentOS# rpm -qa |grep gcclibgcc-4.1.2-46.el5gcc-c+-4.1.2-46.el5gcc-4.1.2-46.el5compat-gcc-34-g77-3.4.6-4gcc-gfortran-4.1.2-46.el5compat-libgcc-296-2.

8、96-138compat-gcc-34-c+-3.4.6-4compat-gcc-34-3.4.6-4gcc-java-4.1.2-46.el5最后,查看Xlib.h,Intrinsic.h 是否安裝rootnumerca CentOS# cd /usr/include/X11rootnumerca X11# lsXlib.h,Intrinsic.h 存在則不需安裝2)設(shè)置共享用戶public (方便window 和linux 系統(tǒng)間復(fù)制文件,也可裝個(gè)Ext2Fsd-0.51.zip軟件,詳細(xì)見(jiàn)硬盤(pán)安裝CentOS 6.0)rootnumerca # useradd publicrootnum

9、erca # chmod 777 /home/publicrootnumerca # smbpasswd -a public修改/etc/samba/smb.confrootnumerca # vi /etc/samba/smb.conf# 2 lines following modified by cxc 30th,Oct,2010.security = share; security = user# following modified by cxc 30th,Oct,2010.publiccomment = Public directorypath = /home/publicbrows

10、eable = yesguest ok = yeswritable = yesrootnumerca # service smb restartShutting down SMB services: FAILEDShutting down NMB services: FAILEDStarting SMB services: OK Starting NMB services: OK 即可在windows 中進(jìn)入public地址欄輸入/public假定下列所有安裝源文件全部位于/home/public 下。2、安裝grads準(zhǔn)備好grads-2.0.a8-bin-i686-pc-linux-gnu

11、.tar.gz、lib.tar、data.tar.Z 三個(gè)文件rootnumerca X11# cd /home/publicrootnumerca public# tar -zvxf grads-2.0.a8-bin-i686-pc-linux-gnu.tar.gzrootnumerca public# mv grads-2.0.a8 /usr/local/rootnumerca public# mv lib.tar data.tar.Z /usr/local/grads-2.0.a8rootnumerca public# mv /usr/local/grads-2.0.a8 /usr/lo

12、cal/grads(更名)rootnumerca public# cd /usr/local/gradsrootnumerca grads# mkdir datrootnumerca grads# gunzip data.tar.Zrootnumerca grads# tar -vxf data.tar -C ./datrootnumerca grads# tar -vxf lib.tarrootnumerca grads# cdrootnumerca # vi .bashrc配置.bashrc里的環(huán)境變量(注意這里一定要在自己當(dāng)前安裝的用戶下,即是$而不是#,本文中的命令是直接安裝在root

13、用戶下的,如果在root用戶下,則改變的是root用戶的.bashrc,從而造成$source .bashrc命令出錯(cuò),所以在自己用戶下安裝時(shí)應(yīng)當(dāng)是以下幾步,在安裝文件時(shí)用su root 進(jìn)入root用戶。rootnumerca grads# exit wbxtnumerca grads$ cd wbxtnumerca $ vi .bashrc(改配置)GRADS=/usr/local/gradsexport GRADSexport PATH=$GRADS/bin:$PATHexport GADDIR=$GRADS/datexport GASCRP=$GRADS/libwbxtnumerca

14、$ source .bashrc 3、安裝PGI準(zhǔn)備好pgilinux-9011.tar.gz、pgi_9.0-1_linux32.tar.bz2 以及l(fā)icense.datrootnumerca # cd /home/publicrootnumerca public# tar -zvxf pgilinux-9011.tar.gzrootnumerca public# tar -vxf pgi_9.0-1_linux32.tar.bz2rootnumerca public# ./installDo you accept these terms? accept,declineaccept1. S

15、ingle system install2. Network installPlease choose install option(1-2):1sea121 整理于2011 年4 月,如有疑問(wèn),請(qǐng)發(fā)E-mail 至。Install the ACML? y/nnInstallation directory? /opt/pgi/usr/local/pgiDo you wish to install MPICH1?(y/n)yRemote execution method? rsh,sshsshrootnumerca public# cp pgi_9.0-1_linux32_patcher /us

16、r/local/pgi/rootnumerca public# cd /usr/local/pgi/rootnumerca pgi# ./pgi_9.0-1_linux32_patcherrootnumerca pgi# cp /home/public/license.dat .rootnumerca pgi# cdrootnumerca # vi .bashrc在文件的末尾增加以下部分:#set for PGIPGI=/usr/local/pgiexport PGIexport PATH=$PGI/linux86/9.0-1/bin:$PGI/linux86/9.0-1/include:$P

17、GI/linux86/9.0-1/lib:$PATHexport LM_LICENSE_FILE=$PGI/license.datexport MANPATH=$PGI/linux86/9.0-1/man:$MANPATHMPICH=/usr/local/pgi/linux86/9.0/mpi/mpichexport MPICHexport PATH=$MPICH/bin:$MPICH/lib:$MPICH/inlcude:$PATHexport MANPATH=$MPICH/man:$MANPATH rootnumerca # source .bashrc自己的用戶用source /.bas

18、hrc 命令然后配置ssh(配置完成后在并行運(yùn)算時(shí)不用輸入密碼):rootnumerca # ssh-keygen -t rsarootnumerca # cd .sshrootnumerca .ssh# cp id_rsa.pub authorized_keysrootnumerca .ssh# ssh (注:本機(jī)IP 地址)Are you sure you want to continue connecting (yes/no)? Yesrootlocalhost pgi# pgf90顯示:pgf90-Warning-No files to process 說(shuō)明安裝成功。建議初次安裝編譯器

19、的同志,安裝完之后先測(cè)試一下看看能不能用,別急著去編譯模式,下面是一段測(cè)試程序,你可以試一下:rootlocalhost pgi# vi hello.f90print *, hello world !endrootlocalhost pgi# pgf90 hello.f90 -o hellorootlocalhost pgi# ./hellohello world!測(cè)試一下gccrootlocalhost pgi# vim hello.c#include int main (void)printf(“I am pratising gccn”);rootlocalhost pgi#gcc -c

20、hello.crootlocalhost pgi#gcc -o hello hello.orootlocalhost pgi#./hello4 、安裝netcdf準(zhǔn)備好netcdf-4.0.1.tar.gzrootnumerca hdf5-1.8.4-patch1# cd /home/publicrootnumerca public# tar -zvxf netcdf-4.0.1.tar.gzrootnumerca public# cd netcdf-4.0.1rootnumerca netcdf-4.0.1# configure -prefix=/usr/local/netcdf -with

21、zlib=/usr/local/zlib -with-hdf5=/usr/local/hdf5 -with-szlib=/usr/local/sziprootnumerca netcdf-4.0.1# make make.log & (make.log &這些參數(shù)可以不要)rootnumerca netcdf-4.0.1# make check check.log & (make.log &這些參數(shù)可以不要)rootnumerca netcdf-4.0.1# make install install.log &配置.bashrc里的環(huán)境變量(注意這里一定要在自己用戶下,即是$而不是#,如果在r

22、oot用戶下,則改變的是root用戶的.bashrc,從而造成$source .bashrc命令出錯(cuò)# set for netcdfexport NETCDF=/usr/local/netcdfexport PATH=$NETCDF/bin:$NETCDF/include:$NETCDF/lib:$NETCDF/man:$PATHexport CC=/usr/bin/gccexport CXX=$PGI/linux86/9.0/bin/pgCCexport FC=$PGI/linux86/9.0/bin/pgf90export F90=$PGI/linux86/9.0/bin/pgf90$so

23、urce /.bashrc試驗(yàn)netcdf安裝是否成功$ncdump如果出現(xiàn)使用說(shuō)明則說(shuō)明安裝成功。5,安裝ncl(目前的ncl已經(jīng)集合了ncarg,所以大家沒(méi)必要裝ncarg)在安裝ncl之前,需要裝三個(gè)外部庫(kù)下載地址:HYPERLINK /viewthread.php?tid=31&extra=page%3D1&frombbs=1 t _blank/viewthread.php? . e%3D1&frombbs=1(本文用的是fedora 8),而此地址也是fedora 8所支持的外部庫(kù),用其它地址的重新找這三個(gè)庫(kù),CentQS6.1系統(tǒng)則不需要安裝此3個(gè)庫(kù))$supassword: 如果

24、以root身份登陸可跳過(guò)此步#rpm -i *.rpm *代表庫(kù)名#exit安裝好之后,開(kāi)始安裝ncl,如果從論壇ftp下載的ncl,解壓出來(lái)的bin,include,lib可以直接放到/usr/local/ncl下即可(也可從官網(wǎng)下載最新版本的 HYPERLINK /home.htm /home.htm 在這個(gè)網(wǎng)站上下東西要有注冊(cè)帳號(hào),申請(qǐng)一下就行了,一般要等一兩天才能申請(qǐng)成功,所以新用戶要耐心等待了。先弄清楚自己linux的類型,選擇相應(yīng)的版本下載。例如:我得linux版本是fedora4,32位機(jī),我選擇 ncl-4.2.0.a033.Linux_i686.tar.gz )配置.bash

25、rc中關(guān)于ncl和ncarg的環(huán)境變量export NCARG_ROOT=/usr/local/nclexport NCARG_LIB=/usr/local/ncl/libexport NCARG_INC=/usr/local/ncl/includeexport PATH=/usr/local/ncl/bin:$PATH$source /.bashrc如想試驗(yàn)安裝是否成功$ncl 如進(jìn)入程序就說(shuō)明已經(jīng)成功建立配置文件:在/ 目錄下建立.hluresfile 文件(用cat、touch、gedit、vi 命令都可以建立一個(gè)文件),然后把下面內(nèi)容復(fù)制(此文件說(shuō)明見(jiàn):/Document/Graphi

26、cs/hlures.shtml)這個(gè)文件已經(jīng)做好給你們了(或者自己復(fù)制粘貼也行),直接復(fù)制到/里面。另外這一步是為了更改ncl 的默認(rèn)選項(xiàng)也準(zhǔn)備的,也可以不用做。復(fù)制內(nèi)容如下:!=! comments for .res files are preceded by a ! remember quotations are not used in .res files! White background/black foreground*wkForegroundColor : (/0.,0.,0./)*wkBackgroundColor : (/1.,1.,1./)*wkColorMap : rai

27、nbow+gray! Font stuff*Font : helvetica! Function Codes Default is a colon *TextFuncCode : ! Make default X11 window larger (adjust as necessary)*wkWidth : 800*wkHeight : 800! Have a favorite colormap that you use for everything? You can! make it your default here (note the name is NOT in quotes):! *

28、wkColorMap : temp1! Increase the default (16mb) contour memory! If you gave gridded data 500 x 500, you may need this*wsMaximumSize: 32556688!=然后 cd , 分別執(zhí)行ng4ex gsun01n , ncl gsun01n.nclncargex cpex08, ctrans -d X11 cpex08.ncgm此時(shí),可以看到測(cè)試的顯示結(jié)果。出來(lái)的顯示框,點(diǎn)擊一下方可出現(xiàn)圖像。測(cè)試ncl安裝成功與否?rootlocalhost # ng4ex gsun01

29、n有五個(gè)圖形可以查看的。rootlocalhost # ncargex cpex08rootlocalhost # ctrans -d X11 cpex08.ncgm兩個(gè)地圖圖形成功!到此為止,WRF 模式安裝的前期準(zhǔn)備已經(jīng)完成,下面開(kāi)始正式安裝模式。在正式安裝之前,我們先在我們自己的用戶目錄下建立一個(gè)名為WRF 的文件夾,然后把地形文件壓縮包geog_v3.1.tar.gz 、WRFV3 壓縮包WRFV3.1.1.TAR.gz、WPSV3 壓縮包WPSV3.1.1.TAR.gz 和ARWpost 壓縮包ARWpost.tar.gz 都復(fù)制到WRF 文件夾里,最后就可以在WRF 文件夾里進(jìn)行模

30、式的安裝了。6 WRFV3 安裝要先安裝 WRF,再安裝WPS,這個(gè)順序不能顛倒。安裝步驟:6.1 WRF 壓縮包可以到以下網(wǎng)頁(yè)下載:/wrf/users/download/get_source.html需要注冊(cè),不過(guò)注冊(cè)很方便。我們已經(jīng)下載好了。在安裝之前,請(qǐng)?jiān)?bashrc中配置環(huán)境變量export WRFIO_NCD_LARGE_FILE_SUPPORT=1$source .bashrc然后按照 HYPERLINK /thread-13-1-1.html t _blank /thread-13-1-1.html里關(guān)于libg2c.so的解決辦法(2)修改(務(wù)必)6.2 在事前建立的WRF

31、 目錄下,解壓WRFV3 的壓縮包rootlocalhost #tar zxvf WRFV3.1.1.TAR.gzrootlocalhost #cd WRFV3rootlocalhost #./configure按空格到100%,注釋:serial(單核) means single processor (考慮到大家機(jī)器的實(shí)際情況,請(qǐng)大家選擇這項(xiàng))smpar (多核公用內(nèi)存)means Symmetric Multi-Processing/Shared Memory Parallel (OpenMPI)dmpar(多核分布式內(nèi)存) means Distributed Memory Paralle

32、l (MPI)dm+sm means Distributed Memory with Shared Memory (for example, MPI across nodes with OpenMP within a node)dm 和sm 都需要安裝mpi 才能實(shí)現(xiàn)多核的并行運(yùn)算(后面看附錄二)the second option is for nesting: 0 = no nesting, 1 = standard static nesting,2 = nesting with a prescribed set of moves, 3 = nesting that allows a dom

33、ainto follow a vortex (typhoon tracking)一般選1注意:選擇linux with pgi 編譯器(serial)的選項(xiàng),回車(chē)以后,出現(xiàn)compile for nesting?選擇basic。6.3 開(kāi)始編譯rootlocalhost #./compile em_real(這時(shí)要用到csh,如果PC上還沒(méi)有安裝,可以從這里下載 HYPERLINK /thread-46-1-1.html t _blank /thread-46-1-1.html)rootlocalhost #ls -ls main/*.exe注釋:如果看見(jiàn) ndown.exe, real.ex

34、e, and wrf.exe 。代表WRFV3 安裝成功。6.4 如果編譯失敗,請(qǐng)先回到WRFV3 目錄下,輸入./clean a ,再重新查找問(wèn)題,重新安裝。7,安裝WPSM安裝WPS前要先安裝三個(gè)外部庫(kù),在以后識(shí)別GRIB2格式的數(shù)據(jù)時(shí)會(huì)用得到這三個(gè)庫(kù)的下載地址: HYPERLINK /viewthread.php?tid=31&pid=49&page=1&extra=page%3D1 t _blank /viewthread.php? . &extra=page%3D1分別解壓縮這三個(gè)壓縮包$tar -xvf jasper-1.701.0.tar.gz$tar -xvf libpng-1

35、.2.12.tar.gz$tar -xvf zlib-1.2.3.tar.gz然后開(kāi)始安裝$su rootpassword: 輸入密碼,如一開(kāi)始就以root進(jìn)入可跳過(guò)這步#cd jasper-1.701.0#./configure#make#make install#cd .#cd libpng-1.2.12#./configure#make#make install#cd .#cd zlib-1.2.3#./configure#make#make install#exit現(xiàn)在可以安裝WPS了$cd /home/name/Model$tar -xvf WPSV3.0.1.TAR.gz -C /

36、home/name/Program/$cd /home/name/Program/WPS配置:./configure得到如下: 1. PC Linux x86_64, Intel compiler serial, NO GRIB2 2. PC Linux x86_64, Intel compiler serial 3. PC Linux x86_64, Intel compiler DM parallel, NO GRIB2 4. PC Linux x86_64, Intel compiler DM parallel 5. PC Linux x86_64 (IA64 and Opteron),

37、 PGI compiler 5.2 or higher, serial, NO GRIB2 6. PC Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher, serial 7. Cray XT Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher, DM parallel, NO GRIB2 8. PC Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher, DM parallel, NO GRI

38、B2 9. PC Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher, DM parallel 10. PC Linux x86_64 (IA64 and Opteron), PathScale compiler 2.1 or higher, serial, NO GRIB2 11. PC Linux x86_64 (IA64 and Opteron), PathScale compiler 2.1 or higher, DM parallel, NO GRIB2 12. PC Linux x86_64, g95 compil

39、er, serial, NO GRIB2 13. PC Linux x86_64, g95 compiler, serial 14. PC Linux x86_64, g95 compiler, DM PARALLEL, NO GRIB2 15. PC Linux x86_64, g95 compiler, DM PARALLEL選 2編譯:./compile選1查看是否安裝成功你應(yīng)該看到geogrid.exe,ungrib.exe,和metgrid.exels -ls *.exe注釋: o you should see geogrid.exe, ungrib.exe, and metgrid

40、.exe (if you are missingboth geogrid.exe and metgrid.exe, you probably need to fix where the path to WRF is pointing in the configure.wps file; if you are missing ungrib.exe, trya Grib1-only build to further isolate the problem) 你應(yīng)該看到geogrid.exe,ungrib.exe,和metgrid.exe(如果沒(méi)有g(shù)eogrid.exe和metgrid.exe,你可

41、能需要在configure.wps文件里修正模式的路徑;如果沒(méi)有ungrib.exe,嘗試建立一個(gè)grib1-only)ls -ls util/*.exe注釋:o you should see a number of utility executables: avg_tsfc.exe,calc_ecmwf_p.exe, g1print.exe, g2print.exe, mod_levs.exe, plotfmt.exe,plotgrids.exe, and rd_intermediate.exe (files requiring NCAR Graphics areplotfmt.exe an

42、d plotgrids.exe) 你應(yīng)該會(huì)看到一些實(shí)用程序:avg_tsfc.exe,calc_ecmwf_p.exe,g1print.exe,g2print.exe,mod_levs.exe,plotfmt.exe,plotgrids.exe,和rd_intermediate.exe(文件需要點(diǎn)圖形plotfmt.exe和plotgrids.exe文件。) if geogrid.exe and metgrid.exe executables are missing, probably the pathto the WRFV3 directory structure is incorrect

43、(found inside the configure.wpsfile). 如果geogrid.exe和metgrid.exe可執(zhí)行文件丟失,可能的路徑到wrfv3目錄結(jié)構(gòu)是不正確的(內(nèi)發(fā)現(xiàn)的configure.wps文件)。 if the ungrib.exe is missing, probably the Grib2 libraries are not linkedor built correctly.如果是plotfmt.exe 和plotgrids.exe 編譯不出來(lái),在確保NCAR Graphics(也即是ncarg)已經(jīng)成功安裝的前提下,修改WPS 中arch 目錄中的confi

44、gure.defaults 文檔, 在文檔中找到找到跟PGI compiler有關(guān)的那幾項(xiàng),分別是serial NO GRIB2, serial, DM parallel NO GRIB2, DM paralle,如以下文字, 其中劃線部分為需要修改的地方。進(jìn)入/usr/lib/gcc-lib/i386-redhat-linux/,查看本機(jī)版本(一個(gè)文件夾的名稱),如例子為3.2.3,進(jìn)入此文件夾,如果沒(méi)有例子的庫(kù)(即libg2c.a),但有l(wèi)ibgcc.a,則把例子中“-lg2c”改為“-lgcc”。$cd archM$vi configure.defaults0#ARCH PC Linux

45、 i486 i586 i686, PGI compiler serial, NO GRIB2#COMPRESSION_LIBS =。CPPFLAGS = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32NCARG_LIBS2 = -L$PGI/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c#ARCH PC Linux i486 i586 i686, PGI compiler se

46、rial。NCARG_LIBS2 = -L$PGI/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c#ARCH PC Linux i486 i586 i686, PGI compiler DM parallel, NO GRIB2。NCARG_LIBS2 = -L$PGI/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c#ARCH PC Linux i486 i586

47、i686, PGI compiler DM parallel 。NCARG_LIBS2 = -L$PGI/linux86/6.1/lib -lpgftnrtl -lpgc -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -lg2c#修改WPS/arch/中preamble 文檔,找到修改NCARG_LIBS選項(xiàng),修改后結(jié)果如下:NCARG_LIBS = -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c -L/usr/lib -lX11如/usr目錄下有X11R6則無(wú)須做任何改動(dòng)如果編譯失敗,請(qǐng)先回到WPS

48、目錄下,輸入./clean a ,再重新查找問(wèn)題,重新安裝。8、安裝WRFDA1)安裝WRFDAV3.1.1從WRFV3.1.1 開(kāi)始,一些額外需要的庫(kù)文件(如lapack,blas 和NCEP BUFR)已經(jīng)被打包在WRFDAV3.3.TAR.gz 中,若僅同化LITTLE_R 格式的常規(guī)觀測(cè)數(shù)據(jù),則只需安裝netCDF 即可。若想利用PREPBUFR 格式觀測(cè)數(shù)據(jù),則還需要先定義環(huán)境變量(csh):setenv BUFR 1編譯NCEP BUFR 庫(kù)文件、產(chǎn)生和編譯與BUFR 相關(guān)的WRFDA 代碼,還需在configure/compile 后進(jìn)行。若要同化衛(wèi)星輻射數(shù)據(jù),還需要安裝NCEP

49、 BUFR 庫(kù)文件以及RTM(Radiative TransferModel,輻射傳輸模式)。當(dāng)前,WRFDA 采用的RTM 版本為CRTM V2.0.2 和RTTOV V10。WRFDA既可以單獨(dú)編譯其中一個(gè),也可以都進(jìn)行編譯。從WRFV3.2.1 開(kāi)始,CRTM V2.0.2 包括在WRFDA 打包文件中。編譯CRTM 庫(kù)文件、以及產(chǎn)生和編譯與CRTM 相關(guān)的WRFDA 代碼,也需在configure/compile 后進(jìn)行。若要利用RTTOV V10 同化衛(wèi)星輻射數(shù)據(jù),在編譯WRFDA 前要先下載安裝RTTOV V10。并指定lib/librttov10.1.0_*.a 等文件的環(huán)境變量

50、。需要注意的是,在安裝這些庫(kù)文件時(shí)要用和WRF 同樣的編譯器,否則可能出現(xiàn)不兼容問(wèn)題。cd /usr/local/wrftar -zxvf WRFDAV3.1.1.tar.gzcd WRFDA_V3.1.1./configure wrfda91./compile all_wrfvar./compile all_wrfvar & compile.logls -l var/build/*exe var/obsproc/src/obsproc.exe 看到以下exe文件var/build/da_advance_time.exe var/build/gen_be_diags_read.exevar/b

51、uild/da_bias_airmass.exe var/build/gen_be_ensmean.exevar/build/da_bias_scan.exe var/build/gen_be_ensrf.exevar/build/da_bias_sele.exe var/build/gen_be_ep1.exevar/build/da_bias_verif.exe var/build/gen_be_ep2.exevar/build/da_rad_diags.exe var/build/gen_be_etkf.exevar/build/da_tune_obs_desroziers.exe va

52、r/build/gen_be_stage0_wrf.exevar/build/da_tune_obs_hollingsworth1.exe var/build/gen_be_stage1_1dvar.exevar/build/da_tune_obs_hollingsworth2.exe var/build/gen_be_stage1.exevar/build/da_update_bc.exe var/build/gen_be_stage2_1dvar.exevar/build/da_verif_grid.exe var/build/gen_be_stage2a.exevar/build/da_

53、verif_obs.exe var/build/gen_be_stage2.exevar/build/da_wrfvar.exe var/build/gen_be_stage3.exevar/build/gen_be_cov2d.exe var/build/gen_be_stage4_global.exevar/build/gen_be_cov3d.exe var/build/gen_be_stage4_regional.exevar/build/gen_be_diags.exe var/obsproc/src/obsproc.exe配置 ssh(配置完成后在并行運(yùn)算時(shí)不用輸入密碼):(一直回

54、車(chē)即可)rootlocalhost # ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.

55、ssh/id_rsa.pub.The key fingerprint is:a9:dd:3d:b0:e0:43:89:a7:22:57:20:b2:0a:9d:db:2e rootlocalhost.localdomainrootlocalhost # cp /.ssh/id_rsa.pub /.ssh/authorized_keys2),安裝WRFDA3安裝WRFDAV3前要先裝三個(gè)外部庫(kù)bufr(如不用bufr格式的數(shù)據(jù),可以不用裝,這是3.1版本之前的WRFDA所不允許的),lapack,和blas前一個(gè)的可在論壇ftp中下載,后兩個(gè)的下載地址: HYPERLINK /viewthrea

56、d.php?tid=31&pid=50&page=1&extra=page%3D1 t _blank /viewthread.php? . &extra=page%3D1$cd /home/name/Model$tar -xvf WRFDAV3.TAR.gz -C /home/name/Program$cd /home/name/Program$mkdir BUFR$tar -xvf /home/name/Model/bufrlib.tar -C BUFR$cd BUFR$cpp -traditional -I. -C -DRECL1 wrdlen.Fwrdlen.f$cpp -traditi

57、onal -I. -C -DRECL1 irev.Firev.f$ksh /home/name/Program/WRFDA/var/scripts/compile_external/pgi_i386/setup_bufr(這時(shí)要用到ksh,如果PC上還沒(méi)有安裝,可以從這里下載 HYPERLINK /thread-46-1-1.html t _blank /thread-46-1-1.html)$cd .此時(shí) bufr安裝成功$tar -xvf /home/name/Model/blas.tar ./$cd BLAS$ksh /home/name/Program/WRFDA/var/scripts/compile_external/pgi_i386/setup_blas$cd .blas安裝成功$tar -xvf /home/name/Model/lapack-3.1.1.tar$cd lapack-3.1.1$cp INSTALL/make.inc.LINUX ./make.inc修改make.inc,把其中g(shù)77或關(guān)于fortran的文字全部改成pgf90,把OPT改成-O2 -r8$ksh /hom

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論