From e82478742eb1598c11e0609b0cd5c9b558f1365b Mon Sep 17 00:00:00 2001
From: Thomas Witkowski <thomas.witkowski@gmx.de>
Date: Wed, 21 Jul 2010 07:27:13 +0000
Subject: [PATCH] Updated Reinit library to last changes in operator and
 assembler interfaces.

---
 .../Reinit/src/VelocityExtFromVelocityField.h | 20 ++++++-------------
 1 file changed, 6 insertions(+), 14 deletions(-)

diff --git a/AMDiS/Reinit/src/VelocityExtFromVelocityField.h b/AMDiS/Reinit/src/VelocityExtFromVelocityField.h
index 866ae1c5..4cea13e9 100644
--- a/AMDiS/Reinit/src/VelocityExtFromVelocityField.h
+++ b/AMDiS/Reinit/src/VelocityExtFromVelocityField.h
@@ -25,16 +25,14 @@ public:
   {
     FUNCNAME("VelocityExtFromVelocityField::VelocityExtFromVelocityField()");
     
-    lSFctVal = new double[dim + 1];
+    lSFctVal.change_dim(dim + 1);
     
     // ===== set epsilon for norm regularization =====
     NormEps::setEps();
   }
 
   ~VelocityExtFromVelocityField()
-  {
-    delete [] lSFctVal;
-  }
+  {}
 
   /**
    * Set velocity field.
@@ -92,19 +90,13 @@ public:
    */
   DimVec<double> elNormalVel;
 
-  /**
-   * Values of level set function in vertices of element.
-   */
-  double *lSFctVal;
+  /// Values of level set function in vertices of element.
+  ElementVector lSFctVal;
 
-  /**
-   * Basis functions.
-   */
+  /// Basis functions.
   const BasisFunction *basFcts;
 
-  /**
-   * ElInfo used in calcVelocityBoundary().
-   */
+  /// ElInfo used in calcVelocityBoundary().
   ElInfo *elInfo;
 };
 
-- 
GitLab