From 20d07f0adf7aed001187962157a020fb0a863ca8 Mon Sep 17 00:00:00 2001 From: Michel Rasquin <michel.rasquin@cenaero.be> Date: Tue, 19 Jan 2016 10:16:36 +0000 Subject: [PATCH] Sanity check for node mapping --- Post/adaptiveData.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Post/adaptiveData.cpp b/Post/adaptiveData.cpp index acec26b02d..49fc7a32a4 100644 --- a/Post/adaptiveData.cpp +++ b/Post/adaptiveData.cpp @@ -2374,6 +2374,10 @@ void adaptiveElements<T>::buildMapping(nodMap<T> &myNodMap, double tol, int &num } //for } //if }//for + + if(myNodMap.mapping.size() == 0) { + Msg::Error("Node mapping in buildMapping has zero size"); + } // Count number of unique nodes from the mapping // Use an ordered set for efficiency -- GitLab