Skip to content
Snippets Groups Projects
Commit 7f04a212 authored by Tomasz Kozak's avatar Tomasz Kozak
Browse files

do not iterate over module list, just use writeAll(), comment throw statements

parent dc0dfd6f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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