On Aug 27, 2008, at 4:53 PM, franck kalala wrote:

yes Gist is installed,

when running this program there a windows intitled c:\windows \system32\cmd.exe which appear and disapear quickly and the follow the message "Unable to create a Gist2DViewer"

How strange. Please apply the patch below and report back the error messages (if you're using svn, you can just "revert" later; otherwise, work on a copy).


Index: examples/diffusion/circle.py
===================================================================
--- examples/diffusion/circle.py        (revision 2734)
+++ examples/diffusion/circle.py        (working copy)
@@ -141,14 +141,11 @@

     >>> viewer = None
     >>> if __name__ == '__main__':
-    ...     try:
- ... from fipy.viewers.gistViewer.gist2DViewer import Gist2DViewer
-    ...         viewer = Gist2DViewer(vars=phi,
- ... limits={'datamin': -1, 'datamax': 1.})
-    ...         viewer.plotMesh()
- ... raw_input("Irregular circular mesh. Press <return> to proceed...")
-    ...     except:
-    ...         print "Unable to create a Gist2DViewer"
+ ... from fipy.viewers.gistViewer.gist2DViewer import Gist2DViewer
+    ...     viewer = Gist2DViewer(vars=phi,
+ ... limits={'datamin': -1, 'datamax': 1.})
+    ...     viewer.plotMesh()
+ .. raw_input("Irregular circular mesh. Press <return> to proceed...")

 .. image:: examples/diffusion/circleMesh.pdf
    :scale: 50


Reply via email to