Skip to content

Commit

Permalink
not the header is correct also in mpi run simulation (#1103)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniele Rapetti <[email protected]>
  • Loading branch information
Iximiel and Iximiel authored Oct 11, 2024
1 parent 8fd9fc2 commit 22c7106
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 22c7106

Please sign in to comment.