Skip to content
Snippets Groups Projects
Commit f9a7f381 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't return early if time steo does not exist

parent 15e06805
No related branches found
No related tags found
No related merge requests found
...@@ -377,13 +377,12 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep, ...@@ -377,13 +377,12 @@ bool OctreePost::_getValue(void *in, int nbComp, double P[3], int timestep,
std::vector<double> nodeval(e->getNumVertices() * 9); std::vector<double> nodeval(e->getNumVertices() * 9);
for(int step = 0; step < _theViewDataGModel->getNumTimeSteps(); step++){ for(int step = 0; step < _theViewDataGModel->getNumTimeSteps(); step++){
if(!_theViewDataGModel->hasTimeStep(step)) continue;
if(timestep < 0 || step == timestep){ if(timestep < 0 || step == timestep){
for(int nod = 0; nod < e->getNumVertices(); nod++){ for(int nod = 0; nod < e->getNumVertices(); nod++){
for(int comp = 0; comp < nbComp; comp++){ for(int comp = 0; comp < nbComp; comp++)
if(!_theViewDataGModel->getValueByIndex(step, dataIndex[nod], nod, comp, _theViewDataGModel->getValueByIndex(step, dataIndex[nod], nod, comp,
nodeval[nod * nbComp + comp])) nodeval[nod * nbComp + comp]);
return false;
}
} }
for(int comp = 0; comp < nbComp; comp++){ for(int comp = 0; comp < nbComp; comp++){
double val = e->interpolate(&nodeval[comp], U[0], U[1], U[2], nbComp); double val = e->interpolate(&nodeval[comp], U[0], U[1], U[2], nbComp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment