From 9be960a8c0dbccefb517e98b00a4e3531df0b1d0 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Tue, 28 Oct 2014 17:41:34 -0400 Subject: [PATCH] Suspected memory leak --- common/pmmc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/pmmc.h b/common/pmmc.h index da334fa2..00818a4b 100644 --- a/common/pmmc.h +++ b/common/pmmc.h @@ -309,14 +309,14 @@ class TriLinPoly{ int ic,jc,kc; double a,b,c,d,e,f,g,h; double x,y,z; + double C[8]; public: - DoubleArray Corners; - TriLinPoly(){ - Corners.New(2,2,2); } ~TriLinPoly(){ - Corners.~DoubleArray(); + } + double Corners(int i, int j, int k){ + return C[k*4+j*2+i]; } // Assign the polynomial within a cube from a mesh void assign(DoubleArray &A, int i, int j, int k){