Skip to content
Snippets Groups Projects
Commit 66cf112c authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

ENH: flag to disable propagation in PipelineMemoryPrintCalculator

parent ed3172fe
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ public:
itkSetObjectMacro(DataToWrite, DataObjectType);
/** Compute pipeline memory print */
void Compute();
void Compute(bool propagate=true);
/** Const conversion factor */
static const double ByteToMegabyte;
......
......@@ -71,15 +71,18 @@ PipelineMemoryPrintCalculator
void
PipelineMemoryPrintCalculator
::Compute()
::Compute(bool propagate)
{
// Clear the visited process objects set
m_VisitedProcessObjects.clear();
// Dry run of pipeline synchronisation
m_DataToWrite->UpdateOutputInformation();
m_DataToWrite->SetRequestedRegionToLargestPossibleRegion();
m_DataToWrite->PropagateRequestedRegion();
if (propagate)
{
m_DataToWrite->UpdateOutputInformation();
m_DataToWrite->SetRequestedRegionToLargestPossibleRegion();
m_DataToWrite->PropagateRequestedRegion();
}
// Get the source process object
ProcessObjectType * source = m_DataToWrite->GetSource();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment