From fde2f5abfc38df00c06d87d95df6f04d99fe2ecb Mon Sep 17 00:00:00 2001 From: Ian Bush Date: Fri, 17 Oct 2014 11:09:24 +0100 Subject: [PATCH] Revert "Revert "Refs #10370 Reserve memory again in LoadMD."" This reverts commit ec902c6e993b6c61a8c550ce22eafb5962ea8da5. --- Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp b/Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp index 5b5d3b02c1d2..e9736c335496 100644 --- a/Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp +++ b/Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp @@ -366,7 +366,10 @@ namespace Mantid if(!box)continue; if(BoxEventIndex[2*i+1]>0) // Load in memory NOT using the file as the back-end, + { + boxTree[i]->reserveMemoryForLoad(BoxEventIndex[2*i+1]); boxTree[i]->loadAndAddFrom(loader.get(),BoxEventIndex[2*i],static_cast(BoxEventIndex[2*i+1])); + } } loader->closeFile();