From 7fd7d99dc2d97764a604e0a126add8559d30a2a7 Mon Sep 17 00:00:00 2001 From: Emilie Marchandise <emilie.marchandise@uclouvain.be> Date: Fri, 6 Jan 2012 14:30:39 +0000 Subject: [PATCH] bug fix in physRegions of matheval --- Plugin/MathEval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/MathEval.cpp b/Plugin/MathEval.cpp index a293bbf42c..5d9dab18d4 100644 --- a/Plugin/MathEval.cpp +++ b/Plugin/MathEval.cpp @@ -185,7 +185,7 @@ PView *GMSH_MathEvalPlugin::execute(PView *view) int timeBeg = (timeStep < 0) ? firstNonEmptyStep : timeStep; int timeEnd = (timeStep < 0) ? -timeStep : timeStep + 1; for(int ent = 0; ent < data1->getNumEntities(timeBeg); ent++){ - if (region>0 && ent!=region) continue; + if (region>0 && (ent+1)!=region) continue; for(int ele = 0; ele < data1->getNumElements(timeBeg, ent); ele++){ if(data1->skipElement(timeBeg, ent, ele)) continue; int numNodes = data1->getNumNodes(timeBeg, ent, ele); -- GitLab