Skip to content

Commit

Permalink
fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet committed Apr 2, 2024
1 parent 5c609de commit 5a1e680
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/convection/incflo_compute_advection_term.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ incflo::compute_convective_term (Vector<MultiFab*> const& conv_u,
Array4<Real const> rho = density[lev]->const_array(mfi);
Array4<Real > trac_tmp;

auto iconserv = get_tracer_iconserv_device_ptr();
auto const* iconserv = get_tracer_iconserv_device_ptr();
if ( any_conserv_trac ) {
trac_tmp = rhotrac[lev].array(mfi);

Expand Down
2 changes: 1 addition & 1 deletion src/incflo_compute_forces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void incflo::compute_tra_forces (Vector<MultiFab*> const& tra_forces,
// NOTE: this routine must return the force term for the update of (rho s), NOT just s.
if (m_advect_tracer) {

auto iconserv = get_tracer_iconserv_device_ptr();
auto const* iconserv = get_tracer_iconserv_device_ptr();
#ifdef _OPENMP
#pragma omp parallel if (Gpu::notInLaunchRegion())
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/incflo_explicit_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void incflo::tracer_explicit_update (Vector<MultiFab> const& tra_forces)
Array4<Real const> const& dtdt_o = ld.conv_tracer_o.const_array(mfi);
Array4<Real const> const& tra_f = tra_forces[lev].const_array(mfi);

auto iconserv = get_tracer_iconserv_device_ptr();
auto const* iconserv = get_tracer_iconserv_device_ptr();

if (m_diff_type == DiffusionType::Explicit)
{
Expand Down Expand Up @@ -116,7 +116,7 @@ void incflo::tracer_explicit_update_corrector (Vector<MultiFab> const& tra_force
Array4<Real const> const& dtdt_o = ld.conv_tracer_o.const_array(mfi);
Array4<Real const> const& dtdt = ld.conv_tracer.const_array(mfi);
Array4<Real const> const& tra_f = tra_forces[lev].const_array(mfi);
auto iconserv = get_tracer_iconserv_device_ptr();
auto const* iconserv = get_tracer_iconserv_device_ptr();

if (m_diff_type == DiffusionType::Explicit)
{
Expand Down

0 comments on commit 5a1e680

Please sign in to comment.