Hi,
First of all, sorry for disappearing for a month or so. Things got really busy with moving and starting school again.
I cloned the latest git repository from [1] and issued a make in the root sfepy directory. Then I ran ./runTests.py and everything passed.
So I tried to run the poisson_parametric_study example and got the following parser exception.:
logan@phoenix:~/projects/sfepy$ ./simple.py input/poisson_parametric_study.py sfepy: left over: ['select_circ', 'vary_omega1_size', '__builtins__', '__file__', 'output', '__name__', 'pause', 'nm', '_filename', 'default_diameter', 'debug', 'os', '__doc__'] sfepy: reading mesh (database/square_circ.vtk)...
sfepy: ...done in 0.02 s
sfepy: setting up domain edges...
sfepy: ...done in 0.01 s
sfepy: creating regions... sfepy: leaf Omega region_Omega__2 parsing failed: Struct:Omega_1 name: Omega_1 select: nodes by select_circ( x, y, z, 0.250000 ) Traceback (most recent call last): File "./simple.py", line 100, in <module> main() File "./simple.py", line 93, in main app = SimpleApp( conf, options, output_prefix ) File "/home/logan/projects/sfepy/sfepy/applications/simple_app.py", line 48, in __init__ **kwargs ) File "/home/logan/projects/sfepy/sfepy/fem/problemDef.py", line 83, in from_conf obj.set_regions(conf.regions, conf.materials, obj.functions) File "/home/logan/projects/sfepy/sfepy/fem/problemDef.py", line 124, in set_regions self.domain.create_regions(conf_regions, functions) File "/home/logan/projects/sfepy/sfepy/fem/domain.py", line 589, in create_regions out = bnf.parseString( rdef.select ) File "/usr/lib/pymodules/python2.5/pyparsing.py", line 1076, in parseString raise exc pyparsing.ParseException: Expected end of text (at char 20), (line:1, col:21)
I fired up winpdb and was able to find the exception raised at line 589 in sfepy/fem/domain.py. It looks it isn't parsing the region definition on line 45 of poisson_parametric_study.py:
'Omega_1' : ('nodes by select_circ( x, y, z, %f )' % default_diameter, {}),
The parser fails on the '(' character in the string 'nodes by select_circ( x, y, z, %f )'. Since I'm not familiar yet with pyparsing, that's as far as I can get for now. Does anyone else see this?
Thanks! Logan
[1] : git://git.sympy.org/sfepy.git