Example: barber

Introduction of Meteorological Model WRF & Installation

Introduction of Meteorological Model WRF & Installation (SENOO, Ken) 2014-11-29 44 CAE : work is licensed under the Creative Commons Attribution International WRF ( )3 WRF Weather Research and Forecasting modeling system : : : Fortran, C NCAR (National Center for Atmospheric Research) MMM (Mesoscale and Mi- croscale Meteorology) NOAA (National Oceanic and Atmospheric Administration) NCEP (National Centers for Environmental Prediction) 4 WPS (WRF Preprocessing System) Geogrid: Ungrib: Metgrid: OBSGRID: REAL ( ) ARW (Advanced Research WRF) NMM : WRFDA (Data Assimilation) : WRF/Chem HWRF( ) Cite from: WRF ( ) 4 ( ) 9 ( ) ~.

Introduction of Meteorological Model WRF & Installation 妹尾 賢 (SENOO, Ken) contact@senooken.jp https://social.senooken.jp/senooken 2014-11-29 第44回オープンCAE勉強会@関東(流体など) ... OpenFOAMの境界条件としての利用 ...

Tags:

  Introduction, Model, Installation, Meteorological, Openfoam, Introduction of meteorological model wrf amp installation

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Transcription of Introduction of Meteorological Model WRF & Installation

1 Introduction of Meteorological Model WRF & Installation (SENOO, Ken) 2014-11-29 44 CAE : work is licensed under the Creative Commons Attribution International WRF ( )3 WRF Weather Research and Forecasting modeling system : : : Fortran, C NCAR (National Center for Atmospheric Research) MMM (Mesoscale and Mi- croscale Meteorology) NOAA (National Oceanic and Atmospheric Administration) NCEP (National Centers for Environmental Prediction) 4 WPS (WRF Preprocessing System) Geogrid: Ungrib: Metgrid: OBSGRID: REAL ( ) ARW (Advanced Research WRF) NMM : WRFDA (Data Assimilation) : WRF/Chem HWRF( ) Cite from: WRF ( ) 4 ( ) 9 ( ) ~ : 100 m ~ 100 km 100 m HPC.

2 : : WRF openfoam 7 WRF 8 OS: Ubuntu 64bit Fortran : gfortran C : gcc : bash Windows Mac export FC=gfortranexport F90=gfortranexport CC=gccexport CXX=g++export FC=ifortexport F90=ifortexport CC=iccexport CXX=icpc sudo apt-get install gfortran csh make csh 9 stow, IDV$HOME/.local/ $HOME/ Model / : : : : : 11 Model .

3 Rc .local .local / - /.local/. rc$HOME/ Model / 12 $HOME/ Model / openfoam / .wrfrc local/bin PATH 13 stowVER= LOCAL=~/.localcd $LOCAL/srcwget -nc $ -xf stow-$ stow-$ --prefix=$LOCAL/stow/stow-$VERmake && make installcd $ $VER/bin/stow stow-$VER/ : Perl (Perl) ## Local pathLOCAL=~/.localPATH="$LOCAL/bin:$PATH " LD_LIBRARY_PATH="$LOCAL/lib:$LD_LIBRARY_ PATH"CPATH="$LOCAL/include:$CPATH" MANPATH="$LOCAL/share/man:$MANPATH"expor t PATH LD_LIBRATY_PATH CPATH MANPATH (~/.)

4 Bashrc )14 stow src/ $HOME/. ~/.localmkdir -p $LOCAL/src # ( )cd $LOCAL/srcwget # tar -xf # cd --prefix=$LOCAL/ # $HOME/local/ make && make install # $HOME/local/ stow -d $LOCAL/stow # (../ * ) bin/lib/share/include/bin/lib/share/incl ude/ stow cd ~/local/stowstow -d $LOCAL/stow -D ( ).bashrc PATH export PATH=$HOME/.local/bin:$PATH15 stow senooken% 2-0: stow ! stowing would cause conflicts: * existing target is stowed to a different package: share/info/dir => ../../ operations ../share/info/dir stow share/info/dir share/info/dir( ) stow --ignore=dir dir alias alias stow="stow --ignore=dir" --ignore --ignore=dir 16 WRF URL URL 17.

5 Wrfrc ## (File name: .wrfrc)## directoryWRFDIR="$PWD"LOCAL="$PWD/.local "## Local libraryPATH="$LOCAL/bin:$PATH" LD_LIBRARY_PATH="$LOCAL/lib:$LD_LIBRARY_ PATH"CPATH="$LOCAL/include:$CPATH" MANPATH="$LOCAL/share/man:$MANPATH"expor t PATH LD_LIBRARY_PATH CPATH MANPATH## JasPerexport JASPERLIB=$LOCAL libexport JASPERINC=$LOCAL/include## WRF configureexport WRF_EM_CORE=1 # explicitly defines which Model core to buildexport WRF_NMM_CORE=0 # explicitly defines which Model core NOT to build export WRF_DA_CORE=0 # explicitly defines no data assimilationexport NETCDF=${PWD}/local/export OMP_NUM_THREADS=4 # if you have OpenMP on your system, this is how to specify the number of threads # export MP_STACK_SIZE=64000000 # OpenMP blows through the stack size, set it large.

6 However, if the Model still crashes, it may be a problem of overspecifying stack size. Set stack size sufficiently large, but not unlimited. On some systems, the equivalent parameter could be KMP_STACKSIZE, or OMP_STACKSIZE export WRFIO_NCD_LARGE_FILE_SUPPORT=1 # for generating lager than 2 GB netcdf filemkdir -p $HOME/ Model / ; cd $HOME/ Model / ; source .wrfrc$HOME/ Model / 18 JasPer : ~frodo/jasper/## JasPerVER= $LOCAL/src/wget -nc ~frodo/jasper/software/jasper-$ -o jasper-$ jasper-$ --prefix=$LOCAL/stow/jasper-$VERmake -j 4 &> && make installcd $LOCAL/stowstow jasper-$VER JPEG WPS (.wrfrc )## JasPerexport JASPERLIB="$LOCAL/lib"export JASPERINC="$LOCAL/include"19 zlib## zlibVER= $LOCAL/srcwget -nc $ -xf zlib-$ zlib-$ --prefix=$LOCAL/stow/zlib-$VERmake -j 4 check &> && make installcd $LOCAL/stowstow zlib-$VER : HDF5 libpng NetCDF 20 libpng## libpngVER= $LOCAL/srcwget -nc $ -xf libpng-$ cd libpng-$VERLDFLAGS=-L$LOCAL/lib.

7 /configure --prefix=$LOCAL/stow/libpng-$VERmake -j 4 check &> && make installcd $LOCAL/stowstow libpng-$VER : WPS zlib : zlib21 HDF5 (Hierarchical Data Format)## HDF5 VER= $LOCAL/srcwget -nc $ -xf hdf5-$ hdf5-$ --prefix=$LOCAL/stow/hdf5-$VER --with-zlib=$LOCAL --enable-cxx --enable-fortran --enable-fortran2003 --enable-hl --enable-sharedmake -j 4 &> && make installcd $LOCAL/stowstow hdf5-$VER : szip : zlib22 NetCDF (Network Common Data Format)## NetCDF### C libraryVER= $LOCAL/srcwget -nc $ -xf netcdf-$ $LOCAL/src/netcdf-$VER#.

8 /configure --prefix=$LOCAL/stow/netcdf-$VER --disable-netcdf-4 --disable-dapLDFLAGS=-L$LOCAL/lib ./configure --prefix=$LOCAL/stow/netcdf-$VER --enable-netcdf-4 --enable-dap --enable-sharedmake check -j 4 &> install### Fortran libraryFVER= $LOCAL/src/wget -nc $ -xf netcdf-fortran-$ $LOCAL/src/netcdf-fortran-$FVERNETCDF=$L OCAL/stow/netcdf-$VERLDFLAGS=-L$NETCDF/l ib ./configure --prefix=$NETCDF --enable-sharedmake check -j 4 &> && make installcd $LOCAL/stow/stow netcdf-$VER : : zlib, HDF523 MPICH (Massage Passing Interface CHameleon)## MPICH unset F90 # F90 configure VER= $LOCAL/srcwget -nc $VER/mpich-$ -xf mpich-$ mpich-$ --prefix=$LOCAL/stow/mpich-$VERmake -j 4 &> && make installcd $LOCAL/stowstow mpich-$VER : ## OpenMPIVER= $LOCAL/srcwget -nc ${VER%.}

9 ?}/downloads/openmpi-$ -xf openmpi-$ openmpi-$ --prefix=$LOCAL/stow/openmpi-$VERmake -j 4 all &> && make installcd $LOCAL/stowstow openmpi-$VER : OpenMPI OKMPI OpenMPI 24 WRF :Chapter 2: Software Installation WRF : URL VER= ~/ Model /WRF/WRF-$VERmkdir -p $WRFDIRcd $WRFDIR wget -nc $ -nc $ -xf WRFV$ -xf WPSV$ ARW cd $WRFDIR/WRFV3export NETCDF4=1 # ON NetCDF4 ./configurechecking for nochecking for found /usr/bin/perl (perl)Will use NETCDF in dir: /home/senooken/ Model / not set in environment. Will configure WRF for use you REALLY want Grib2 output from WRF, modify the now you are not getting the Jasper lib, from the environment, compiled into select from among the following supported platforms.

10 1. Linux x86_64 i486 i586 i686, PGI compiler with gcc (serial) 2. Linux x86_64 i486 i586 i686, PGI compiler with gcc (smpar) 3. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dmpar) 4. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dm+sm) 5. Linux x86_64, PGI compiler with pgcc, SGI MPT (serial) 6. Linux x86_64, PGI compiler with pgcc, SGI MPT (smpar) 7. Linux x86_64, PGI compiler with pgcc, SGI MPT (dmpar) 8. Linux x86_64, PGI compiler with pgcc, SGI MPT (dm+sm) 9. Linux x86_64, PGI accelerator compiler with gcc (serial) 10. Linux x86_64, PGI accelerator compiler with gcc (smpar) 11. Linux x86_64, PGI accelerator compiler with gcc (dmpar) 12.


Related search queries