From 74fc62c2b66388575523639cb4ff612c2013e1fd Mon Sep 17 00:00:00 2001 From: Matti Pellika <matti.pellikka@tut.fi> Date: Tue, 26 Feb 2013 19:00:46 +0000 Subject: [PATCH] test 2 --- Geo/Chain.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Geo/Chain.h b/Geo/Chain.h index 721a429df0..5b4567d392 100644 --- a/Geo/Chain.h +++ b/Geo/Chain.h @@ -489,10 +489,10 @@ int Chain<C>::addToModel(GModel* m, bool post, if(dim > 0 && coeff < 0) ecopy->revert(); elements.push_back(ecopy); } + if(dim > 0) coeff = abs(coeff); std::vector<double> coeffs; - if(dim > 0) coeffs.push_back(abs(coeff)); - else coeffs.push_back(coeff); + for(int j = 0; j < e->getNumVertices(); j++) coeffs.push_back(coeff); data[e->getNum()] = coeffs; } int max[4]; @@ -521,7 +521,7 @@ int Chain<C>::addToModel(GModel* m, bool post, // create PView for instant visualization std::string pnum = convertInt(physicalNum); 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 int size = 30; PViewOptions* opt = view->getOptions(); -- GitLab