Skip to content

Commit 228e29e

Browse files
committed
Do not use C++11 range loop with OpenMP
OpenMP 4.0 does not actually support it.
1 parent 880b9eb commit 228e29e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Detectors/TPC/workflow/src/ChunkedDigitPublisher.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ void publishMergedTimeframes(std::vector<int> const& lanes, std::vector<int> con
148148
LOG(INFO) << "Running digit publisher with OpenMP enabled";
149149
#pragma omp parallel for schedule(dynamic)
150150
#endif
151-
for (auto& filename : digitfilelist) {
151+
for (size_t fi = 0; fi < digitfilelist.size(); ++fi) {
152+
auto& filename = digitfilelist[fi];
152153
LOG(DEBUG) << "MERGING CHUNKED DIGITS FROM FILE " << filename;
153154
auto originfile = new TFile(filename.c_str(), "OPEN");
154155
assert(originfile);

0 commit comments

Comments
 (0)