Skip to content

Commit

Permalink
Cleanup call to CellSize
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jun 7, 2024
1 parent 5122092 commit 4604386
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Diagnostics/ReducedDiags/FieldEnergy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void FieldEnergy::ComputeDiags (int step)
const MultiFab & Bz = warpx.getField(FieldType::Bfield_aux, lev,2);

// get cell volume
const std::array<Real, 3> &dx = warpx.CellSize(lev);
const std::array<Real, 3> &dx = WarpX::CellSize(lev);
const amrex::Real dV = dx[0]*dx[1]*dx[2];

Geometry const & geom = warpx.Geom(lev);
Expand Down
2 changes: 1 addition & 1 deletion Source/Diagnostics/ReducedDiags/FieldMomentum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ void FieldMomentum::ComputeDiags (int step)
amrex::ParallelDescriptor::ReduceRealSum({ExB_x,ExB_y,ExB_z});

// Get cell volume
const std::array<Real, 3> &dx = warpx.CellSize(lev);
const std::array<Real, 3> &dx = WarpX::CellSize(lev);
const amrex::Real dV = dx[0]*dx[1]*dx[2];

// Save data (offset: 3 values for each refinement level)
Expand Down

0 comments on commit 4604386

Please sign in to comment.