Hello,
could you post the config.log files both from the MEI and from the NCS build directories ?
Regards,
Yvan
CS 2.0rc2 MEI compiling warning -> no user law in fluid prop
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hello Yvan
here are the 2 files
PS: when recompiling one of the modules, is it necessary to recompile also all the following others?
I've also put a post in the forum and I write here again what I've written in the other post :
" In the fluid properties panel, I can't choose the user law option.
I've seen on the forum that this depends on the mei module. But as it
seems to be quite specific from a computer to another and don't want to
make mistakes, I will try to give you as much information as I can
about my configuration.
If I launch python and try to import mei :
[root@mediceo6NB SRC]# locate mei.so
/home/leroy/software/saturne/cs-203/lib/libmei.so /home/leroy/software/saturne/cs-203/lib/libmei.so.0
/home/leroy/software/saturne/cs-203/lib/libmei.so.0.0.0 /home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so
/home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so.0
/home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so.0.0.0
[root@mediceo6NB SRC]# locate mei.py
/home/leroy/SATURNE_src/mei-1.0.3/swig/mei.py /home/leroy/SATURNE_src/mei-1.0.3.build/swig/mei.py
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.py
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.pyc
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.pyo
installation of MEI:
-------------------
cd .. (back to SATURNE_src directory)
unzip mei-103.zip
mkdir mei-1.0.3.build
cd mei-1.0.3.build
../mei-1.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203 --with-python_exec=/usr/bin --with-swig_exec=/usr/bin (/usr/bin per
Python is specific to the configuration of my pc) ok
make ok
make install ok during make install, following messages :
Libraries have been installed in: /home/leroy/software/saturne/cs-203/lib
Libraries have been installed in: /home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei
make clean ok
"
I hope this can help
Christine
here are the 2 files
PS: when recompiling one of the modules, is it necessary to recompile also all the following others?
I've also put a post in the forum and I write here again what I've written in the other post :
" In the fluid properties panel, I can't choose the user law option.
I've seen on the forum that this depends on the mei module. But as it
seems to be quite specific from a computer to another and don't want to
make mistakes, I will try to give you as much information as I can
about my configuration.
If I launch python and try to import mei :
The mei.so or mei.py are in the following directories:[root@mediceo6NB SRC]# python
Python 2.6.2 (r262:71600, Jun 4 2010, 18:28:58)
[GCC 4.4.3 20100127 (Red Hat 4.4.3-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import mei
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mei
>>>
[root@mediceo6NB SRC]# locate mei.so
/home/leroy/software/saturne/cs-203/lib/libmei.so /home/leroy/software/saturne/cs-203/lib/libmei.so.0
/home/leroy/software/saturne/cs-203/lib/libmei.so.0.0.0 /home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so
/home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so.0
/home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/_mei.so.0.0.0
[root@mediceo6NB SRC]# locate mei.py
/home/leroy/SATURNE_src/mei-1.0.3/swig/mei.py /home/leroy/SATURNE_src/mei-1.0.3.build/swig/mei.py
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.py
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.pyc
/home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/mei.pyo
installation of MEI:
-------------------
cd .. (back to SATURNE_src directory)
unzip mei-103.zip
mkdir mei-1.0.3.build
cd mei-1.0.3.build
../mei-1.0.3/configure --prefix=/home/leroy/software/saturne/cs-203 --with-bft=/home/leroy/software/saturne/cs-203 --with-python_exec=/usr/bin --with-swig_exec=/usr/bin (/usr/bin per
Python is specific to the configuration of my pc) ok
make ok
make install ok during make install, following messages :
Libraries have been installed in: /home/leroy/software/saturne/cs-203/lib
Libraries have been installed in: /home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei
make clean ok
"
I hope this can help
Christine
- Attachments
-
- config_ncs.log
- (124.23 KiB) Downloaded 284 times
-
- config_mei.log
- (37.62 KiB) Downloaded 248 times
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hello,
I believe I now understand your problem, as another user encountered a similar issue some time ago.
Short version:
The MEI Python module is installed in :
/home/leroy/sotware/saturne/cs-203/lib64/python2.6/site-packages/mei
while NCS looks for it in:
/home/leroy/sotware/saturne/cs-203/lib/python2.6/site-packages/mei
(or the other way around).
Normally, the Code_Saturne installer uses information from the Autotools and Python distutils to compute the correct paths, but it seems that some distributions make some changes to paths in their packaging, but not in the way Python distutils compute a path, leading to your bug (this is more probably a bug in your Linux distribution than in the Code_Saturne packaging, but the result is the same).
For us, more info may allow us to try to make things more robust in the future:
/home/leroy/sotware/saturne/cs-203/lib64/python2.6/site-packages/mei
into:
/home/leroy/sotware/saturne/cs-203/lib/python2.6/site-packages/mei
and see if things work better.
Also, do you need to use Code_Saturne version 2.0, or could you switch to version 2.1 ?
Code_Saturne 2.1 is much easier to install (only one package), and MEI does not require a Python module (we have switched to an autonomous syntax checker executable, which avoids the need for Swig, so things are more robust on that aspect also).
Best regards,
Yvan
I believe I now understand your problem, as another user encountered a similar issue some time ago.
Short version:
The MEI Python module is installed in :
/home/leroy/sotware/saturne/cs-203/lib64/python2.6/site-packages/mei
while NCS looks for it in:
/home/leroy/sotware/saturne/cs-203/lib/python2.6/site-packages/mei
(or the other way around).
Normally, the Code_Saturne installer uses information from the Autotools and Python distutils to compute the correct paths, but it seems that some distributions make some changes to paths in their packaging, but not in the way Python distutils compute a path, leading to your bug (this is more probably a bug in your Linux distribution than in the Code_Saturne packaging, but the result is the same).
For us, more info may allow us to try to make things more robust in the future:
- what Linux distribution are you using ?
do you have a a mix of 32 and 64 bit libraries ?
/home/leroy/sotware/saturne/cs-203/lib64/python2.6/site-packages/mei
into:
/home/leroy/sotware/saturne/cs-203/lib/python2.6/site-packages/mei
and see if things work better.
Also, do you need to use Code_Saturne version 2.0, or could you switch to version 2.1 ?
Code_Saturne 2.1 is much easier to install (only one package), and MEI does not require a Python module (we have switched to an autonomous syntax checker executable, which avoids the need for Swig, so things are more robust on that aspect also).
Best regards,
Yvan
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
ciao Yvan,
So, here are the things in my Pc:
I use Fedora 12, 64bit. I don't know if I have a mix of libraries 32 and 64 bits... maybe there could be some files I could send you that could help you seeing that... just tell me, I can send you that.
I just know that I have a lib64 directory, full of files and the lib one containing less files...but as you've already noticed I guess, I'm not a "linux specialist"
What's the difference between Code_Saturne 2.0 and 2.1?
I don't know this code, I have to learn basic things, just enough to run a case (combustion) because I must write a subroutine that could give me output written as I want and containing what I want....
Regards
Christine
So, here are the things in my Pc:
what does ncs look for? the files .py, . pyc and .pyo or the others? just to be sure I rename the goog directory ( lib or lib 64)[leroy@mediceo6NB ncs-2.0.3.build]$ ls /home/leroy/software/saturne/cs-203/lib/python2.6/site-packages/mei/
mei.py mei.pyc mei.pyo
[leroy@mediceo6NB ncs-2.0.3.build]$ ls /home/leroy/software/saturne/cs-203/lib64/python2.6/site-packages/mei/
_mei.a _mei.la _mei.so _mei.so.0 _mei.so.0.0.0
I use Fedora 12, 64bit. I don't know if I have a mix of libraries 32 and 64 bits... maybe there could be some files I could send you that could help you seeing that... just tell me, I can send you that.
I just know that I have a lib64 directory, full of files and the lib one containing less files...but as you've already noticed I guess, I'm not a "linux specialist"

What's the difference between Code_Saturne 2.0 and 2.1?
I don't know this code, I have to learn basic things, just enough to run a case (combustion) because I must write a subroutine that could give me output written as I want and containing what I want....
Regards
Christine
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid
Hello,
When importing MEI, the code will look both for mei.py* and mei.so files, which explains why things do not work correctly.
Copying file from lib64 into lib and files from lib into lib64 should work, even though it is less elegant than making 1 a symbolic link of the other.
If you are just starting with Code_Saturne, version 2.1 has many changes and improvements, but combustion models may have changed a bit.
In any case, MEI expressions are only possible in some part of the code (using the GUI), and not much used in combustion (you will probably need to edit user subroutines), so if MEI is not installed correctly, you may not be able to run some parts of the tutorials, but it will not make any difference for your real (combustion) case.
Best regards,
Yvan
When importing MEI, the code will look both for mei.py* and mei.so files, which explains why things do not work correctly.
Copying file from lib64 into lib and files from lib into lib64 should work, even though it is less elegant than making 1 a symbolic link of the other.
If you are just starting with Code_Saturne, version 2.1 has many changes and improvements, but combustion models may have changed a bit.
In any case, MEI expressions are only possible in some part of the code (using the GUI), and not much used in combustion (you will probably need to edit user subroutines), so if MEI is not installed correctly, you may not be able to run some parts of the tutorials, but it will not make any difference for your real (combustion) case.
Best regards,
Yvan
Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid properties
ok , done .. in the non-elegant way...
and it's ok, the user law is now activated.
I think I'll know better what I need or not when using a little Saturne, for now, I really don't know.
I "just" have to write this subroutine to get files I can work on and that are not given "by default" by Saturne.
for this I need to be able to run the combustion case I've been given.
For the moment, it's all confused to me, but from now, I have everything to go on !!
thanks a lot for your help !!!
PS: no problem if you need some more information about my Pc configuration if it can help you improving the code, just tell me where I can find them (the commands I must type etc...) and I send you that.
A bientot surement sur le forum, meme si j'espère ne plus avoir besoin de résoudre quoi que ce soit ;-)
et merci encore.
Best Regards
Christine
and it's ok, the user law is now activated.
I think I'll know better what I need or not when using a little Saturne, for now, I really don't know.
I "just" have to write this subroutine to get files I can work on and that are not given "by default" by Saturne.
for this I need to be able to run the combustion case I've been given.
For the moment, it's all confused to me, but from now, I have everything to go on !!
thanks a lot for your help !!!
PS: no problem if you need some more information about my Pc configuration if it can help you improving the code, just tell me where I can find them (the commands I must type etc...) and I send you that.
A bientot surement sur le forum, meme si j'espère ne plus avoir besoin de résoudre quoi que ce soit ;-)
et merci encore.
Best Regards
Christine