From 0bc1db0d044cbc76b3677d3d96fab64f385921a6 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 7 Dec 2008 21:15:52 +0000
Subject: [PATCH] *** empty log message ***

---
 Post/adaptiveData.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Post/adaptiveData.cpp b/Post/adaptiveData.cpp
index febb5f2138..fe1d0a3deb 100644
--- a/Post/adaptiveData.cpp
+++ b/Post/adaptiveData.cpp
@@ -1082,6 +1082,9 @@ void adaptiveElements<T>::changeResolution(int level, double tol, GMSH_Post_Plug
 
   List_Reset(_listEle);
   *_numEle = 0;
+  
+  if(!_posX->size1()) return;
+
   std::vector<int> done(_posX->size1(), 0);
 
   // We first do the adaptive stuff at level 2 and will only process
-- 
GitLab