Skip to content

Commit

Permalink
Fix consts
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Nov 20, 2024
1 parent 021f36f commit 86864c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Diagnostics/ReducedDiags/FieldPoyntingFlux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void FieldPoyntingFlux::ComputeDiags (int step)
}

for (amrex::OrientationIter face; face; ++face) {
amrex::Box boundary = amrex::bdryNode(domain_box, face());
amrex::Box const boundary = amrex::bdryNode(domain_box, face());

// Get cell area
const amrex::Real *dx = warpx.Geom(lev).CellSize();
Expand Down Expand Up @@ -189,7 +189,7 @@ void FieldPoyntingFlux::ComputeDiags (int step)
}

auto r = reduce_data.value();
int ii = int(face())*3;
int const ii = int(face())*3;
m_data[ii+0] = amrex::get<0>(r)/PhysConst::mu0*dA;
m_data[ii+1] = amrex::get<1>(r)/PhysConst::mu0*dA;
m_data[ii+2] = amrex::get<2>(r)/PhysConst::mu0*dA;
Expand Down

0 comments on commit 86864c0

Please sign in to comment.