how to compile elmerfem under Ubuntu 16.04 LTS

Discussion about building and installing Elmer
Post Reply
AlfredBerger
Posts: 12
Joined: 07 Apr 2017, 13:05
Antispam: Yes

how to compile elmerfem under Ubuntu 16.04 LTS

Post by AlfredBerger » 12 May 2017, 23:19

Dear Sirs,

I run a VM running Ubuntu 16.04 LTS with Windows as host to be able to compile Elmerfem.
Could some write down the steps in a simple way, because what I find in wiki or in the forum seems to be outdated.
kind regards,
Alfred.

annier
Posts: 1088
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Post by annier » 17 May 2017, 13:45

Hi Alfred,
Please use launchpad to install and use Elmer in Ubuntu 16.04.
viewtopic.php?f=2&t=4413&start=0&sid=8e ... 456b5da4d8

Yours Sincerely,
Anil Kunwar

drtspc
Posts: 13
Joined: 23 May 2013, 19:45
Antispam: Yes

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Post by drtspc » 30 May 2017, 19:25

I would like to install a new version of Elmer on Ubuntu 16.04. And would like to uninstall the version I currently have installed.

I am using a older version of Elmer (from 2013 - 6*), which I installed on Ubuntu 13.04 (vm on an early 2011 MacBook Pro). Over the years, I have installed new versions of Ubuntu, and have had to change my .bashrc to keep Elmer running.

I have been hesitant about updating, as I have bad memories of the 2013 installation process - at least the codes required by Elmer were "troublesome".

I ran across this posting/topic, and it seems to answer the installation question.

I would like to know how to uninstall the version I have installed, while keeping the materials file and project files. I can certainly back the existing files/directories up, but how aggressive is the uninstall procedure? (If there is an automated process.)

Thanks,
Tim

annier
Posts: 1088
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Post by annier » 31 May 2017, 06:07

Hi Tim,
1. If you have not installed Elmer in the system files of the computer and have set the path of the Elmer libraries in the bash file, virtually you do not need to remove elmer files. You just need to comment the elmer path in the bashrc file of Ubuntu 16.04. (In 2013 it was a lengthy process to complete files as there were no procedures such as cmake and launchpad but now with these facilities Elmer installation is very quick and easy. With Elmer, please use the fresher versions as the developers are always using newest methods and libraries.).

2. Then you install Elmer using launchpad, one post earlier than your latest post. It is a very easy procedure and will finish quickly and this will install elmer libraries in computer's system files, which can be uninstalled or reinstalled in accordance to dpkg commands in Ubuntu (later on).


Yours SIncerely,
Anil Kunwar

AlfredBerger
Posts: 12
Joined: 07 Apr 2017, 13:05
Antispam: Yes

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Post by AlfredBerger » 05 Jun 2017, 16:43

Der Sirs,
thank you for the info of how-to-install Elmer in Ubuntu 16.04.
But I am interested in how-to-compile it under Ubuntu 16.04 (I need to write a New solver).
Alfred

annier
Posts: 1088
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: how to compile elmerfem under Ubuntu 16.04 LTS

Post by annier » 06 Jun 2017, 13:33

Hi Alfred,
- I understand your aspects. Writing elmersolvers, it is readable and linked to other elmer libraries by creating shared object (so) files with elmerf90 compiler.
- Whether you install from (1) launchpad (as mentioned above in my previous post) or (2) you compile step by step as Ubuntu 16.04 installation using Cmake, the end results in case of both is the generation of Elmer executables such as ElmerSolver, ElmerGui, ElmerGrid, etc. and availability of elmerf90 wrapper/compiler. By both steps you can write Elmer Solvers/Subroutines (refer User Defined Solvers in Elmer Programer's Manual http://www.nic.funet.fi/pub/sci/physics ... torial.pdf) and compile them with elmerf90 wrapper/compiler.


Yours Sincerely,
Anil Kunwar

Post Reply