Skip to content

Commit

Permalink
Fixed some critical names:
Browse files Browse the repository at this point in the history
small typo and HDF5Output_access_file to HDFOutput
  • Loading branch information
Jan-Niklas Bohnensack committed May 13, 2024
1 parent 70c634d commit ba166b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/module/HDF5Output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<HDF5Output*>(this)->candidatesSinceFlush++;
Output::process(candidate);
Expand Down
2 changes: 1 addition & 1 deletion src/module/ParticleCollector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ba166b3

Please sign in to comment.