# WRF (mpich) ```=shell FROM centos:7 WORKDIR / RUN rm -f /var/run/yum.pid && \ yum -y update && \ yum -y install gcc gcc-c++ csh wget time cmake unzip git libstdc++-devel libXScrnSaver m4 curl && \ mkdir -p /Build_WRF/src && \ echo -e "https://hdf-wordpress-1.s3.amazonaws.com/wp-content/uploads/manual/HDF5/HDF5_1_12_0/source/hdf5-1.12.0.tar\nftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-c-4.7.3.tar.gz\nftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-fortran-4.5.2.tar.gz\nhttp://www.zlib.net/fossils/zlib-1.2.11.tar.gz\nftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.37.tar.gz\nhttp://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip\nhttp://www.mpich.org/static/tarballs/3.0.2/mpich-3.0.2.tar.gz" > /url.txt && \ wget -i /url.txt -P /Build_WRF/src && \ for f in /Build_WRF/src/*.tar.gz; do tar -xvf "$f" -C /Build_WRF/src; done && \ unzip /Build_WRF/src/jasper-1.900.1.zip -d /Build_WRF/src ENV NPROC=$(nproc) #hdf5 RUN cd hdf5-1.12.0 && \ ./configure --prefix=/usr/local/hdf5-1.12.0 && \ make -j${NPROC} && \ make install # zlib RUN cd /Build_WRF/src/zlib-1.2.11 && \ ./configure --prefix=/usr/local make -j${NPROC} && \ make install && \ # netcdf cd /Build_WRF/src/netcdf-c-4.7.3 && \ CPPFLAGS='-fPIC' ./configure --prefix=/Build_WRF/LIBRARIES/netcdf --disable-dap RUN make -j${NPROC} && \ make install && \ cd /Build_WRF/src/netcdf-fortran-4.5.2 && \ CPPFLAGS='-fPIC' CPPFLAGS='-I/Build_WRF/LIBRARIES/netcdf/include' LDFLAGS='-L/Build_WRF/LIBRARIES/netcdf/lib' ./configure --prefix=/Build_WRF/LIBRARIES/netcdf && \ make -j${NPROC} && \ make install ENV PATH=/Build_WRF/LIBRARIES/netcdf/bin:$PATH ENV NETCDF=/Build_WRF/LIBRARIES/netcdf #libpng RUN CPPFLAGS='-I/usr/local/zlib/include' LDFLAGS='-L/usr/local/zlib/lib' /Build_WRF/src/libpng-1.6.37/configure --prefix=/Build_WRF/LIBRARIES/libpng && \ /Build_WRF/src/libpng-1.6.37/make && \ /Build_WRF/src/libpng-1.6.37/make install ENV LD_LIBRARY_PATH=/Build_WRF/LIBRARIES/libpng/lib:$LD_LIBRARY_PATH #jasper RUN /Build_WRF/src/jasper-1.900.1/configure --prefix=/Build_WRF/LIBRARIES/grib2 && \ /Build_WRF/src/jasper-1.900.1/make && \ /Build_WRF/src/jasper-1.900.1/make install ENV PATH=/Build_WRF/LIBRARIES/jasper/bin:$PATH ENV LD_LIBRARY_PATH=/Build_WRF/LIBRARIES/jasper/lib64:$LD_LIBRARY_PATH #WRF_isc21 RUN git clone https://github.com/wrf-model/WRF /Build_WRF/WRF_ISC21 ENV NETCDF=$NETCDF_DIR ENV WRFIO_NCD_LARGE_FILE_SUPPORT=1 ENV NETCDF_classic=1 RUN /Build_WRF/WRF_ISC21/configure # mpich ``` #### tags : `WRF`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up