Skip to content

Commit

Permalink
Fix warnings in PeleRad. (AMReX-Combustion#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Dec 19, 2023
1 parent 8e091fa commit 09c68c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Source/Radiation/POneSingleEB.H
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public:

void solve()
{
amrex::MultiFab const& vfrc = factory_->getVolFrac();

auto const max_coarsening_level = mlmgpp_.max_coarsening_level_;
auto const max_iter = mlmgpp_.max_iter_;
auto const max_fmg_iter = mlmgpp_.max_fmg_iter_;
Expand Down
5 changes: 2 additions & 3 deletions Testing/Exec/Radiation/tstPOneMultiEB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ initProbABecLaplacian(
amrex::FabArray<amrex::EBCellFlagFab> const& flags =
factory[ilev]->getMultiEBCellFlagFab();
auto const dx = geom[ilev].CellSizeArray();
amrex::Box const& domainbox = geom[ilev].Domain();

for (amrex::MFIter mfi(rhs[ilev]); mfi.isValid(); ++mfi) {
amrex::Box const& bx = mfi.validbox();
Expand Down Expand Up @@ -143,8 +142,6 @@ main(int argc, char* argv[])
int const nlevels = amrpp.max_level_ + 1;
int const max_level = amrpp.max_level_;
int const ref_ratio = amrpp.ref_ratio_;
int const composite_solve = mlmgpp.composite_solve_;

int const max_grid_size = amrpp.max_grid_size_;

amrex::Vector<amrex::Geometry> geom;
Expand Down Expand Up @@ -185,7 +182,9 @@ main(int argc, char* argv[])
// rotated box
int const max_coarsening_level = mlmgpp.max_coarsening_level_;
amrex::Real const la = std::sqrt(2.0) / 2.0;
#if (AMREX_SPACEDIM == 3)
amrex::Real const shift = std::sqrt(2.0) / 3.0;
#endif
amrex::EB2::BoxIF box(
{AMREX_D_DECL(-la, -la, -1.0)}, {AMREX_D_DECL(la, la, -1.0 + 4.0 * shift)},
true);
Expand Down
3 changes: 2 additions & 1 deletion Testing/Exec/Radiation/tstPOneSingleEB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ initProbABecLaplacian(
// amrex::MultiCutFab const& cent = factory->getCentroid();

auto const dx = geom.CellSizeArray();
amrex::Box const& domainbox = geom.Domain();

for (amrex::MFIter mfi(rhs); mfi.isValid(); ++mfi) {
amrex::Box const& bx = mfi.validbox();
Expand Down Expand Up @@ -176,7 +175,9 @@ main(int argc, char* argv[])
// rotated box
int const max_coarsening_level = mlmgpp.max_coarsening_level_;
amrex::Real const la = std::sqrt(2.0) / 2.0;
#if (AMREX_SPACEDIM == 3)
amrex::Real const shift = std::sqrt(2.0) / 3.0;
#endif
amrex::EB2::BoxIF box(
{AMREX_D_DECL(-la, -la, -1.0)}, {AMREX_D_DECL(la, la, -1 + 4.0 * shift)},
true);
Expand Down

0 comments on commit 09c68c4

Please sign in to comment.