Skip to content

Commit

Permalink
refs #9862 file based mode works but LoadMD all does not
Browse files Browse the repository at this point in the history
It is the question if the reason is wrong SaveSQW format or problem with LoadMD
  • Loading branch information
abuts committed Aug 14, 2014
1 parent 1b576c8 commit 8549294
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Code/Mantid/Framework/MDAlgorithms/src/LoadSQW.cpp
Expand Up @@ -306,23 +306,23 @@ namespace Mantid
// bc->shouldSplitBoxes(eventsAdded*2, lastNumBoxes) || (blockNum == numBlocks-1) )


//if (eventsAdded > 19000000 )
//{
// g_log.information() << "Splitting boxes after " << eventsAdded << " events added." << std::endl;
// Mantid::API::MemoryManager::Instance().releaseFreeMemory();

// // This splits up all the boxes according to split thresholds and sizes.
// Kernel::ThreadScheduler * ts = new ThreadSchedulerFIFO();
// ThreadPool tp(ts);
// ws->splitAllIfNeeded(ts);
// tp.joinAll();

// // Flush the cache - this will save things out to disk
// dbuf->flushCache();
// // Flush memory
// Mantid::API::MemoryManager::Instance().releaseFreeMemory();
// eventsAdded = 0;
//}
if (eventsAdded > 19000000 )
{
g_log.information() << "Splitting boxes after " << eventsAdded << " events added." << std::endl;
Mantid::API::MemoryManager::Instance().releaseFreeMemory();

// This splits up all the boxes according to split thresholds and sizes.
Kernel::ThreadScheduler * ts = new ThreadSchedulerFIFO();
ThreadPool tp(ts);
ws->splitAllIfNeeded(ts);
tp.joinAll();

// Flush the cache - this will save things out to disk
dbuf->flushCache();
// Flush memory
Mantid::API::MemoryManager::Instance().releaseFreeMemory();
eventsAdded = 0;
}

//
// if (false)
Expand Down

0 comments on commit 8549294

Please sign in to comment.