Comment 9 for bug 914880

Revision history for this message
Johannes Ring (johannr) wrote :

The VTK version included in the OS X binary is not that old, but there might be a bug in VTK on OS X because both SetSize(int, int) and SetSize(int a[2]) are supposed to work. This can easily be fixed by modifying the file

  /Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages/viper/viper.py

on OS X 10.6 or

  /Applications/FEniCS.app/Contents/Resources/lib/python2.7/site-packages/viper/viper.py

on OS X 10.7. Simply replace line 1299, that is

    renWin.SetSize(self.window_size)

with this line

    renWin.SetSize(*self.window_size)

This should work on all platforms so we might as well apply this fix in Viper.