DP-Code on Ubuntu
This guide will help the user understand how to compile, install, and use DP Code on their own Ubuntu workstation. If you are using another platform, please refer to the appropriate documentation or contact Benjamin Alldritt for assistance.
Step-by-step guide
Requirements
To compile DP-Code, you will need the following software:
- Fortran compiler (gfortran)
- C compiler (GCC)
- MPI
- FFTW
- LAPACK
- BLAS
Instructions
Ubuntu 12.04 (64 bit)
Install the required packages:
sudo apt-get install gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-devDownload the latest version of the DP Code source and unpack into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/dp-code
cd ${HOME}/software/dp-code
wget http://etsf.grenoble.cnrs.fr/dp/license/download/dp-5.3.tgz
tar -xvzf dp-5.3.tar.gz
cd dp-5.3Configure DP Code for the local machine.
./configure --prefix=${HOME}/software/dp-code --with-gfortran-endianness=big --enable-mpi --with-fftw3=/usrCompile DP Code.
make
make installRun DP Code after the tests pass.
cd ${HOME}/software/dp-code
./dp
Ubuntu 14.04 (64 bit)
Install the required packages:
sudo apt-get install gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-devDownload the latest version of the DP Code source and unpack into a new directory.
mkdir ${HOME}/software
mkdir ${HOME}/software/dp-code
cd ${HOME}/software/dp-code
wget http://etsf.grenoble.cnrs.fr/dp/license/download/dp-5.3.tgz
tar -xvzf dp-5.3.tar.gz
cd dp-5.3Configure DP Code for the local machine.
./configure --prefix=${HOME}/software/dp-code --with-gfortran-endianness=big --enable-mpi --with-fftw3=/usr F90FLAGS=-cppCompile DP Code.
make
make installRun DP Code after the tests pass.
cd ${HOME}/software/dp-code
./dp
Tips & Warnings
Related articles
- Preprocessing flag issue: http://forum.wrfforum.com/viewtopic.php?f=5&t=6086
- GCC Preprocessor options: https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html
Unknown macro: contentbylabel. Click on this message for details.