From 199b821fccd8fc4b1f52882ffee8ee206f0d3fa1 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 1 Jul 2008 11:50:01 +0000
Subject: [PATCH] iView was wrong

---
 Plugin/Integrate.cpp | 6 +++---
 doc/VERSIONS         | 5 +++--
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Plugin/Integrate.cpp b/Plugin/Integrate.cpp
index c2724457d3..3af16b142d 100644
--- a/Plugin/Integrate.cpp
+++ b/Plugin/Integrate.cpp
@@ -1,4 +1,4 @@
-// $Id: Integrate.cpp,v 1.27 2008-05-12 20:24:05 geuzaine Exp $
+// $Id: Integrate.cpp,v 1.28 2008-07-01 11:50:01 geuzaine Exp $
 //
 // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
 //
@@ -77,13 +77,12 @@ void GMSH_IntegratePlugin::catchErrorMessage(char *errorMessage) const
 
 PView *GMSH_IntegratePlugin::execute(PView * v)
 {
-  int iView = (int)IntegrateOptions_Number[1].def;
+  int iView = (int)IntegrateOptions_Number[0].def;
   
   PView *v1 = getView(iView, v);
   if(!v1) return v;
 
   PViewData *data1 = v1->getData();
-
   PView *v2 = new PView(true);
   PViewDataList *data2 = getDataList(v2);
   
@@ -113,6 +112,7 @@ PView *GMSH_IntegratePlugin::execute(PView * v)
 	    data1->getValue(step, ent, ele, nod, comp, val[numComp * nod + comp]);
 	}
 	elementFactory factory;
+	printf("dim=%d numEdges=%d\n", dim, numEdges);
 	element *element = factory.create(numNodes, dim, x, y, z);
 	if(!element) continue;
 	if(scalar)
diff --git a/doc/VERSIONS b/doc/VERSIONS
index 7ac318dd04..2146b2e19c 100644
--- a/doc/VERSIONS
+++ b/doc/VERSIONS
@@ -1,6 +1,7 @@
-$Id: VERSIONS,v 1.412 2008-06-28 17:06:55 geuzaine Exp $
+$Id: VERSIONS,v 1.413 2008-07-01 11:50:01 geuzaine Exp $
 
-2.2.3 (): enhanced clipping interface.
+2.2.3 (): enhanced clipping interface; fixed small bugs (Integrate
+plugin).
 
 2.2.2 (Jun 20, 2008): added geometrical transformations on volumes;
 fixed bug in high order mesh generation.
-- 
GitLab