From: adam Date: Tue, 19 May 2009 10:29:57 +0000 (+0000) Subject: windows port X-Git-Tag: V5_1_main_FINAL~392 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9450a1bb2d700f80b4d50bd16bd5f9d87a3bfbc8;p=tools%2Fmedcoupling.git windows port --- 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)