How to get elmerf90-nosh installed?

Extension of Elmer in computational glaciology
Post Reply
chqiao
Posts: 2
Joined: 22 May 2015, 06:38
Antispam: Yes

How to get elmerf90-nosh installed?

Post by chqiao » 22 May 2015, 11:16

Hello everybody,
I am new to Elmer/Ice, I compiled the Elmer with Ice on ubuntu following the instructions from this page: Installing Elmer in Ubuntu 14.04 using Cmake viewtopic.php?f=2&t=3742&sid=f2a8e8a277 ... 729435c4e5. Thanks to annier. A ctest was run after the install. Among the 344 tests, only 4 tests lost, those are:16:Damage,121:RotatingBCPoisson3DGeneric, 197:ThermalActuator, 204:ParticleAdvector2. It seems that all the tests of elmerice were passed. But when I run the examples --Test_MshGlacier under elmerice folder following the instruction of README.txt by the following command:

Code: Select all

 elmerf90-nosh /home/chqiao/elmer/elmerfem/elmerice/Meshers/MshGlacier.f90 $ELMER_HOME/lib/libelmersolver.so -o MshGlacier 

The terminal prompts that:
Application “elmerf90-nosh” uninstalled now, you can install it by the following command:
sudo apt-get install libelmer-dev

If I following the command of above to install the elmer-dev, the version of this install not compatible with the elmer compiled before, will leading error when running. I found that the elmerf90 was installed by type elmerf90 and press the RETURN, but got the same message quoted above when run elmerf90-nosh in terminal.

So, how to configure the make file for the early compile of Elmer to get the elmerf90-nosh install? Is there somebody else encounter this problems? Any advice will be appreciated!
Thanks in advance.

Yours
Qiao

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

Re: How to get elmerf90-nosh installed?

Post by annier » 22 May 2015, 17:33

Hi Qiao,
I particularly have not worked in elmerice and cannot give you the relevant suggestion on it. Hope someone can suggest you on elmerf90-nosh compiler, when installing elmer via cmake.

There are two ways you can try ahead:
1. Installing Elmer in Ubuntu 14.04 using Cmake via Elmer/Ice branch in github:
-In step 2) of the link viewtopic.php?f=2&t=3742
You can use
Cloning to Elmer/Ice branch

Code: Select all

$git clone https://github.com/ElmerCSC/elmerfem/tree/elmerice
instead of

Code: Select all

$git clone https://www.github.com/ElmerCSC/elmerfem
and install using the same method described in the link.
For more information, viewtopic.php?f=21&t=3853

Also, before reinstalling Elmer via Cmake, please delete the Build and Install directories, so that everything is installed fresh again.

2. Installing Elmer via Launchpad:
if you are using Ubuntu 14.04, you can install Elmer using launchpad and run the same example using elmerf90-nosh compiler.
Steps:
A. Making the Elmer Installed Via Cmake passive for a while

Code: Select all

$gedit ~/.bashrc
And, put # in front of the Environmental Variable for Elmer

Code: Select all

#export ELMER_HOME=$HOME/elmer/install/
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ELMER_HOME/lib
#export PATH=$PATH:$ELMER_HOME/bin
B. Install Elmer via launchpad in Ubuntu
a. First add ppa repository of elmer

Code: Select all

$ sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
b. Get update

Code: Select all

$ sudo apt-get update
c. Install elmer

Code: Select all

$ sudo apt-get install elmerfem-csc
More information
viewtopic.php?f=11&t=3725
viewtopic.php?f=2&t=3653&p=12260&sid=73 ... e3e#p12260


Then you can report the test result after doing this.

Yours Sincerely
Anil Kunwar

raback
Site Admin
Posts: 3230
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: How to get elmerf90-nosh installed?

Post by raback » 23 May 2015, 15:11

Hi

I wonder what elmerf90-nosh does differently than elmerf90? I remember vaguely of such macro but I don't remember it being used in many years.

-Peter

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

Re: How to get elmerf90-nosh installed?

Post by annier » 24 May 2015, 10:06

Hi Peter and Qiao,
I have tried to find out that MshGlacier.F90 can be compiled with elmerf90 compiler.
So, the code for compilation would be like- simply jumping into the directory containing MshGlacier.F90 and typing:

Code: Select all

$elmerf90 MshGlacier.F90 -o MshGlacier.so


Yours Sincerely
Anil Kunwar

chqiao
Posts: 2
Joined: 22 May 2015, 06:38
Antispam: Yes

Re: How to get elmerf90-nosh installed?

Post by chqiao » 27 May 2015, 06:11

Hi Anil,
Thank you so much for your detailed instructions. I have days absence since the post, because my ubuntu has login problems, now I came back with the ubuntu reinstalled.
I will take a try following your instructions. Thanks again!


Yours Sincerely
Qiao

Post Reply