Subject: [Viper-dev] Small fix for dolfin plot

From: Johan Hake <[email-masked]>
Date: Sat, 6 Dec 2008 11:55:34 +0100

Hello!

Attached is a small patch for plotting vector fields with dolfin.

Johan
# HG changeset patch
# User "Johan Hake <[email-masked]>"
# Date 1228560863 -3600
# Node ID 20e68332bc166f67a3c17b211e05b97beb0250e8
# Parent  a6d73812a906e5a8d858bfa7f63fea8a355065ad
Fixed a small type
 - Plotting of vector functions now works.

diff -r a6d73812a906 -r 20e68332bc16 src/viper/viper_dolfin.py
--- a/src/viper/viper_dolfin.py	Fri Dec 05 14:41:19 2008 +0100
+++ b/src/viper/viper_dolfin.py	Sat Dec 06 11:54:23 2008 +0100
@@ -169,7 +169,7 @@
         rank = element.value_rank()
         dpn = 1
         for i in xrange(rank):
-            dpn *= element.value_dim(i)
+            dpn *= element.value_dimension(i)
         return dpn, rank
 
     def dolfin_update(self, data):