diff --git a/Graphics/drawPost.cpp b/Graphics/drawPost.cpp index 36647df5cac36304ba2088430f401213a7881d80..7a5ebafa977659d2f49b20e75bb5c2803dd8ee28 100644 --- a/Graphics/drawPost.cpp +++ b/Graphics/drawPost.cpp @@ -270,6 +270,8 @@ static void drawTangentVectorGlyphs(drawContext *ctx, PView *p, int numNodes, static void drawGlyphs(drawContext *ctx, PView *p) { + static int numNodesError = 0; + // use adaptive data if available PViewData *data = p->getData(true); PViewOptions *opt = p->getOptions(); @@ -325,6 +327,15 @@ static void drawGlyphs(drawContext *ctx, PView *p) val[j] = new double[9]; } } + else{ + if(numNodesError != numNodes){ + numNodesError = numNodes; + Msg::Error("You should never draw views with > %d nodes per element: use" + "'Adapt visualization grid' to view high-order datasets!", + PVIEW_NMAX); + } + continue; + } } for(int j = 0; j < numNodes; j++){ data->getNode(opt->timeStep, ent, i, j, xyz[j][0], xyz[j][1], xyz[j][2]);