Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2010-01-19 17:35:55

BrendaEM
Member
Registered: 2009-06-22
Posts: 9

Code Aster Installation on Ubuntu 9.10-64

Hi, I hope this helps. It should be pretty close, but it's still a work in progress.

0.) Backed up you system lately?

1.) Start Synaptic package manager, find and install the following, and then exit:
g++
liblapack
libblas
zlib1g-dev (and dbg?)
python-numpy (Thanks: http://www.code-aster.org/forum2/viewto … ?id=13286)
python-numeric (Thanks: JMB365 http://www.code-aster.org/forum2/viewto … ?id=13587)
python 2.6-dev (Supplies Headers to fix the .h problem , Thanks: http://ubuntuforums.org/showthread.php?t=384729)
python-Qt4 (Needed for EficasQt)
python-Tk (May only be needed for EficasTk which anyway segfaults anyway, or perhaps ASTIK)

WIP: alternatively, you make be to grab them all with this command: sudo apt-get install g++ zlib1g-dev liblapack-dev libblas-dev python-numeric python2.6-dev python-qt4 python-tk

2.) Add libg2c from older repositories by doing this, but:
BE FORWARNED: This will slightly pollute your system, but as long as you comment-out the source after, the system should update without errors.
(Thanks: http://www.caelinux.org/wiki/index.php/ … lproblems)
(Note:Wondering if the x64 versions are different?)

Make a backup copy of your /etc/apt/sources.list
and then: sudo gedit /etc/apt/sources.list
Add this line: deb http://nl.archive.ubuntu.com/ubuntu hardy-updates main universe
Save this file sources.list

Start Synaptic package manager, again.
Update Synaptic.
Search for libg2c0
Select and Install:
libg2c0
libg2c0-dev
   
WARNING/NOTE: After you are done, remove (or comment-out) the line you added line in the /etc/apt/sources.list with gedit, to prevent different versions of the OS to collide.

3.) Extract all of aster-full-src-10.1.0 to your home folder (may work elsewhere, I hope, someday, perhaps now?)

4.) Gedit aster-full-src-10.1.0/setup.cfg to set the variable to where you want it installed:
(The python script will create the target/destination folder for you)
ASTER_ROOT='/home/username/aster'

5.) Substitute Metis 5
Metis 4.0 did not compile for me. Yes, there is a Metis 4.1 from EDF, but the installer still complains if Metis 4.0 isn't built and installed.
(Metis found in Salome 5.1.2 Universal Linux binaries should also work as-is: http://www.salome-platform.org/downloads/salome-v5.1.3
Thanks for checking: benji64)

Or do what I did:
Download Metis 5-pre2 or better/newer from: http://glaros.dtc.umn.edu/gkhome/metis/metis/download
Copy metis-5.0pre2.tar.gz to aster-full-src-10.1.0/SRC
gedit aster-full-src-10.1.0/products_versions.py
Change the metis (not the metis-edf) to read the version you downloaded to read: 'metis': '5.0pre2',
Save the product version file.

Then compile everything using:
python setup.py install --prefix=/home/username
...where username is your home folder.

This looks promising?

Lancement des cas tests

... Cas test : med_3d_tet_tri_d2_man
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
..... Cas test pass avec succs.

... Cas test : mix_qua_tri_d1_equ
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : qua_2d_24x36_d2
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : sfr_mix_2d_zzzz121d_d1
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : hex_3x3_d1
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
..... Cas test pass avec succs.

... Cas test : med_2d_6xtri_d2
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : mix_3d_d2
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
....... Adaptation du maillage numro 03 vers le maillage numro 04
..... Cas test pass avec succs.

... Cas test : sau_qua_tri_d1
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
....... Adaptation du maillage numro 03 vers le maillage numro 04
..... Cas test pass avec succs.

... Cas test : pen_d1
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : sfr_2d_att_rugby_qua
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
..... Cas test pass avec succs.

... Cas test : med_2d_carre_d1
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
..... Cas test pass avec succs.

... Cas test : hex_d2
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
..... Cas test pass avec succs.

... Cas test : med_3d_cube_d2_fig
....... Adaptation du maillage numro 00 vers le maillage numro 01
....... Adaptation du maillage numro 01 vers le maillage numro 02
....... Adaptation du maillage numro 02 vers le maillage numro 03
....... Adaptation du maillage numro 03 vers le maillage numro 04
....... Adaptation du maillage numro 04 vers le maillage numro 05
..... Cas test pass avec succs.
..... Cas test pass avec succs.

L'installation est russie.

Now, I have to learn how to run it outside Salome.

Last edited by BrendaEM (2010-03-11 00:31:11)

Offline

#2 2010-01-19 18:21:29

cacciatorino
Member
From: Porto Recanati, Italy
Registered: 2008-11-05
Posts: 749

Re: Code Aster Installation on Ubuntu 9.10-64

python setup.py install --prefix=/home/username
...where username is your home folder.

Did you try to execute the installer by means of sudo?

Now, I have to learn how to run it outside Salome.

This is quit simple, just a few steps more than inside Salome-Meca:

1) When the work on the mesh is complete, export the mesh to "MED" file (pay attention if you are using Salome 5.1.3: unmark the checkbox "create groups" in the export window).
If you created the groups when in geometry, you need to generate them on the mesh too! From this point of view things are different if compared to Salome-Meca, there is not an automation that creates groups on the mesh from the ones on geometry.

2) Open Eficas and create your comm file. Eficas can be started by /opt/aster/outils/eficas, or wherever you installed Aster. You can start form an old comm file created by salome-meca, just to learn.

3) Open ASTK : /opt/aster/bin/astk
ASTK is the GUI to access to Code-Aster: here you define input/output files and parameters for the caluclation (mainly memory and time allowed to be used by Aster). Go to see this message:
http://www.code-aster.org/forum2/attach … ?item=2779
for an example of what to write in the fileds.
After the parameters are given to ASTK, press "Run".

4) Once the calculation is finished, you will find the mesh of the results in your working directory. Go-back to Salome, switch to post-pro and import the mesh of the results.

Offline

#3 2010-01-21 21:12:17

benji64
Member
From: Tarbes
Registered: 2009-11-30
Posts: 52

Re: Code Aster Installation on Ubuntu 9.10-64

Hi,

BrendaEM wrote:

2.) Add libg2c from older repositories

personally I didn't installed libg2c and everything compiled well. Someone knows want this library is than for? will I have problems when I run some specific calculations?

In addition, about Metis compilation, I also had problems. It seems that Metis 4.0 and Mumps 4.8.4 did not compile because of an error (the same). Something like "proto.h : previous declaration of '__log2' ". Means that the function __log2 is already defined and proto.h try to define it again, as a different function. To solve this issue, here is want I've done :

1) extract metis-4.0.tar.gz package (in the SRC/ subdirectory)
2) find proto.h file (somewhere in lib/ subdirectory but I'm not sure)
3) edit proto.h and add the line

#define __log2 __Log2

at the top of the file
4) repack metis-4.0.tar.gz WITH THE SAME NAME.
5) replaced the old metis-4.0.tar.gz by the modified one in SRC/ directory

I applied the same modification to mumps-4.8.4.tar.gz package and everything compiled just well.

Bye

Offline

#4 2010-01-21 21:17:06

benji64
Member
From: Tarbes
Registered: 2009-11-30
Posts: 52

Re: Code Aster Installation on Ubuntu 9.10-64

BrendaEM wrote:

(Perhaps the Metis found in Salome 5.1.2 Universal Linux binaries might work as-is: http://www.salome-platform.org/downloads/salome-v5.1.3, or perhaps the 4.1 would work)

I do confirm, it works! it is the salome 5.1.3 version. Just unpack and launch. Both 32 and 64 bits works (I installed them on different servers with kubuntu karmic 9.10)

Offline

#5 2010-01-29 02:33:49

BrendaEM
Member
Registered: 2009-06-22
Posts: 9

Re: Code Aster Installation on Ubuntu 9.10-64

I added other depends above to get EficasQt, and try to get EficasTk going, but for me, eficasTk segfaults with:
./eficasTk: line 2:  2743 Segmentation fault

EficasQt launches, but in French
Astk launches, and the solver seems to be running....

Last edited by BrendaEM (2010-01-29 03:43:17)

Offline

#6 2010-01-29 15:17:07

BrendaEM
Member
Registered: 2009-06-22
Posts: 9

Re: Code Aster Installation on Ubuntu 9.10-64

I want to report--it works!

I had some issues with not getting the results mesh, and then I learned you have to specify it in ASTIK.

If anyone besides me has not ran this manually:
On the study tab, the left side specifies the input files, which Salome Meca has been doing for us behind the scenes. For the moment, I used Salome Meca's names.

Set the base path to where your project is.

The "Type" drop downs do what you think they do, in specifying which file types are hooked up to the paths in the "Name" field. Of the right hand icons, I use the create mostly, and paste in the fields, as sometimes the folder selector, it does not do what I want. Here is a informal rundown of the file types:

mmed - your input mesh file made from Salome
comm - your aster command file, should work from Salome meca (as Cacciatorino has stated, thanks : )
rmed - name your output/result mesh file, must be specified or you will have no results--Brenda!
base - name an empty folder you create, not a file, for work files.
resu - name a log file.
erre- name an error file
mess - message file, which is quite verbose

I also had to tweak my server settings, putting in a path.

Last edited by BrendaEM (2010-01-29 15:17:34)


Attachments:
astik.png, Size: 25.75 KiB, Downloads: 554

Offline

#7 2010-03-11 00:29:36

BrendaEM
Member
Registered: 2009-06-22
Posts: 9

Re: Code Aster Installation on Ubuntu 9.10-64

Added apt-get line, above

Offline

#8 2010-04-08 10:31:22

gwen.cyber
Member
Registered: 2010-04-08
Posts: 5

Re: Code Aster Installation on Ubuntu 9.10-64

Good morning gents,

I've installed a complete distribution ubuntu 9.10 64 from CD, and followed each step.

The first time code aster failed, due to the lack of gfortran package, after a synaptic install, i did it a new time.

I've encountered this error

Installation of   : mumps 4.8.4
Destination       : /home/gwen/public/mumps-4.8.4
Elapsed time      : 168.59 s
                                                                     
*** Exception <class 'as_setup.SetupMakeError'> raised : error during compilation
See detailed traceback in the logfile
                                                                       [FAILED]

May it is due to my one core processor (i do the install test on before to install on desktop pc....)

Anyway i test to launch efficas, and it works. But astk doesn't start, the same for efficasTK. As soon as the terminal begins that it is closed.
When i launch astk by terminal :
gwen@gwen-laptop-001:~/bin$ astk
gwen@gwen-laptop-001:~/bin$ <INFO> ASTK version 1.8.0

and the massage is:
<INFO> Domain name not defined for localhost.Remote amchine couldn't contact localhost.Fill the domain though Configuration/Interface menu

and after cilck OK, astk begins.

Thanks.

Gwen


Attachments:
Code aster_summary of installation, Size: 3.4 KiB, Downloads: 723

Offline

#9 2010-04-08 10:39:27

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,171

Re: Code Aster Installation on Ubuntu 9.10-64

Hello,

There is no relevant information in the final summary of the installation !
Please post the file setup.log (+setup.dbg is better).

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#10 2010-04-08 21:29:34

gwen.cyber
Member
Registered: 2010-04-08
Posts: 5

Re: Code Aster Installation on Ubuntu 9.10-64

Good evening gents,

Thanks for the answer, and sorry to be so late.

I send you the files (for the both, i've created a tar.gz archive)

Many thanks for your help


Attachments:
steup_dbg-&-log.tar.gz, Size: 338.73 KiB, Downloads: 650

Offline

#11 2010-04-09 08:48:27

mathieu.courtois
Administrator
From: France
Registered: 2007-11-21
Posts: 1,171

Re: Code Aster Installation on Ubuntu 9.10-64

Hmm... you changes the package and you have an error... it's not very surprising !
At least you could tell you it !

1. mumps waits for a libmetis which have not been created using the metis package you provided.
2. I don't know if mumps works with these metis version.

MC


Code_Aster release : last unstable on Ubuntu 16.04 64 bits - GNU Compilers

Please do not forget to tag your first post as *SOLVED* when it is!

Offline

#12 2010-04-09 17:08:03

gwen.cyber
Member
Registered: 2010-04-08
Posts: 5

Re: Code Aster Installation on Ubuntu 9.10-64

Many thanks for the answers.

It is some times complicated to understand all log files explanations...

I test a new complete installation (in order to avoid "package changes errors"...), and test with required packages (like benji64 done).

I use this metis release because BrendaEM posted the install with. And she seems have no problem.

Best regards

Gwen

Offline