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

fix getNumValues for non isoparametric case

parent 4efea0e4
No related branches found
No related tags found
No related merge requests found
...@@ -456,7 +456,11 @@ int PViewDataGModel::getNumComponents(int step, int ent, int ele) ...@@ -456,7 +456,11 @@ int PViewDataGModel::getNumComponents(int step, int ent, int ele)
int PViewDataGModel::getNumValues(int step, int ent, int ele) int PViewDataGModel::getNumValues(int step, int ent, int ele)
{ {
if(_type == ElementNodeData || _type == NodeData){ if(_type == ElementNodeData){
MElement *e = _getElement(step, ent, ele);
return _steps[step]->getMult(e->getNum()) * getNumComponents(step, ent, ele);
}
else if(_type == NodeData){
return getNumNodes(step, ent, ele) * getNumComponents(step, ent, ele); return getNumNodes(step, ent, ele) * getNumComponents(step, ent, ele);
} }
else if(_type == ElementData){ else if(_type == ElementData){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment