From d7ab27186270f268011f0360089c3d1df37628b4 Mon Sep 17 00:00:00 2001
From: Thomas Witkowski <thomas.witkowski@gmx.de>
Date: Tue, 21 Jul 2009 07:42:48 +0000
Subject: [PATCH] Fixed torus example.

---
 demo/src/torus.cc | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/demo/src/torus.cc b/demo/src/torus.cc
index 739152ef..cdc5d7e7 100644
--- a/demo/src/torus.cc
+++ b/demo/src/torus.cc
@@ -14,10 +14,6 @@ public:
   }
 };
 
-// ===========================================================================
-// ===== function definitions ================================================
-// ===========================================================================
-
 /// RHS function
 class F : public AbstractFunction<double, WorldVector<double> >
 {
@@ -80,7 +76,7 @@ public:
     x *= radius2_/norm;
 
     x += center;
-  };
+  }
 
 protected:
   double radius1_;
@@ -209,8 +205,9 @@ int main(int argc, char* argv[])
   adaptInfo->reset();
   adapt->adapt();
 
-  for(i = 0; i < dow; i++)
+  for (int i = 0; i < dow; i++)
     delete parametricCoords[i];
+
   delete [] localIndices;
 }
 
-- 
GitLab