From 2086136eddc71c694cd0ec0dddb382c297541662 Mon Sep 17 00:00:00 2001
From: Jonathan Lambrechts <jonathan.lambrechts@uclouvain.be>
Date: Wed, 8 Feb 2012 14:25:57 +0000
Subject: [PATCH] dgDofContainer : remove pointers

---
 Numeric/fullMatrix.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/Numeric/fullMatrix.h b/Numeric/fullMatrix.h
index 03beb35a4d..f84385b966 100644
--- a/Numeric/fullMatrix.h
+++ b/Numeric/fullMatrix.h
@@ -276,6 +276,15 @@ class fullMatrix
     _own_data = false;
     _data = original._data + c_start * _r;
   }
+  void setAsProxy(double *data, int r, int c)
+  {
+    if(_data && _own_data)
+      delete [] _data;
+    _c = c;
+    _r = r;
+    _own_data = false;
+    _data = data;
+  }
   fullMatrix<scalar> & operator = (const fullMatrix<scalar> &other)
   {
     copy(other);
-- 
GitLab