Commit adcbcb5f authored by Gaetano Raffaele's avatar Gaetano Raffaele

Working on the resume option to resume segmentation after fail or abort.

parent 9e7b4a3f
......@@ -92,7 +92,8 @@ void Controller<TSegmenter>::RunSegmentation()
// Run first partial segmentation
boost::timer t; t.restart();
long long unsigned int accumulatedMemory;
// temp. patch, maybe calculate real current memory after resuming graphs.
long long unsigned int accumulatedMemory = 2 * m_Memory;
if (!m_Resuming) {
accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>(
......@@ -108,8 +109,7 @@ void Controller<TSegmenter>::RunSegmentation()
m_TileHeight,
isFusion);
} else {
// temp. patch, maybe calculate real current memory after resuming graphs.
accumulatedMemory = 2 * m_Memory;
isFusion = true;
}
#ifdef OTB_USE_MPI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment