From ba166b334a9343c7919a92fa0a7bcda19936fce7 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Bohnensack Date: Mon, 13 May 2024 17:46:15 +0200 Subject: [PATCH] Fixed some critical names: small typo and HDF5Output_access_file to HDFOutput --- src/module/HDF5Output.cpp | 4 ++-- src/module/ParticleCollector.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/module/HDF5Output.cpp b/src/module/HDF5Output.cpp index 632fa1371..00ad3a3e2 100644 --- a/src/module/HDF5Output.cpp +++ b/src/module/HDF5Output.cpp @@ -248,7 +248,7 @@ void HDF5Output::close() { } void HDF5Output::process(Candidate* candidate) const { - #pragma omp critical(HDF5Output_access_file) + #pragma omp critical(HDFOutput) { if (file == -1) // This is ugly, but necesary as otherwise the user has to manually open the @@ -316,7 +316,7 @@ void HDF5Output::process(Candidate* candidate) const { pos += v.copyToBuffer(&r.propertyBuffer[pos]); } - #pragma omp critical(HDF5Output_access_file) + #pragma omp critical(HDFOutput) { const_cast(this)->candidatesSinceFlush++; Output::process(candidate); diff --git a/src/module/ParticleCollector.cpp b/src/module/ParticleCollector.cpp index 74e820680..f37d3779c 100644 --- a/src/module/ParticleCollector.cpp +++ b/src/module/ParticleCollector.cpp @@ -21,7 +21,7 @@ ParticleCollector::ParticleCollector(const std::size_t nBuffer, const bool clone } void ParticleCollector::process(Candidate *c) const { -#pragma omp critical(ModifiyContainer) +#pragma omp critical(ModifyContainer) { if(clone) container.push_back(c->clone(recursive));