diff --git a/Post/adaptiveData.cpp b/Post/adaptiveData.cpp index febb5f2138f0b9c9b0ae59ead3f6467b2e6c45b7..fe1d0a3debb7b8a722fa742159ba4d31e08b91e1 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