Commit d7ab2718 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed torus example.

parent 06988363
...@@ -14,10 +14,6 @@ public: ...@@ -14,10 +14,6 @@ public:
} }
}; };
// ===========================================================================
// ===== function definitions ================================================
// ===========================================================================
/// RHS function /// RHS function
class F : public AbstractFunction<double, WorldVector<double> > class F : public AbstractFunction<double, WorldVector<double> >
{ {
...@@ -80,7 +76,7 @@ public: ...@@ -80,7 +76,7 @@ public:
x *= radius2_/norm; x *= radius2_/norm;
x += center; x += center;
}; }
protected: protected:
double radius1_; double radius1_;
...@@ -209,8 +205,9 @@ int main(int argc, char* argv[]) ...@@ -209,8 +205,9 @@ int main(int argc, char* argv[])
adaptInfo->reset(); adaptInfo->reset();
adapt->adapt(); adapt->adapt();
for(i = 0; i < dow; i++) for (int i = 0; i < dow; i++)
delete parametricCoords[i]; delete parametricCoords[i];
delete [] localIndices; delete [] localIndices;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment