Skip to content

Commit

Permalink
Revert "Revert "Refs #10370 Reserve memory again in LoadMD.""
Browse files Browse the repository at this point in the history
This reverts commit ec902c6.
  • Loading branch information
ianbush committed Oct 17, 2014
1 parent 68b05b4 commit fde2f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/MDAlgorithms/src/LoadMD.cpp
Expand Up @@ -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<size_t>(BoxEventIndex[2*i+1]));
}

}
loader->closeFile();
Expand Down

0 comments on commit fde2f5a

Please sign in to comment.