Install the latest version of ESyS-Particle on ubuntu-20.04
- Keywords:
- installation
- Last updated by:
- Dion Weatherley
These instructions describe how to install the latest version of ESyS-Particle on Ubuntu-20.04 and variants. This only works for ESyS-Particle rev. 1218 and later.
Step 1: Install all mandatory dependencies:
=======
Open a terminal and execute the following commands (omit the '$' symbol; this denotes the terminal prompt):
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install libtool automake build-essential bzr cmake
$ sudo apt install mpi-default-bin mpi-default-dev libboost-all-dev
$ sudo apt install python-is-python3
Step 2: Download the ESyS-Particle source code:
=======
$ mkdir -p ~/src/ESyS-Particle
$ cd ~/src/ESyS-Particle
$ bzr branch lp:esys-particle esys-particle-trunk
$ cd esys-particle-trunk
Step 3: Compile and install ESyS-Particle:
=======
EITHER:
Compile and install using cmake build system (Recommended)
$ mkdir -p ~/build/
$ cd ~/build/
$ cmake -S ~/src/ESyS-
$ make
$ sudo make install
OR:
Compile and install using autotools build system (Deprecated)
$ sh autogen.sh
For Ubuntu-20.04:
$ sudo ln -s /usr/lib/
OR, for Ubuntu-21.10, first find the latest version of the libboost_python library:
$ ls /usr/lib/
and copy the full library name, then create the symbolic link:
$ sudo ln -s /usr/lib/
For all Ubuntu versions:
$ ./configure CC=mpicc CXX=mpic++
$ make
$ sudo make install
Step 4: Set up environment variables:
=======
$ export PATH=/usr/
$ export LIBRARY_
$ export LD_LIBRARY_
$ export PYTHONPATH=
[To make these changes permanent, append these 'export' commands to the end of ~/.bashrc file; omitting the '$' symbols]
Step 5: Test the installation:
=======
Issue the following commands to test whether ESyS-Particle is installed correctly:
$ mkdir ~/scratch
$ cd ~/scratch
$ mpirun -np 2 esysparticle ~/src/ESyS-
If this test case runs correctly, you should see the following output in the terminal:
CSubLatticeCont
slave started at local/global rank 0 / 1
A directory listing should look similar to this:
$ ls
data.csv
snapshot_t=0_0.txt
snapshot_t=0_1.txt
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
snapshot_
The first ten lines of 'data.csv' should look similar to this:
$ head data.csv
0 -0.074950 0.000000 0.000000 0.029370 0.000000 0.000000
1 -0.074900 0.000000 0.000000 0.029320 0.000000 0.000000
2 -0.074850 0.000000 0.000000 0.029270 0.000000 0.000000
3 -0.074800 0.000000 0.000000 0.029220 0.000000 0.000000
4 -0.074750 0.000000 0.000000 0.029170 0.000000 0.000000
5 -0.074700 0.000000 0.000000 0.029120 0.000000 0.000000
6 -0.074650 0.000000 0.000000 0.029070 0.000000 0.000000
7 -0.074600 0.000000 0.000000 0.029020 0.000000 0.000000
8 -0.074550 0.000000 0.000000 0.028970 0.000000 0.000000
9 -0.074500 0.000000 0.000000 0.028920 0.000000 0.000000
If you receive error messages during this test, please search the User Forum for similar errors:
https:/
If you cannot find a solution, post a new question to the User Forum, containing the text of the error messages, an explanation of the installation process, and the operating system version you used.