thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

Small fix to sfepy_gui #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I was testing the SfePy gui and ran into the following exception:

logan@phoenix:~/projects/sfepy_doc2$ ./sfepy_gui.py
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "./sfepy_gui.py", line 29, in run
    output_dir=self.gui.output_dir)
  File "/home/logan/projects/sfepy_doc2/sfepy/applications/top_level.py",
line 28, in pde_solve
    return app()
  File "/home/logan/projects/sfepy_doc2/sfepy/applications/application.py",
line 29, in call_basic
    return self.call( **kwargs )
  File "/home/logan/projects/sfepy_doc2/sfepy/applications/simple_app.py",
line 101, in call
    self.post_process_hook )
  File "/home/logan/projects/sfepy_doc2/sfepy/solvers/generic.py", line
209, in solve_direct
    if options.save_regions_as_groups:
AttributeError: 'Struct' object has no attribute 'save_regions_as_groups'

It looks like a simple change to the default options in
sfepy/application/top_level.py should solve this issue. I put the patch in
my github master branch at [1].

Thanks!
Logan

[1] http://github.com/logansorenson/sfepy_doc2

Original issue reported on code.google.com by logan.so...@gmail.com on 24 Feb 2010 at 10:31

GoogleCodeExporter commented 9 years ago

Original comment by logan.so...@gmail.com on 24 Feb 2010 at 10:35

GoogleCodeExporter commented 9 years ago
Applied, thanks!

Original comment by robert.c...@gmail.com on 25 Feb 2010 at 8:59

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/109

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:26