Re: fipy class.

2011-03-08 Thread Julien Derr
Thanks so much, it is working great On Mon, Mar 7, 2011 at 11:00 PM, Daniel Wheeler daniel.wheel...@gmail.comwrote: On Mon, Mar 7, 2011 at 4:14 PM, Julien Derr julien.d...@gmail.com wrote: depositionRateVariable = metalVar.getGrad().dot(distanceVar.getGrad()) This should work

Re: fipy class.

2011-03-07 Thread Julien Derr
Hi Daniel , thanks a lot for your help. Yes you are absolutely right, I actually dowloaded the examplefile .py from a random place on the internet, so I understand it doesn't match my installation of fipy. but this is not my real problem. I can just desactivate the parallel option and it works

Re: fipy class.

2011-03-07 Thread Julien Derr
I just modified one line in the simpletrenchsystem.py : here it is #!/usr/bin/env python ## # ### # FiPy - Python-based finite volume PDE solver # # FILE: inputSimpleTrenchSystem.py # # Author: Jonathan Guyer

Re: fipy class.

2011-03-04 Thread Benny Malengier
2011/3/3 Julien Derr julien.d...@gmail.com He re is what I get : julien@derr-Precision-T1500:~/Dropbox/diatomes/videos$ python -c 'import fipy; print fipy.__version__' 2.2-dev If you install via package manager, you install in /usr/, if you install manual, you install in /usr/local/ So I

Re: fipy class.

2011-03-04 Thread Julien Derr
I did that, and I still have version 2.2 julien@derr-Precision-T1500:~/Dropbox/levelset$ python -c 'import fipy; print fipy.__version__' 2.2-dev is it the up to date version ? because I still get the same runtime error. Julien On Fri, Mar 4, 2011 at 10:22 AM, Julien Derr

Re: fipy class.

2011-03-04 Thread Benny Malengier
I have 2.2-dev4222 The numer is the svn checkout. Not sure if not working with svn can cause problems. I use indeed trunk as in http://www.ctcms.nist.gov/fipy/svn.html so svn checkout http://matforge.org/svn/fipy/trunk trunk Note that if you have installed via package manager, you best

Re: fipy class.

2011-03-04 Thread Daniel Wheeler
Sorry. On Fri, Mar 4, 2011 at 5:39 PM, Daniel Wheeler daniel.wheel...@gmail.com wrote: You can check and see that the example you are trying to run don't not match your installed version of FIPy by importing the Grid2D instance and looking at the arguments it takes. You can check and see

Re: fipy class.

2011-03-04 Thread Daniel Wheeler
On Fri, Mar 4, 2011 at 5:43 AM, Julien Derr julien.d...@gmail.com wrote: I did that, and I still have version 2.2 julien@derr-Precision-T1500:~/Dropbox/levelset$  python -c 'import fipy; print fipy.__version__' 2.2-dev is it the up to date version ? because I still get the same runtime

Re: fipy class.

2011-03-03 Thread Julien Derr
He re is what I get : julien@derr-Precision-T1500:~/Dropbox/diatomes/videos$ python -c 'import fipy; print fipy.__version__' 2.2-dev What is the best way to install the up to date version under ubuntu 10.10?? On Thu, Mar 3, 2011 at 1:43 AM, Daniel Wheeler daniel.wheel...@gmail.comwrote:

Re: fipy class.

2011-03-02 Thread Jonathan Guyer
On Mar 2, 2011, at 6:33 AM, Julien Derr wrote: the unmodified simpletrenchsystem.py works fine (but it was working fine also before) OK, good. I assumed so, but wanted to be sure. I just had to remove the following line in the definition of the mesh #

Re: fipy class.

2011-03-02 Thread Julien Derr
I guess it is version 2.2 I think I installed it with the last .deb file for Ubuntu In the help, I get this : FILE /usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/__init__.py On Wed, Mar 2, 2011 at 5:09 PM, Jonathan Guyer gu...@nist.gov wrote: On Mar 2, 2011, at 6:33

Re: fipy class.

2011-03-02 Thread Daniel Wheeler
On Wed, Mar 2, 2011 at 12:12 PM, Julien Derr julien.d...@gmail.com wrote: I guess it is version 2.2 I think I installed it with the last .deb file for Ubuntu In the help, I get this : FILE /usr/local/lib/python2.6/dist-packages/FiPy-2.2_dev-py2.6.egg/fipy/__init__.py The error suggests

Re: fipy class.

2011-03-01 Thread Julien Derr
Thanks all of you!! I installed python-dev, and now I can compile pysparse. and the tests work better testSuperlu.py and testUmfpack.py work fine now, but still a problem with test_spmatrix.py (see bellow) #

Re: fipy class.

2011-03-01 Thread Jonathan Guyer
On Mar 1, 2011, at 5:22 AM, Julien Derr wrote: I installed python-dev, and now I can compile pysparse. Good! and the tests work better Good! testSuperlu.py and testUmfpack.py work fine now, Good! but still a problem with test_spmatrix.py (see bellow) Hmmm ANyways, now, when I

Re: fipy class.

2011-02-24 Thread Julien Derr
indeed! I have a segmentation fault when I run the test! I am going to reinstall pyspare or maybe another version ?? julien@derr-Precision-T1500:~/Téléchargements/pysparse-1.1.1/Test$ python testSuperlu.py TestRelErr Tolnnz(A) nnz(L+U)Fact Solve

Re: fipy class.

2011-02-24 Thread Julien Derr
which installation of pysparse would you suggest ? I have currently 1.1.1 I tried to install pysparse-1.2-dev203 or pysparse-1.2-dev213, but I have errors at the installation; first in the spmatrixmodule.c : there is a weird beginning of function DL_EXPORT(void) initspmatrix(void) {

Re: fipy class.

2011-02-24 Thread Jonathan Guyer
On Feb 24, 2011, at 9:23 AM, Julien Derr wrote: If I use easy_install, it install the version 1.1 only Hmmm, right. You can direct easy_install to get newer ones with, e.g. easy_install https://pysparse.svn.sourceforge.net/svnroot/pysparse/trunk but I agree with Wheeler. You should

Re: fipy class.

2011-02-24 Thread Jonathan Guyer
On Feb 24, 2011, at 11:02 AM, Julien Derr wrote: Thanks a lot Daniel and Jonathan for your help, but unfortunately, I think I've tried everything without success... * sudo apt-get install python-sparse tells me I have the up to date distribution Is there a way to query what version it

Re: fipy class.

2011-02-24 Thread Julien Derr
I might be behind a firewall or proxy, at university. here is the full error I get : (as I said before there is already something which looks obviously wrong like missing {} or integer function returning void ?) julien@derr-Precision-T1500:~/Téléchargements/pysparse$ sudo python setup.py

Re: fipy class.

2011-02-24 Thread Benny Malengier
I am running pysparse on kubuntu 10.10 from subversion (version 1.2a1). No errors in the tests. I do have python-dev installed as I use weave in some projects. Benny 2011/2/24 Jonathan Guyer gu...@nist.gov On Feb 24, 2011, at 11:58 AM, Julien Derr wrote: I might be behind a firewall or

fipy class.

2011-02-23 Thread Julien Derr
Hi everyone, I guess I understand where is the problem in my last post: I am a little bit lost in the classes I am just modifying the simpletrenchSystem.py example file. I would like the extension velocity to be proportional to the gradient of the metalVar field. in the example,

Re: fipy class.

2011-02-23 Thread Jonathan Guyer
On Feb 23, 2011, at 10:01 AM, Julien Derr wrote: I guess I understand where is the problem in my last post: I am a little bit lost in the classes I am just modifying the simpletrenchSystem.py example file. I would like the extension velocity to be proportional to the gradient of the

Re: fipy class.

2011-02-23 Thread Julien Derr
thanks a lot Daniel and Jonathan, I understand now the situation. I replaced the line with depositionRateVariable = metalVar.getGrad().dot(distanceVar.getGrad()) Unfortunately it seems there is an additional problem as it creates now a segmentation fault : [derr-Precision-T1500:09248] ***

Re: fipy class.

2011-02-23 Thread Jonathan Guyer
On Feb 23, 2011, at 12:35 PM, Julien Derr wrote: Unfortunately it seems there is an additional problem as it creates now a segmentation fault : : : [derr-Precision-T1500:09248] [ 1] /usr/lib/libsuperlu.so.3(dpivotL+0x16d) [0x7fa5dac6fa9d] [derr-Precision-T1500:09248] [ 2]