Skip to content

Commit

Permalink
clang-tidy fixes for AMREX_SPACEDIM
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Jul 13, 2023
1 parent bbfd1e6 commit 3f2b6e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion amr-wind/core/Field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ FieldInfo::FieldInfo(
, m_ngrow(ngrow)
, m_nstates(nstates)
, m_floc(floc)
, m_bc_values(AMREX_SPACEDIM * 2, amrex::Vector<amrex::Real>(ncomp, 0.0))
, m_bc_values(
static_cast<long>(AMREX_SPACEDIM) * 2,
amrex::Vector<amrex::Real>(ncomp, 0.0))
, m_bc_values_dview(static_cast<long>(ncomp) * AMREX_SPACEDIM * 2)
, m_bcrec(ncomp)
, m_bcrec_d(ncomp)
Expand Down
10 changes: 5 additions & 5 deletions amr-wind/overset/TiogaInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ AMROversetInfo::AMROversetInfo(const int nglobal, const int nlocal)
: level(nglobal)
, mpi_rank(nglobal)
, local_id(nglobal)
, ilow(AMREX_SPACEDIM * nglobal)
, ihigh(AMREX_SPACEDIM * nglobal)
, dims(AMREX_SPACEDIM * nglobal)
, xlo(AMREX_SPACEDIM * nglobal)
, dx(AMREX_SPACEDIM * nglobal)
, ilow(static_cast<size_t>(AMREX_SPACEDIM) * nglobal)
, ihigh(static_cast<size_t>(AMREX_SPACEDIM) * nglobal)
, dims(static_cast<size_t>(AMREX_SPACEDIM) * nglobal)
, xlo(static_cast<size_t>(AMREX_SPACEDIM) * nglobal)
, dx(static_cast<size_t>(AMREX_SPACEDIM) * nglobal)
, global_idmap(nlocal)
, iblank_node(nlocal)
, iblank_cell(nlocal)
Expand Down

0 comments on commit 3f2b6e8

Please sign in to comment.