Share experience: compilation procedure (Ubuntu 20.04)

Discussion about building and installing Elmer
Post Reply
gforti
Posts: 3
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Share experience: compilation procedure (Ubuntu 20.04)

Post by gforti »

Hello all, I wish to share my installation procedure. After reading a few topics and watching videos, I've come to the following steps.
PS.: I'm using an Ubuntu 20.04 based distro (ElementaryOS 6.1) and did this because the launchpad procedure is stuck in Elmer 8.4 / Ubuntu 20.04 versions.

Please check the referentes below to install all the required dependencies before.

Compiling Elmer (elmer.cmake is attached here)

From $HOME//Source folder (I don't know now if this /Source folder already existed in my Home directory), clone the git files:

Code: Select all

git clone https://github.com/ElmerCSC/elmerfem.git

The compilation file is already created (copy elmer.cmake to /source folder)
After that:

Code: Select all

mkdir build

Code: Select all

cd build/

Code: Select all

cmake -C ../elmer.cmake ../elmerfem/ -DCMAKE_INSTALL_PREFIX=$HOME/ProgramFiles/Elmer

Code: Select all

make -j 8

Code: Select all

make -j 8 install
The option `8` here is because my computer has 8 processing units (run the command nproc in the terminal).

Code: Select all

sudo nano ~/.bashrc
In the basrch, add the following lines:
export PATH="$PATH:$HOME/ProgramFiles/Elmer/bin/"
export ELMER_HOME=$HOME/ProgramFiles/Elmer

The second line was added to solve an error: ERROR:: InitializeElementDescriptions: elements.def not found

References:
https://github.com/ElmerCSC/elmerfem
https://www.youtube.com/watch?v=OZ2Lvk-hEkc
https://github.com/ElmerCSC/elmerfem-do ... u-focal-eg
Attachments
ElmerCompile.zip
(958 Bytes) Downloaded 1 time
Post Reply