Skip to content
Snippets Groups Projects
Commit 74fc62c2 authored by Matti Pellika's avatar Matti Pellika
Browse files

test 2

parent e37bc69c
No related branches found
No related tags found
No related merge requests found
...@@ -489,10 +489,10 @@ int Chain<C>::addToModel(GModel* m, bool post, ...@@ -489,10 +489,10 @@ int Chain<C>::addToModel(GModel* m, bool post,
if(dim > 0 && coeff < 0) ecopy->revert(); if(dim > 0 && coeff < 0) ecopy->revert();
elements.push_back(ecopy); elements.push_back(ecopy);
} }
if(dim > 0) coeff = abs(coeff);
std::vector<double> coeffs; std::vector<double> coeffs;
if(dim > 0) coeffs.push_back(abs(coeff)); for(int j = 0; j < e->getNumVertices(); j++) coeffs.push_back(coeff);
else coeffs.push_back(coeff);
data[e->getNum()] = coeffs; data[e->getNum()] = coeffs;
} }
int max[4]; int max[4];
...@@ -521,7 +521,7 @@ int Chain<C>::addToModel(GModel* m, bool post, ...@@ -521,7 +521,7 @@ int Chain<C>::addToModel(GModel* m, bool post,
// create PView for instant visualization // create PView for instant visualization
std::string pnum = convertInt(physicalNum); std::string pnum = convertInt(physicalNum);
std::string postname = pnum + "=" + _name; std::string postname = pnum + "=" + _name;
PView* view = new PView(postname, "ElementData", m, data, 0., 1); PView* view = new PView(postname, "ElementNodeData", m, data, 0., 1);
// the user should be interested about the orientations // the user should be interested about the orientations
int size = 30; int size = 30;
PViewOptions* opt = view->getOptions(); PViewOptions* opt = view->getOptions();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment