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() ...@@ -92,7 +92,8 @@ void Controller<TSegmenter>::RunSegmentation()
// Run first partial segmentation // Run first partial segmentation
boost::timer t; t.restart(); 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) { if (!m_Resuming) {
accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>( accumulatedMemory = RunFirstPartialSegmentation<TSegmenter>(
...@@ -108,8 +109,7 @@ void Controller<TSegmenter>::RunSegmentation() ...@@ -108,8 +109,7 @@ void Controller<TSegmenter>::RunSegmentation()
m_TileHeight, m_TileHeight,
isFusion); isFusion);
} else { } else {
// temp. patch, maybe calculate real current memory after resuming graphs. isFusion = true;
accumulatedMemory = 2 * m_Memory;
} }
#ifdef OTB_USE_MPI #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