Skip to content

Commit

Permalink
made the distributions namespace anonymus
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Apr 18, 2024
1 parent fb9b951 commit 7d26c1a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cltools/Benchmark.cpp
Expand Up @@ -261,7 +261,7 @@ struct Kernel :
}
};

namespace benchDistributions {
namespace {

class UniformSphericalVector {
//double rminCub;

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
Expand Down Expand Up @@ -409,7 +409,7 @@ struct tiledSimpleCubic:public AtomDistribution {

}
};
std::unique_ptr<AtomDistribution> getDistribution(std::string_view atomicDistr) {
std::unique_ptr<AtomDistribution> getAtomDistribution(std::string_view atomicDistr) {
std::unique_ptr<AtomDistribution> distribution;
if(atomicDistr == "line") {
distribution = std::make_unique<theLine>();
Expand All @@ -427,7 +427,7 @@ std::unique_ptr<AtomDistribution> getDistribution(std::string_view atomicDistr)
}
return distribution;
}
} //namespace benchDistributions
} //anonymus namespace for benchmark distributions
class Benchmark:
public CLTool
{
Expand Down Expand Up @@ -466,7 +466,7 @@ int Benchmark::main(FILE* in, FILE*out,Communicator& pc) {
// deterministic initializations to avoid issues with MPI
generator rng;
PLMD::Random atomicGenerator;
std::unique_ptr<benchDistributions::AtomDistribution> distribution;
std::unique_ptr<AtomDistribution> distribution;

struct FileDeleter {
void operator()(FILE*f) const noexcept {
Expand Down Expand Up @@ -645,7 +645,7 @@ int Benchmark::main(FILE* in, FILE*out,Communicator& pc) {
{
std::string atomicDistr;
parse("--atom-distribution",atomicDistr);
distribution = benchDistributions::getDistribution(atomicDistr);
distribution = getAtomDistribution(atomicDistr);
}

const auto initial_time=std::chrono::high_resolution_clock::now();
Expand Down

0 comments on commit 7d26c1a

Please sign in to comment.