From e1c36f418d17c0c04a1f559c8acacd341fd661ac Mon Sep 17 00:00:00 2001 From: guj Date: Fri, 20 Sep 2024 14:11:09 -0700 Subject: [PATCH] touch up after CodeQL --- examples/8c_benchmark_ptl_parallel.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,