From f9a7f381c3a6150bf5e23170523e3ab2189d462d Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Fri, 16 Sep 2011 15:17:38 +0000 Subject: [PATCH] don't return early if time steo does not exist --- Post/OctreePost.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Post/OctreePost.cpp b/Post/OctreePost.cpp index b53184f6d5..7cfaf012d3 100644 --- a/Post/OctreePost.cpp +++ b/Post/OctreePost.cpp @@ -377,13 +377,12 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep, std::vector<double> nodeval(e->getNumVertices() * 9); for(int step = 0; step < _theViewDataGModel->getNumTimeSteps(); step++){ + if(!_theViewDataGModel->hasTimeStep(step)) continue; if(timestep < 0 || step == timestep){ for(int nod = 0; nod < e->getNumVertices(); nod++){ - for(int comp = 0; comp < nbComp; comp++){ - if(!_theViewDataGModel->getValueByIndex(step, dataIndex[nod], nod, comp, - nodeval[nod * nbComp + comp])) - return false; - } + for(int comp = 0; comp < nbComp; comp++) + _theViewDataGModel->getValueByIndex(step, dataIndex[nod], nod, comp, + nodeval[nod * nbComp + comp]); } for(int comp = 0; comp < nbComp; comp++){ double val = e->interpolate(&nodeval[comp], U[0], U[1], U[2], nbComp); -- GitLab