From 4f97ec4bc8081bf9d17613e2dad3f8bad60eed22 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 24 Jan 2011 08:03:45 +0100 Subject: [PATCH] Revert "ProcessFields fix: hdf5 dumps need dynamic memory allocation" This reverts commit ae3e15770ee4c830ceace7abb3b64c238f11a00e. --- Common/processfields.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Common/processfields.cpp b/Common/processfields.cpp index b3194c9..1c6c295 100644 --- a/Common/processfields.cpp +++ b/Common/processfields.cpp @@ -449,8 +449,7 @@ bool ProcessFields::DumpVectorArray2HDF5(string filename, string groupName, stri // I have not the slightest idea why this array-copy action is necessary... but it's the only way hdf5 does what it is supposed to do anyway!! // at least it is save in case FDTD_FLOAT was defined as double... // why does hdf5 write the dimensions backwards??? or matlab??? - unsigned int reverse_numLines[] = {numLines[2], numLines[1], numLines[0]}; - float ****hdf5array = Create_N_3DArray(reverse_numLines); + float hdf5array[3][numLines[2]][numLines[1]][numLines[0]]; for (int n=0; n<3; ++n) { for (unsigned int i=0; i(reverse_numLines); + float hdf5array[3][numLines[2]][numLines[1]][numLines[0]]; for (int n=0; n<3; ++n) { for (unsigned int i=0; i