From 6204a092836e48f82bdc2f8dff4efe0dad986c09 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Thu, 4 Feb 2010 17:48:45 +0000 Subject: [PATCH] easier testing: start from the straight solution [[Imported from SVN: r5479]] --- rodobstacle.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rodobstacle.cc b/rodobstacle.cc index b6a65f98..694f91d2 100644 --- a/rodobstacle.cc +++ b/rodobstacle.cc @@ -149,8 +149,12 @@ int main (int argc, char *argv[]) try // ////////////////////////// // Initial solution // ////////////////////////// - x = 0; - x[x.size()-1][2] = 2*M_PI; + + for (int i=0; i<x.size(); i++) { + x[i][0] = 1.0/(x.size()-1); + x[i][1] = 0; + x[i][2] = 0; + } // ///////////////////////////////////////////////////////////////////// -- GitLab