From 53b29a46775a62bdf05e16be608e881d76cd456d Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Tue, 20 Sep 2011 09:21:00 +0000
Subject: [PATCH] swig : typemaps for value return by ref PViewData

---
 gmshpy/gmshPost.i | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gmshpy/gmshPost.i b/gmshpy/gmshPost.i
index e7922ec070..db5e70c9d0 100644
--- a/gmshpy/gmshPost.i
+++ b/gmshpy/gmshPost.i
@@ -1,18 +1,21 @@
 %feature("autodoc", "1");
 %module gmshPost
+%include typemaps.i
 %include std_string.i
 
 %{
   #include "GmshConfig.h"
-
   #include "fullMatrix.h"
   #include "PView.h"
-  #include "PViewData.h"
   #include "PViewFactory.h"
+  #include "PViewData.h"
 %}
 
 %include "GmshConfig.h"
-
 %include "PView.h"
-%include "PViewData.h"
+
 %include "PViewFactory.h"
+
+%apply double &OUTPUT { double &val}
+%include "PViewData.h"
+
-- 
GitLab