Skip to content

Commit

Permalink
touch up after CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
guj committed Sep 20, 2024
1 parent 348a1c3 commit e1c36f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/8c_benchmark_ptl_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -685,7 +686,6 @@ void BasicParticlePattern::store(Series &series, int step)
std::cout<<" STEP: "<<step<<std::endl;
*/
std::string stepStr = "STEP " + std::to_string(step);
// Timer timer(stepStr, m_Input.m_MPIRank, Timer::MIN);
Timer timer(stepStr, m_Input.m_MPIRank, Timer::FULL);

ParticleSpecies &currSpecies =
Expand Down Expand Up @@ -799,7 +799,6 @@ void BasicParticlePattern::getParticleLayout(
Checkpoint x(" GetPTLOffset", m_Input.m_MPIRank);

std::vector<unsigned long> result(m_Input.m_MPISize, 0);
// unsigned long buffer[m_Input.m_MPISize];
MPI_Allgather(
&count,
1,
Expand Down

0 comments on commit e1c36f4

Please sign in to comment.