CS 2.0rc2 MEI compiling warning -> no user law in fluid prop

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Peter Malik

CS 2.0rc2 MEI compiling warning -> no user law in fluid prop

Post by Peter Malik »

Dear Support and Users,

I installed code saturne 2.0rc2 without the installation script. (see: info.txt) When compiling MEI-102 lib following warnings have occurred. (see: output_make.txt) Here are additional information. (output_configure.txt ; info.txt )

Code Saturne disabled the option "user law" in the "fluid properties" menu and it is not possible to select it. Are the warnings the reasons for the problem or is there another reason? Does anyone have an idea to solve this problem? The selection of "user law" is extremely important for my further calculations.

Thanks ever for the trouble. Hope you can help me.

Peter
Attachments
output_make.txt
(58.35 KiB) Downloaded 189 times
output_configure.txt
(5.04 KiB) Downloaded 198 times
info.txt
(5.77 KiB) Downloaded 192 times
Alexandre Douce

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Alexandre Douce »

Hi Peter,

mei_wrap.c is generated by swig, and unfortunately the warnings are difficult to avoid.

Code_Saturne disable the option "user law" in the GUI when the module mei.py could not be imported as a module python. Could you check in your installation if the files are presents in the /lib/python2.6/site-package/mei directory as mentioned in this thread:

http://code-saturne.org/forum/viewtopic.php?f=8&t=1021

Nevertheless, mei is optional and you can set up and perform computation without this library.
Peter Malik

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Peter Malik »

Hi Alexandre,

thanks for the quick reply.

Once Code Saturen runs well. Everything is okay. Just the problem with MEI and "user law".

I know that MEI is optional, but I think it's already comfortable when it is integrated. I checked it. mei.py ist present in the /usr/local/lib/python2.6/site-packages/mei/ directory.

Have you any idea what it might be anyway?

Thanks Peter
Alexandre Douce

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Alexandre Douce »

To test the installation of MEI, what message do you obtain if you simply start python and type "import mei" in your Python terminal ?

If that doesn't work, try typing:

Code: Select all

import sys
sys.path.insert(0, '/usr/local/lib/python2.6/site-packages/mei')

import mei
What do you get then ?
Peter Malik

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Peter Malik »

Hi Alexandre,
that is the message I get:
examusr@exsimul13:~> python
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] 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
>>> import sys
>>> sys.path.insert(0, '/usr/local/lib/python2.6/site-packages/mei')
>>> import mei
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/site-packages/mei/mei.py", line 7, in <module>
    import _mei
ImportError: No module named _mei
>>>

Thanks Peter
David Monfort

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by David Monfort »

Hello Peter,

Could you try locate the _mei.so library? Either by "locate _mei.so" or "find / -name _mei.so". It does not seem to be found. And side question, is it a 64 bit systems?

Regards,

David
David Monfort

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by David Monfort »

What may happen is that the MEI module library (_mei.so called by the Python module mei?py) is installed in /usr/local/lib and that this directory is not in the search path for the linker/loader. If this is the case try to

Code: Select all

export LD_LIBRARY_PATH= /usr/local/lib:$LD_LIBRARY_PATH
before launching the GUI or to

add /usr/local/lib to /etc/ld.so.conf

and to logout/login from the session.

David
Peter Malik

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Peter Malik »

Hi Alexandre.

first, it is a 64bit system.

I've followed your advice and I've changed the path. I also added the path to /etc/ld.so.conf and now python finds the _mei.so lib.
peter@gimli:~> python
Python 2.6.2 (r262:71600, Jun 17 2010, 13:37:45)
[GCC 4.4.1 [gcc-4_4-branch revision 150839]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.insert(0, '/usr/local/lib64/python2.6/site-packages/mei')
>>> import mei
>>>
But the problem is the same. "user law" is still disabled in the "fluid properties" menu in the GUI.

Regards,

Peter
David Monfort

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by David Monfort »

Try to add the following line at the beginning of the code_saturne script (around line 34). You'll find an equivalent one.

Code: Select all

sys.path.insert(0, '/usr/local/lib64/python2.6/site-packages/mei')
This should do the trick.

David
Peter Malik

Re: CS 2.0rc2 MEI compiling warning -> no user law in fluid

Post by Peter Malik »

Hi David

sorry but is was a missunderstanding. I thought you were Alexandre.

The mei import problem ist now solved.

But it is still the same Problem: Code Saturne disabled the option "user law" in the "fluid properties" menu in the GUI and it is not possible to select it.

I have also changed the path in the code_saturne script. But the same Problem

Regards,

Peter
Post Reply