Skip to content

Commit

Permalink
fix compiler warning and compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Nov 7, 2024
1 parent 44acb1e commit b9c7c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Source/driver/Derive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,6 @@ extern "C"
auto const dat = datfab.array();
auto const der = derfab.array();

auto dx = geom.CellSizeArray();
auto problo = geom.ProbLoArray();
auto geomdata = geom.data();

amrex::ParallelFor(bx,
Expand Down Expand Up @@ -623,8 +621,6 @@ extern "C"
auto const dat = datfab.array();
auto const der = derfab.array();

auto dx = geom.CellSizeArray();
auto problo = geom.ProbLoArray();
auto geomdata = geom.data();

amrex::ParallelFor(bx,
Expand Down Expand Up @@ -694,8 +690,6 @@ extern "C"
{

int idir = 0;
auto dx = geom.CellSizeArray();
auto problo = geom.ProbLoArray();
auto geomdata = geom.data();

auto const dat = datfab.array();
Expand Down Expand Up @@ -728,8 +722,6 @@ extern "C"
{

int idir = 1;
auto dx = geom.CellSizeArray();
auto problo = geom.ProbLoArray();
auto geomdata = geom.data();

auto const dat = datfab.array();
Expand Down Expand Up @@ -761,8 +753,6 @@ extern "C"
{

int idir = 2;
auto dx = geom.CellSizeArray();
auto problo = geom.ProbLoArray();
auto geomdata = geom.data();

auto const dat = datfab.array();
Expand Down
2 changes: 2 additions & 0 deletions Source/gravity/Gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,7 @@ Gravity::interpolate_monopole_grav(int level, RealVector& radial_grav, MultiFab&
const Real dr = dx[0] / static_cast<Real>(gravity::drdxfac);

const auto problo = geom.ProbLoArray();
const auto geomdata = geom.data();

#ifdef _OPENMP
#pragma omp parallel
Expand Down Expand Up @@ -1443,6 +1444,7 @@ Gravity::compute_radial_mass(const Box& bx,
Real drinv = 1.0_rt / dr;

const int coord_type = geom.Coord();
const auto geomdata = geom.data();

AMREX_ALWAYS_ASSERT(coord_type >= 0 && coord_type <= 2);

Expand Down

0 comments on commit b9c7c1f

Please sign in to comment.