diff --git a/examples/8c_benchmark_ptl_parallel.cpp b/examples/8c_benchmark_ptl_parallel.cpp index 20aa9c6303..ca95f0f6ef 100644 --- a/examples/8c_benchmark_ptl_parallel.cpp +++ b/examples/8c_benchmark_ptl_parallel.cpp @@ -498,8 +498,9 @@ int parseArgs(int argc, char *argv[], TestInput &input) { if (argc == 2) { + std::string filename = argv[1]; std::fstream infile; - infile.open(argv[1], std::ios::in); + infile.open(filename, std::ios::in); if (!infile.is_open()) { if (input.m_MPIRank == 0) @@ -685,7 +686,6 @@ void BasicParticlePattern::store(Series &series, int step) std::cout<<" STEP: "< result(m_Input.m_MPISize, 0); - // unsigned long buffer[m_Input.m_MPISize]; MPI_Allgather( &count, 1,