Skip to content

Commit

Permalink
Merge branch 'v2.10'
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocamilloni committed Oct 11, 2024
2 parents 353aa59 + 22c7106 commit b5976c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/cltools/Benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,7 @@ int Benchmark::main(FILE* in, FILE*out,Communicator& pc) {
// read other flags:
bool shuffled=false;
parseFlag("--shuffled",shuffled);
if (shuffled)
log << "Using --shuffled\n";

int nf; parse("--nsteps",nf);
log << "Using --nsteps=" << nf << "\n";
unsigned natoms; parse("--natoms",natoms);
Expand All @@ -646,12 +645,15 @@ int Benchmark::main(FILE* in, FILE*out,Communicator& pc) {

bool domain_decomposition=false;
parseFlag("--domain-decomposition",domain_decomposition);
if (domain_decomposition)
log << "Using --domain-decomposition\n";

if(pc.Get_size()>1) domain_decomposition=true;
if(domain_decomposition) shuffled=true;

if (shuffled)
log << "Using --shuffled\n";
if (domain_decomposition)
log << "Using --domain-decomposition\n";

double timeToSleep;
parse("--sleep",timeToSleep);
log << "Using --sleep=" << timeToSleep << "\n";
Expand Down

0 comments on commit b5976c7

Please sign in to comment.