On Aug 12, 2:15 pm, Dominique dominiq...@gmail.com wrote:
I have made the OPTFLAGS and SHARED configurable via site_cfg.py, see site_cfg_template.py. Could you try it, please? I have also updated the Documentation wiki page.
Thanks both for your quick replies! I downloaded the update and sfepy now builds smoothly on Leopard!
ETS seems to have SciPy 0.6.0 but the problem is that it wasn't built with UMFPACK bindings. I suppose that is a shortcoming of pre-packaged SciPy?!
Regargind the test failures, I get:
[dpo@pod:sfepy-219a3594dbc8]$ ./runTests.py ./tests/ test_msm_laplace.py --debug <<< ./tests/test_msm_laplace.py sfepy: left over: ['ebc', '__builtins__', '__file__', 'solutions', '__name__', 'rhs', 'TestCommon', 'dim', 'pause', 'nm', 'val', 'solution', 'debug', 'output_name', '__doc__'] sfepy: reading mesh (database/phono/mesh_circ21.mesh)... ... File "/Users/dpo/local/src/sfepy-219a3594dbc8/sfepy/terms/ termsVolume.py", line 36, in __call__ mat = mat[...,nm.newaxis,nm.newaxis] TypeError: 'numpy.float64' object is unsubscriptable
Try the following code:
In : import numpy as nm
In : a = nm.float64( 1 )
In : a[...,nm.newaxis,nm.newaxis] Out: array([[ 1.]])
In : nm.__version__ Out: '1.2.0.dev5629'
if it does not work for you then it seems the code relies on a newer version of numpy than you have.
The other failures are from linear_rigid_body_bc, which is in testsBasic.py:
[dpo@pod:sfepy-219a3594dbc8]$ ./runTests.py ./tests/testsBasic.py -- debug <<< ./tests/testsBasic.py sfepy: error: required missing: ['Test'] sfepy: left over: ['TestLCBC', '__builtins__', '__file__', '__doc__', 'TestInput', '__name__', 'TestCommon', 'op'] --- test instance creation failed Traceback (most recent call last): File "./runTests.py", line 222, in <module> main() File "./runTests.py", line 210, in main stats = run_test( test_filename, options ) File "./runTests.py", line 94, in run_test conf = ProblemConf.from_file( conf_name, required, _required + other ) File "/Users/dpo/local/src/sfepy-219a3594dbc8/sfepy/base/conf.py", line 157, in from_file other_missing = obj.validate( required = required, other = other ) File "/Users/dpo/local/src/sfepy-219a3594dbc8/sfepy/base/conf.py", line 220, in validate raise ValueError ValueError
Yes, the tests are implemented in testsBasic.py, but this file just holds some common functionality - you should use tests/test_lcbc_3d.py and tests/test_lcbc_2d.py, Anyway, I think the errors will disappear after you upgrade your numpy.
The VTK files seem ok after all; it was just my incompetence. Paraview opens them and lets me navigate the data. It is with Mayavi2 that I have difficulties.
Good. In Mayavi2 you probably need to use some filter first (e.g. Surface, do not know the exact name).
Sorry for being so thick about the manual, but inhttp://code.google.com/p/sfepy/source/browse/#svn/web/docsit seems that sfepy_manual.pdf and terms.pdf are the same document (only with different dates). Is that normal?
terms.py is obsolete, it was renamed to sfepy_manual.pdf. I shall delete it from the wiki.
Thanks for the help! I'm looking forward to using SfePy! Dominique