From 7f04a21250d24119b247c07cb4c788eea4b306cc Mon Sep 17 00:00:00 2001 From: Tomasz Kozak <tomasz.kozak@desy.de> Date: Tue, 21 Jan 2020 13:27:32 +0100 Subject: [PATCH] do not iterate over module list, just use writeAll(), comment throw statements --- src/ApplicationModule.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ApplicationModule.cc b/src/ApplicationModule.cc index 0f779bfe..f83f3754 100644 --- a/src/ApplicationModule.cc +++ b/src/ApplicationModule.cc @@ -90,13 +90,14 @@ namespace ChimeraTK { } void ApplicationModule::incrementDataFaultCounter(bool writeAllOutputs) { - writeAllOutputs ? throw ChimeraTK::runtime_error("incrementDataFaultCounter with writeAllOutputs set true.") : throw ChimeraTK::runtime_error("incrementDataFaultCounter with writeAllOutputs set false."); + //writeAllOutputs ? throw ChimeraTK::runtime_error("incrementDataFaultCounter with writeAllOutputs set true.") : throw ChimeraTK::runtime_error("incrementDataFaultCounter with writeAllOutputs set false."); if (writeAllOutputs && !faultCounter) { //TO_DO -> the module should write all its outputs again (old values with data validity flag) -> Issue #87 in application core - throw ChimeraTK::runtime_error("We will now execute incrementDataFaultCounter with module rewrite."); - for (auto module : moduleList) { - module->writeAll(); - } + //throw ChimeraTK::runtime_error("We will now execute incrementDataFaultCounter with module rewrite."); + //for (auto module : moduleList) { + // module->writeAll(); + //} + this->writeAll(); } ++faultCounter; } -- GitLab