Installation of Code_Saturne 3.0.3 and Salome 7.3.0

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
c.jauselabert

Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hello everyone,

I have been struggling a lot to install Code_Saturne coupled with Salome, reading the forum and anything I could find but I believe I really need some help.

It might be classical issues but I am not able to solve them.

I am trying to install Salome 7.3.0 with Code_Saturne 3.0.3, on a clean Ubuntu 13.10 (64 bits) distribution.

I have been able to install Salome with the GUI Wizard and I have problems with installing Code_Saturne so that it can be included in Salome thanks to CFDStudy.

I believe all went well during the installation of Salome and I am trying to install Code_Saturne by typing the following command, /usr/local/apps/SALOME being the installation sirectory of Salome 7.3.0 :

Code: Select all

./configure \
--prefix=/usr/local/apps/Code_Saturne.3.0.3 \
--with-libxml2=/usr/local/apps/SALOME/libxml2-2.9.0 \
--with-libxml2-include=/usr/local/apps/SALOME/libxml2-2.9.0/include \
--with-libxml2-lib=/usr/local/apps/SALOME/libxml2-2.9.0/lib \
--with-metis=/usr/local/apps/SALOME/metis-4.0 \
--with-metis-include=/usr/local/apps/SALOME/metis-4.0/include \
--with-metis-lib=/usr/local/apps/SALOME/metis-4.0/lib \
--with-scotch=/usr/local/apps/SALOME/scotch-5.1.11 \
--with-scotch-lib=/usr/local/apps/SALOME/scotch-5.1.11/lib \
--with-scotch-include=/usr/local/apps/SALOME/scotch-5.1.11/include \
--with-hdf5=/usr/local/apps/SALOME/hdf5-1.8.10 \
--with-hdf5-include=/usr/local/apps/SALOME/hdf5-1.8.10/include \
--with-hdf5-lib=/usr/local/apps/SALOME/hdf5-1.8.10/lib \
--with-cgns=/usr/local/apps/SALOME/cgnslib-3.1.3 \
--with-cgns-lib=/usr/local/apps/SALOME/cgnslib-3.1.3/lib \
--with-cgns-include=/usr/local/apps/SALOME/cgnslib-3.1.3/include \
--with-med=/usr/local/apps/SALOME/med-3.0.7 \
--with-med-lib=/usr/local/apps/SALOME/med-3.0.7/lib \
--with-med-include=/usr/local/apps/SALOME/med-3.0.7/include \
--with-salome=/usr/local/apps/SALOME \
--with-salome-kernel=/usr/local/apps/SALOME/KERNEL_7.3.0 \
--with-salome-gui=/usr/local/apps/SALOME/GUI_7.3.0 \
--with-salome-yacs=/usr/local/apps/SALOME/YACS_7.3.0 \
--with-salome-med=/usr/local/apps/SALOME/MED_7.3.0
However, I get the error message :

Code: Select all

configure: error: in `/home/jause/Downloads/code_saturne-3.0.3':
configure: error: SALOME support is requested, but test for SALOME failed!
If it can be helpful, here is attached my 'config.log' file

How can I overcome this issue?

Another question is relative to the use of Syrthes? Do I need to install Aster to make it work or can I just couple Code_Saturne and Syrthes, if I just want to compute heat propagation in fluid and solids, and no mechanical dynamics?
In fact, if I need Aster, I would rather install Salome Meca, right?

Thank a lot for answering all my questions.

Clément JAUSE-LABERT
Attachments
config.log
config.log
(141.05 KiB) Downloaded 286 times
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by Yvan Fournier »

Hello,

You need to build the code outside the source directory, as explained in the installation documentation. This is essential especially when building with SALOME (i.e. it might or might not work in other cases, and is known to fail when using --with-salome).

In general, it is good practice to build packages outside their source tree (whether based on the GNU autotools, such as Code_Saturne, or CMake, or anything else. Unfortunately, many other packages have badly written build scripts, and you may find more examples of in-source builds than cleaner out-of-tree builds (which do not pollute the source tree, and allow side-by-side builds).
But the Code_Saturne install doc explicitely requires out-of-tree builds, as do some much better known packages (such as gcc).

In addition, there is no reason to separately specify --with-<package>-libs and --with-<package>-includes in addition to --with-<package> when a given package has a standard directory layout (bin, include, lib, share, ... under main directory).

Finally, --with-salome includes all other options, so unless you need finer control, please use only and no other --with-salome-<suboption> options, though you can use --without-... to deactive a specific subset (for Salome 7.3 with Code_Saturne 3.0.3, you'l need --without-salome-med, though that won't be required with 3.0.4).

So you options should be:
<code_saturne_source_dir>/configure \
--prefix=/usr/local/apps/Code_Saturne.3.0.3 \
--with-libxml2=/usr/local/apps/SALOME/libxml2-2.9.0 \
--with-metis=/usr/local/apps/SALOME/metis-4.0 \
--with-scotch=/usr/local/apps/SALOME/scotch-5.1.11 \
--with-hdf5=/usr/local/apps/SALOME/hdf5-1.8.10 \
--with-cgns=/usr/local/apps/SALOME/cgnslib-3.1.3 \
--with-med=/usr/local/apps/SALOME/med-3.0.7 \
--with-salome=/usr/local/apps/SALOME \
--without-salome-med
And no, there is no reason you would need Code_Aster to couple Code_Saturne and SYRTHES. Coupling of Code_Saturne and Code_Aster requires SALOME, but coupling of Code_Saturne and SYRTHES is standalone, and only requires building both codes with MPI support (and telling the SYRTHES install script where Code_Saturne or its PLE library is installed.

Regards,

Yvan
c.jauselabert

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hello Yvan,

Thank you so much for your very fast answer!!

However, I tried to compile using your recommendations (i.e. creating a build directory and launching the compile command you proposed in it) and got the exact same error message!! :?
Can it be a problem of installation of Salome?

Is there something else I need to check?

Thanks a lot.

Regards,

Clément JAUSE-LABERT
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by Yvan Fournier »

Hello,

I doubt it is the installation of SALOME, unless you are not using the common binaries, so to see what is wrong, I would need to see your config.log and config.status files (you may need to rename them, adding a .txt extension, or put them in a tar.gz archive to upload them).

Also, you may have remaining traces from your initial (in-source) build, so you need either to run "make distclean" in the sources, or to destroy that directory and rebuild it from a clean archive.
If you have already done this, config.log and config.status.

Best Regards,

Yvan
c.jauselabert

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hello Yvan,

In the build directory, I only have a config.log file. It is attached but I don't find any config.status.

Thanks again for the help.

Regards,

Clément
Attachments
config.log
Saturne installation : config.log file
(142.46 KiB) Downloaded 291 times
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by Yvan Fournier »

Hello,

You config.log ends with :
configure: exit 1

which means it ended in error (in case of success, the code is exit 0).
This explains why you have no config.status, and the rest fails.

What messages do you have in the terminal in which you rand configure (it will help me know where to look for a problem, as the most error messages might be in the middle of config.log, not at the end...) ?

Best regards,

Yvan
c.jauselabert

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hello,

You will find attached the output of the configure command (output.txt).

The main warning/error messages are the following :

Code: Select all

configure: WARNING: no BLAS support
configure: WARNING: METIS header not found or usable
configure: WARNING: do not use METIS
configure: WARNING: no MED file MPI support
configure: WARNING: no gzipped file support
configure: error: in `/home/jause/Downloads/code_saturne-3.0.3_build':
configure: error: SALOME support is requested, but test for SALOME failed!
See `config.log' for more details
Hope it will help you help me ;-)

Thanks again!!

Regards,

Clément
Attachments
output.txt
(7.85 KiB) Downloaded 278 times
Yvan Fournier
Posts: 4079
Joined: Mon Feb 20, 2012 3:25 pm

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by Yvan Fournier »

Hello,

Here it is:
../code_saturne-3.0.3/configure: line 1930: g++: command not found
So you need to install the g++ compiler. Using your distribution's package manager is the simplest way.

Regards,

Yvan
c.jauselabert

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hi Yvan,

I'm sorry to have made you lost your time with such a simple issue!!!

Anyway,I managed to install properly code Saturne and the command

Code: Select all

code_saturne salome
now works fine.

I'll now be installing Syrthes and hope the coupling will work. Let's hope I won't bother you again with my rookie's questions.

Thanks again.

Best regards,

Clément
c.jauselabert

Re: Installation of Code_Saturne 3.0.3 and Salome 7.3.0

Post by c.jauselabert »

Hi everyone,

I tried to launch the computation of the tutorial "Turbulent mixing in a T-junction with CFDSTUDY in SALOME".

I get the errors written in the joined file error.txt

Do you have any clue about this problem?

Thank you again.

Regards,

Clément JAUSE-LABERT
Attachments
error.txt
(1.33 KiB) Downloaded 274 times
Post Reply