Skip to content

Commit

Permalink
Remove unneeded macros from AllocLevelData
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgrote committed Jun 10, 2024
1 parent e80ca98 commit acb5f79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Source/Parallelization/GuardCellManager.H
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public:
*/
void Init(
amrex::Real dt,
amrex::RealVect dx,
const amrex::Real * dx,
bool do_subcycling,
bool do_fdtd_nci_corr,
short grid_type,
Expand Down
2 changes: 1 addition & 1 deletion Source/Parallelization/GuardCellManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ using namespace amrex;
void
guardCellManager::Init (
const amrex::Real dt,
const amrex::RealVect dx,
const amrex::Real *dx,
const bool do_subcycling,
const bool do_fdtd_nci_corr,
const short grid_type,
Expand Down
8 changes: 1 addition & 7 deletions Source/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2120,13 +2120,7 @@ WarpX::AllocLevelData (int lev, const BoxArray& ba, const DistributionMapping& d
{
const bool aux_is_nodal = (field_gathering_algo == GatheringAlgo::MomentumConserving);

#if defined(WARPX_DIM_1D_Z)
const amrex::RealVect dx(WarpX::CellSize(lev)[2]);
#elif defined(WARPX_DIM_XZ) || defined(WARPX_DIM_RZ)
const amrex::RealVect dx = {WarpX::CellSize(lev)[0], WarpX::CellSize(lev)[2]};
#elif defined(WARPX_DIM_3D)
const amrex::RealVect dx = {WarpX::CellSize(lev)[0], WarpX::CellSize(lev)[1], WarpX::CellSize(lev)[2]};
#endif
const Real* dx = Geom(lev).CellSize();

// Initialize filter before guard cells manager
// (needs info on length of filter's stencil)
Expand Down

0 comments on commit acb5f79

Please sign in to comment.