Skip to content

Commit

Permalink
AMReX & WarpX 24.08: Breaking Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Aug 5, 2024
1 parent c7629df commit 2e4ad42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/initialization/InitAmrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ namespace details
// set max_grid_size to blocking_factor to fix the number of boxes we generate
amrex::ParmParse pp_amr("amr");
bool const has_max_grid_size =
pp_amr.countRecords("max_grid_size") > 0 ||
pp_amr.countRecords("max_grid_size_x") > 0 ||
pp_amr.countRecords("max_grid_size_y") > 0 ||
pp_amr.countRecords("max_grid_size_z") > 0;
pp_amr.countname("max_grid_size") > 0 ||
pp_amr.countname("max_grid_size_x") > 0 ||
pp_amr.countname("max_grid_size_y") > 0 ||
pp_amr.countname("max_grid_size_z") > 0;
amrex::Vector<int> const bf_lvl0(amr_info.blocking_factor[0].begin(), amr_info.blocking_factor[0].end());
auto bf_lvl0_iv = amrex::IntVect(bf_lvl0[0]);
if (!has_max_grid_size) {
Expand Down
1 change: 1 addition & 0 deletions src/particles/spacecharge/PoissonSolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ namespace impactx::spacecharge
pc.GetParGDB()->Geom(),
pc.GetParGDB()->DistributionMap(),
pc.GetParGDB()->boxArray(),
ablastr::utils::enums::GridType::Collocated,
poisson_boundary_handler,
is_solver_igf_on_lev0,
do_single_precision_comms,
Expand Down

0 comments on commit 2e4ad42

Please sign in to comment.