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

finalize should reinit adaptive data

parent f8a3ffbe
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,8 @@ bool PViewData::finalize()
Msg::Info("Initializing adaptive data %p interp size=%d",
this, _interpolation.size());
_adaptive = new adaptiveData(this);
_adaptive->initWithLowResolution(0);
}
if(_adaptive) _adaptive->initWithLowResolution(0);
_dirty = false;
return true;
}
......
......@@ -999,11 +999,13 @@ void adaptiveElements<T>::initWithLowResolution(PViewData *data, int step)
if(data->skipElement(step, ent, ele) ||
data->getNumEdges(step, ent, ele) != T::numEdges) continue;
if(numVal != data->getNumValues(step, ent, ele)){
Msg::Error("Wrong number of values (%d) in element %d (expecting %d)", numVal, ele, data->getNumValues(step, ent, ele));
Msg::Error("Wrong number of values (%d) in element %d (expecting %d)",
numVal, ele, data->getNumValues(step, ent, ele));
continue;
}
if(numNodes != data->getNumNodes(step, ent, ele)){
Msg::Error("Wrong number of nodes (%d) in element %d (expecting %d)", numNodes, ele, data->getNumNodes(step, ent, ele));
Msg::Error("Wrong number of nodes (%d) in element %d (expecting %d)",
numNodes, ele, data->getNumNodes(step, ent, ele));
continue;
}
for(int nod = 0; nod < numNodes; nod++){
......
......@@ -16,4 +16,4 @@ Transfinite Line {4} = 20 Using Progression 1./1.2;
Transfinite Line {3,2} = 10 Using Progression 1;
Transfinite Line {5} = 19 Using Progression 1;
Transfinite Surface {7} = {3,6,4,2} Alternated;
Recombine Surface {7};
//Recombine Surface {7};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment