Share experience: compilation procedure

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

Share experience: compilation procedure

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 74 times
Last edited by gforti on 11 Mar 2023, 05:42, edited 1 time in total.
kevinarden
Posts: 2221
Joined: 25 Jan 2019, 01:28
Antispam: Yes

Re: Share experience: compilation procedure (Ubuntu 20.04)

Post by kevinarden »

Recently did a fresh install Linux Mint 20.3 based on UBUNTU 20.04
Installed all prerequisites
Compiled Elmer with ElmerGUI MPI Mumps LUA
Steps saved in file
compileElmer.txt
(944 Bytes) Downloaded 75 times
gforti
Posts: 68
Joined: 11 Jan 2022, 20:39
Antispam: Yes

Re: Share experience: compilation procedure (Arch BTW)

Post by gforti »

Hey guys....just wanted to share my experience with Arch. Actually a Arch based distro with easy install, EndeavourOS.

So, here we are again. From my last procedure, I just want to add the packages dependencies (which is something I would like the very good fellows of CSC to evaluate for other distros, at least the big ones, other than Ubuntu. Still, great job, great software, very fortunate for this.).

Arch dependencies:
arpack; qwt; blas; lapack; gcc-fortran; openmpi; cmake; qt5-base; qt5-svg; qt5-script; netcdf-openmpi; lua; glew; tbb; fontconfig.

(PS.: for my first try, i tried various packages considering the Ubuntu list and two AUR Elmerfem packages dependencies. For a second install, I tried to clean up but there were packages that were listed as required by other programs. So, this isn`t a clean install list.)

The cmake file was changed, please find the new one here. I could not add Mumps as the libraries are not compatible, oh good old mumps. Please come back. umfpack it is for now.
Attachments
elmer.zip
(462 Bytes) Downloaded 47 times
Post Reply