From 22c71069cad5e6315ea4ce5463fb2181488bc5cf Mon Sep 17 00:00:00 2001 From: Daniele Date: Fri, 11 Oct 2024 10:12:29 +0200 Subject: [PATCH] not the header is correct also in mpi run simulation (#1103) Co-authored-by: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> --- src/cltools/Benchmark.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/cltools/Benchmark.cpp b/src/cltools/Benchmark.cpp index 9f251fc6f0..697606d794 100644 --- a/src/cltools/Benchmark.cpp +++ b/src/cltools/Benchmark.cpp @@ -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); @@ -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";