Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some warnings from clang-tidy in the MOL code #2545

Merged
merged 1 commit into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ void problem_initialize_state_data (int i, int j, int k,
Array4<Real> const& state,
const GeometryData& geomdata)
{
int coord_type = geomdata.Coord();

const Real* dx = geomdata.CellSize();
const Real* problo = geomdata.ProbLo();

Expand Down
6 changes: 2 additions & 4 deletions Source/hydro/Castro_mol_hydro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ Castro::construct_mol_hydro_source(Real time, Real dt, MultiFab& A_update)
}


const Real *dx = geom.CellSize();

MultiFab& S_new = get_new_data(State_Type);

int coord = geom.Coord();
Expand Down Expand Up @@ -560,21 +558,21 @@ Castro::construct_mol_hydro_source(Real time, Real dt, MultiFab& A_update)
});
} // end do_hydro

#ifdef DIFFUSION
// add a diffusive flux
cond.resize(obx, 1);
Elixir elix_cond = cond.elixir();
auto cond_arr = cond.array();

#ifdef DIFFUSION
fill_temp_cond(obx, Sborder.array(mfi), cond_arr);

const Box& nbx = amrex::surroundingNodes(bx, idir);

mol_diffusive_flux(nbx, idir,
uin_arr, cond_arr,
flux[idir].array());

#endif

} // end idir loop

#ifndef AMREX_USE_GPU
Expand Down
4 changes: 2 additions & 2 deletions Source/hydro/fourth_center_average.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _FOURTH_CENTER_AVERAGE_H_
#define _FOURTH_CENTER_AVERAGE_H_
#ifndef FOURTH_CENTER_AVERAGE_H
#define FOURTH_CENTER_AVERAGE_H

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
Real
Expand Down