From e9ce1d2fdd6536d62ad5d03bbbaa88ce4a72ae0d Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Mon, 8 Mar 2010 11:41:36 +0000 Subject: [PATCH] create an unstretched initial configuration [[Imported from SVN: r5681]] --- rodobstacle.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rodobstacle.cc b/rodobstacle.cc index e7ccd774..6d6f853a 100644 --- a/rodobstacle.cc +++ b/rodobstacle.cc @@ -95,7 +95,7 @@ int main (int argc, char *argv[]) try // Create the two grids // /////////////////////////////////////// typedef OneDGrid GridType; - GridType grid(numRodBaseElements, 0, 1); + GridType grid(numRodBaseElements, 0, numRodBaseElements); std::vector<std::vector<BoxConstraint<double,3> > > trustRegionObstacles(1); std::vector<BitSetVector<1> > hasObstacle(1); @@ -150,8 +150,8 @@ int main (int argc, char *argv[]) try // ////////////////////////// for (int i=0; i<x.size(); i++) { - x[i].r[0] = double(i)/(x.size()-1); - x[i].r[1] = 0; + x[i].r[1] = i;//double(i)/(x.size()-1); + x[i].r[0] = 0; x[i].q = Rotation<2,double>::identity(); } -- GitLab