From 9450a1bb2d700f80b4d50bd16bd5f9d87a3bfbc8 Mon Sep 17 00:00:00 2001 From: adam Date: Tue, 19 May 2009 10:29:57 +0000 Subject: [PATCH] windows port --- src/INTERP_KERNEL/Interpolation3D.txx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/INTERP_KERNEL/Interpolation3D.txx b/src/INTERP_KERNEL/Interpolation3D.txx index ef58eb833..88478ea4e 100644 --- a/src/INTERP_KERNEL/Interpolation3D.txx +++ b/src/INTERP_KERNEL/Interpolation3D.txx @@ -253,8 +253,8 @@ namespace INTERP_KERNEL // create BBTree structure // - get bounding boxes - double bboxes[6 * numSrcElems]; - int srcElemIdx[numSrcElems]; + double* bboxes = new double[6 * numSrcElems]; + int* srcElemIdx = new int[numSrcElems]; for(unsigned long i = 0; i < numSrcElems ; ++i) { // get source bboxes in right order @@ -272,6 +272,9 @@ namespace INTERP_KERNEL BBTree<3,ConnType> tree(bboxes, srcElemIdx, 0, numSrcElems); + delete [] bboxes; + delete [] srcElemIdx; + // for each target element, get source elements with which to calculate intersection // - calculate intersection by calling intersectCells for(unsigned long i = 0; i < numTargetElems; ++i) -- 2.39.2