Skip to content

Commit

Permalink
Update Source/Diagnostics/WarpXOpenPMD.cpp
Browse files Browse the repository at this point in the history
added  const to bool variable via Luca Fedeli

Co-authored-by: Luca Fedeli <[email protected]>
  • Loading branch information
guj and lucafedeli88 authored Feb 5, 2025
1 parent 070c418 commit abef742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Diagnostics/WarpXOpenPMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ for (const auto & particle_diag : particle_diags) {
}

auto hasOption=m_OpenPMDoptions.find("FlattenSteps");
bool flattenSteps = isBTD && (m_Series->backend() == "ADIOS2") && (hasOption != std::string::npos);
const bool flattenSteps = isBTD && (m_Series->backend() == "ADIOS2") && (hasOption != std::string::npos);

if ( flattenSteps)
{
Expand Down

0 comments on commit abef742

Please sign in to comment.