From 4b5c5e76c20071ed85d5947c0a6349f586032293 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 19 Nov 2001 13:43:17 +0000
Subject: [PATCH] Oups, wrong alloc for SVD. This is far better!

---
 Mesh/Mesh.h    | 3 ++-
 Mesh/Utils.cpp | 6 +++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/Mesh/Mesh.h b/Mesh/Mesh.h
index c79edb5bff..8a28bf9e76 100644
--- a/Mesh/Mesh.h
+++ b/Mesh/Mesh.h
@@ -21,7 +21,8 @@
 #define FORMAT_SMS     14
 #define FORMAT_OPT     15
 #define FORMAT_PSTEX   16
-#define FORMAT_TEX     17
+#define FORMAT_JPEGTEX 17
+#define FORMAT_TEX     18
 
 #define CONV_VALUE    0.8
 
diff --git a/Mesh/Utils.cpp b/Mesh/Utils.cpp
index 5f893d4fa9..68744c6547 100644
--- a/Mesh/Utils.cpp
+++ b/Mesh/Utils.cpp
@@ -1,4 +1,4 @@
-// $Id: Utils.cpp,v 1.5 2001-11-08 10:16:41 geuzaine Exp $
+// $Id: Utils.cpp,v 1.6 2001-11-19 13:43:17 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "Numeric.h"
@@ -47,7 +47,7 @@ void MeanPlane(List_T *points, Surface *s){
   na = 3;
 
   U = dmatrix(1,ndata,1,na);
-  V = dmatrix(1,ndata,1,ndata);
+  V = dmatrix(1,na,1,na);
   W = dvector(1,na);
 
   for (i=0; i<ndata; i++){
@@ -79,7 +79,7 @@ void MeanPlane(List_T *points, Surface *s){
   norme(res);
 
   free_dmatrix(U,1,ndata,1,na);
-  free_dmatrix(V,1,ndata,1,ndata);
+  free_dmatrix(V,1,na,1,na);
   free_dvector(W,1,na);
 
   // check coherence of results for non-plane surfaces
-- 
GitLab