Problem starting the Graphical Inteface of Saturne

  • Alex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 10 months ago #2900 by Alex
Hi Forum,

I Finally managed to compile Code Saturne 1.4b in my Debian 5.0 amd64.

Started with a short tutorial on how to compile it, www.caelinux.org/wiki/index.php?title=Co...ne&printable=yes, teake it a bit in order to get a successful ( ? ) build, and think that i finally managed.

Anyway, in the created case, when i type ./SaturneGUI, I get this strange message...:

alex@iskandhar:~$ /home/alex/TEST/CASE1/DATA/SaturneGUI

Error: Unable to import PyQt4.QtCore or PyQt4.QtGui modules.
Please check your PyQt4 installation.


Seems that i still have e bit to tweak if i want Saturne to work properly... can you please, sombody in this forum, help me on this...?

I attach a file of the resume of my build, in case something may have gone wrong...<br /><br />Post edited by: Alex, at: 2009/05/18 04:45
Attachments:

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2902 by Claus
This might be a silly question since I'm not a programmer; but you have installed python-qt4 and python-qt4-common?

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

  • Alex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 10 months ago #2905 by Alex
Duuuuuuhhhh.... :-)

You were right.... :-) sometimes the most obvious eludes anyone...

But now ther is a different kind of error :

alex@iskandhar:~$ SaturneGUI
python: can't open file 'NOMCSGUIHOME/ics': [Errno 2] No such file or directory

in my .bashrc i have :

###################################################################################
#### Code Saturne
. /usr/local/code_saturne/Noyau/ncs-1.4.0/bin/cs_profile
###################################################################################


my cs_profile is :

# Architecture
NOM_ARCH=`uname -s`
if [ &quot;$NOM_ARCH&quot; = &quot;Linux&quot; ] ; then
if [ &quot;`domainname 2&gt;/dev/null`&quot; = &quot;cluster-chatou&quot; ] ; then
NOM_ARCH=Linux_Ch
elif [ -d /bgl/BlueLight/ppcfloor ] ; then
NOM_ARCH=Blue_Gene_L
elif [ -d /bgsys/drivers/ppcfloor ] ; then
NOM_ARCH=Blue_Gene_P
else
MACHINE=`uname -m`
case &quot;$MACHINE&quot; in
*86) NOM_ARCH=Linux ;;
x86_64) NOM_ARCH=Linux_x86_64 ;;
ia64) NOM_ARCH=Linux_IA64 ;;
*) NOM_ARCH=Linux_$MACHINE ;;
esac
fi
fi

# Code_Saturne version

if [ &quot;$NOM_ARCH&quot; = &quot;Linux_IA64&quot; ] ; then
CS_ROOT=/usr/local/code_saturne
elif [ &quot;$NOM_ARCH&quot; = &quot;Blue_Gene_L&quot; ] ; then
CS_ROOT=/usr/local/code_saturne
elif [ &quot;$NOM_ARCH&quot; = &quot;Blue_Gene_P&quot; ] ; then
CS_ROOT=/usr/local/code_saturne
else
CS_ROOT=/usr/local/code_saturne
fi
#
CS_HOME=${CS_ROOT}/Noyau/ncs-1.4.0
CSPP_HOME=${CS_ROOT}/Enveloppe/ecs-1.4.0
CSGUI_HOME=${CS_ROOT}/Interface/ics-1.4.0
SYRCS_HOME=${CS_ROOT}/opt/syr_cs-2.2.0
#
if [ &quot;$NOM_ARCH&quot; = &quot;Linux&quot; -a -d /home/prevalcs/HOMARD ] ; then
CSHOMARD_HOME=/home/prevalcs/HOMARD
else
CSHOMARD_HOME=
fi
#
# Path
PATH=$CS_HOME/bin:$PATH

# Export environment variables
export NOM_ARCH CS_ROOT CS_HOME CSPP_HOME CSGUI_HOME
export SYRCS_HOME CSHOMARD_HOME
export PATH


and my Install/setup is :

#
# Architecture Name
#
#nom_arch Linux &lt;- for specific architecture
#nom_arch &lt;- leave empty for automatic default
# value (based on uname)
nom_arch Linux_x86_64
#
#
# C compiler
#
compC gcc
#
#
# Fortran compiler
#
compF gfortran
#
#
# Language
# default: &quot;EN&quot; english
# others: &quot;FR&quot; french
#
language EN
#
#
# Name Path LibName Use Install
#
#
#
# Python is mandatory to launch the Graphical User
# Interface. It has to be compiled with Tcl/Tk/Tix
# support.
#
# It is highly recommended to use the Python provided
# by the distribution and to install Tcl/Tk/Tix through
# the package manager if needed. The user can test if
# the installation process has been correctly done by
# typing in a Python prompt &quot;import Tix&quot;
#
# The following setup line will usually not be changed
# except if the user has installed his proper Python.
#
#
python /usr python yes no
#
#
# This package allows for hardware-optimized BLAS
# (Basic Linear Algebra Subroutines). If no system
# BLAS is used, we revert to an internal BLAS
# emulation, which may be somewhat slower.
#
# ATLAS (or another BLAS) should be available for most
# platforms through the package manager.
#
# Otherwise, only ATLAS installation on 32 bit systems
# is currently handled by this script.
#
# If using the Intel or IBM compilers, IMKL or ESSL
# may be used in place of ATLAS respectively.
# If so, Code_Saturne Kernel installation must be
# done manually.
#
#
blas None atlas-3.8.2 no no
#
#
# Optional packages:
#
# MED / HDF5 For MED file format support
# (used by Salome and now by Gmsh)
#
# CGNS For CGNS file support
# (used by many meshers)
#
# Open MPI (or MPICH2) + Metis
#
# For massively parallel architectures, it is
# recommended to use the system's default
# MPI library.
#
# If Open MPI is not chosen as the MPI
# distribution for the code, Code_Saturne
# Kernel has to be installed manually.
#
# For Linux workstations, MPI, HDF5, and even
# MED packages may be available through the
# package manager. HDF5 is also often
# available on large systems such as
# IBM Blue Gene or Cray XT.
#
# Metis is more rarely found in Linux
# distributions, but may already be
# installed on massively parallel machines
# and on clusters. For good parallel
# performance, it is highly recommended.
# For meshes larger than 15 million cells,
# Metis 5.0 beta is recommended, as Metis 4
# may fail above the 20-35 million cells.
#
# If Metis 5.0 is chosen, its installation
# must be done manually.
#
#
metis None metis-4.0 no no
mpi None openmpi-1.2.8 no no
cgns None cgns-2.5.3 no no
hdf None hdf5-1.6.7 no no
med None med-2.3.4 no no
#
#
# Code_Saturne kernel and module libraries
#
#
bft /usr/local/code_saturne/opt/bft-1.0.8/arch/Linux_x86_64 bft-1.0.8 yes no
fvm /usr/local/code_saturne/opt/fvm-0.12.0/arch/Linux_x86_64 fvm-0.12.0 yes no
ecs /usr/local/code_saturne/Enveloppe/ecs-1.4.0/arch/Linux_x86_64 ecs-1.4.0 yes no
ics /usr/local/code_saturne/Interface/ics-1.4.0 ics-1.4.0 yes no
ncs /usr/local/code_saturne/Noyau/ncs-1.4.0/arch/Linux_x86_64 ncs-1.4.0 yes no
#
#
# Optional coupling with the SYRTHES thermal code
# Only the installation of syr_cs is proposed.
#
#
syr_cs None syr_cs-2.2.0 no no
syrthes None syrthes3.4.2 no no


Is there any way for me to test if my Code Saturne install is functional...?

I wanted to compile this from sources as well as I did with code Aster ( although i did not manage to compile it with the Intel Compilers.. that thing with the Intel 11 compilers icc and ifort with the LANG environment in Debian OS... :-( )and Syrthes for my amd 64 architecture, since i plan to use this in real BIG problems, meaning 64 bit pointers to access BIG memory...

This is why I would like to compile this from source instead of Using the Code saturne 1.3 precompiled version...

Currently I am a user of OpenFOAM, and I would like to test some benchmarks to see how Saturne performs...


Can you help me solve this problem...?


Thanks in Advance


Alex

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2908 by Claus
Well it's usually the small things that gets you :)

My initial guess is that it's not getting sourced correctly - have you tried running '. cs_profile' in the actual terminal before launching, and not relying on .bashrc to do it?

Otherwise I've posted my cs_profile here, only difference here seems to be, that I explicitly tell CS where to find the binaries.

your error indicates that it doesn't know to look in code_saturne/Interface/ics-1.4.0

--

I can't help you with compiling since I wont be at my main computer for a few months yet :)


# Architecture
NOM_ARCH=`uname -s`
if [ &quot;$NOM_ARCH&quot; = &quot;Linux&quot; ] ; then
if [ &quot;`hostname | cut -c1-6`&quot; = &quot;tantal&quot; ] ; then
NOM_ARCH=Linux_CCRT
elif [ &quot;`domainname 2&gt;/dev/null`&quot; = &quot;cluster-chatou&quot; ] ; then
NOM_ARCH=Linux_Ch
elif [ -d /bgl/BlueLight/ppcfloor ] ; then
NOM_ARCH=Blue_Gene_L
elif [ -d /bgsys/drivers/ppcfloor ] ; then
NOM_ARCH=Blue_Gene_P
else
MACHINE=`uname -m`
case &quot;$MACHINE&quot; in
*86) NOM_ARCH=Linux ;;
x86_64) NOM_ARCH=Linux_x86_64 ;;
ia64) NOM_ARCH=Linux_IA64 ;;
*) NOM_ARCH=Linux_$MACHINE ;;
esac
fi
fi

# Code_Saturne version

if [ &quot;$NOM_ARCH&quot; = &quot;Linux_CCRT&quot; -o &quot;$NOM_ARCH&quot; = &quot;Linux_IA64&quot; ] ; then
CS_ROOT=/home/cont002/saturne
elif [ &quot;$NOM_ARCH&quot; = &quot;Blue_Gene_L&quot; ] ; then
CS_ROOT=/gpfs2/home/saturne
elif [ &quot;$NOM_ARCH&quot; = &quot;Blue_Gene_P&quot; ] ; then
CS_ROOT=/gpfs/home/saturne
else
CS_ROOT=/home/claus/code_saturne
fi
#
CS_HOME=/home/claus/code_saturne/Noyau/ncs-1.4.b
CSPP_HOME=/home/claus/code_saturne/Enveloppe/ecs-1.4.a
CSGUI_HOME=/home/claus/code_saturne/Interface/ics-1.4.a
SYRCS_HOME=/home/claus/code_saturne/opt/syr_cs-2.1.0
#
if [ &quot;$NOM_ARCH&quot; = &quot;Linux&quot; -a -d /home/prevalcs/HOMARD ] ; then
CSHOMARD_HOME=/home/prevalcs/HOMARD
else
CSHOMARD_HOME=
fi
#
# Path
PATH=$CS_HOME/bin:$PATH

# Export environment variables
export NOM_ARCH CS_ROOT CS_HOME CSPP_HOME CSGUI_HOME
export SYRCS_HOME CSHOMARD_HOME
export PATH

Code_Aster release : STA11.4 on OpenSUSE 12.3 64 bits - EDF/Intel version

Please Log in or Create an account to join the conversation.

  • Alex
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
14 years 10 months ago #2910 by Alex
Hi Claus...

Think I finally solved it... one must type SaturneGui inside the directory structure of the created case...

I Think it would be way easier to install and configure Code_saturne to run if developers at EDF would provide some sort of a configure script...

A sort of a ./configure, make, make install (make test) thing... like with BRL-CAD which is a rather big package btw...

Installing code Aster ( with the default compiler options ) is way easier... and Aster is a much larger package than Code Saturne...

In the ease of installation of Code saturne in the current wishlist of EDF...? :-)

For instance... the installer with the syrthes coupling with its different install_saturne.py does not compile CS_1.4b with the coupling with syrthes, although i explicitly locate syr_cs and syrthes in the setup file of Install... all the procedure i followed is the exact repetition of what I did to Install cs_1.4b without the coupling but.... :-( no avail....


BTW about code Aster... did you happen to solve the issue of Code_Aster compilation with Intel compilers 11.xxx ( ifort and icc ) under Debian 5.0 amd 64....?


It keeps complaining about LANG environment variable not being correctly set... even though I explicitly set it in the sourcing files of c++ Intel environment and fortran Intel environment...


Must I compile it in a CentOS x64 machine to have Intel built binaries...?

Is it worth it anyway...??

What is your opinion...?


Best regards

Alex<br /><br />Post edited by: Alex, at: 2009/05/19 15:54

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2929 by David Monfort
Replied by David Monfort on topic Re:Problem starting the Graphical Inteface of Saturne
Hi Alex,

Code_Saturne installation is likely to be far easier in the next version... Wait till the next beta ;-) (coming soon!) The kernel build system has been &quot;autoconfiscated&quot; (read: configure &amp;&amp; make &amp;&amp; make install) as you request.

Code_Aster was released open source quite longer ago compare to Code_Saturne, it is therefore more mature as regards the installation process, but the next version of the code should be greatly improved.

And lastly, could tell me what kind of difficulty you had with the coupling stuff? The installation procedure is the following: install SYRTHES, install Code_Saturne along with syr_cs library with the right installer (install_saturne.py). If you still don't succeed, please let me know or contact the support.

Kind regards,
David

Please Log in or Create an account to join the conversation.

Moderators: catux
Time to create page: 0.149 seconds
Powered by Kunena Forum