Skip to content

Commit

Permalink
clang-tidy: make const
Browse files Browse the repository at this point in the history
  • Loading branch information
biboyd committed May 24, 2024
1 parent da428da commit 8ec4542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Source/Maestro.H
Original file line number Diff line number Diff line change
Expand Up @@ -1734,7 +1734,7 @@ class Maestro : public amrex::AmrCore {
amrex::Array4<amrex::Real> const ury,
amrex::Array4<amrex::Real> const uimhy,
const amrex::Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx);
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const;

void VelPredVelocities(const amrex::MFIter& mfi,
amrex::Array4<const amrex::Real> const utilde,
Expand All @@ -1755,7 +1755,7 @@ class Maestro : public amrex::AmrCore {
amrex::Array4<const amrex::Real> const force,
amrex::Array4<const amrex::Real> const w0_cart_in,
const amrex::Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx);
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const;
#else
void VelPredInterface(const amrex::MFIter& mfi,
amrex::Array4<const amrex::Real> const utilde,
Expand All @@ -1779,7 +1779,7 @@ class Maestro : public amrex::AmrCore {
amrex::Array4<amrex::Real> const urz,
amrex::Array4<amrex::Real> const uimhz,
const amrex::Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx);
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const;

void VelPredTransverse(const amrex::MFIter& mfi,
amrex::Array4<const amrex::Real> const utilde,
Expand All @@ -1802,7 +1802,7 @@ class Maestro : public amrex::AmrCore {
amrex::Array4<amrex::Real> const wimhxy,
amrex::Array4<amrex::Real> const wimhyx,
const amrex::Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx);
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const;

void VelPredVelocities(const amrex::MFIter& mfi,
amrex::Array4<const amrex::Real> const utilde,
Expand Down Expand Up @@ -1836,7 +1836,7 @@ class Maestro : public amrex::AmrCore {
amrex::Array4<const amrex::Real> const force,
amrex::Array4<const amrex::Real> const w0_cart_in,
const amrex::Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx);
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const;
#endif
////////////////////////

Expand Down
10 changes: 5 additions & 5 deletions Source/MaestroVelPred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ void Maestro::VelPredInterface(
Array4<const Real> const Ipv, Array4<Real> const ulx,
Array4<Real> const urx, Array4<Real> const uimhx, Array4<Real> const uly,
Array4<Real> const ury, Array4<Real> const uimhy, const Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) {
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const {
// timer for profiling
BL_PROFILE_VAR("Maestro::VelPredInterface()", VelPredInterface);

Expand Down Expand Up @@ -551,7 +551,7 @@ void Maestro::VelPredVelocities(
Array4<const Real> const uimhx, Array4<const Real> const uly,
Array4<const Real> const ury, Array4<const Real> const uimhy,
Array4<const Real> const force, Array4<const Real> const w0_cart_in,
const Box& domainBox, const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) {
const Box& domainBox, const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const {
// timer for profiling
BL_PROFILE_VAR("Maestro::VelPredVelocities()", VelPredVelocities);

Expand Down Expand Up @@ -742,7 +742,7 @@ void Maestro::VelPredInterface(
Array4<Real> const ulx, Array4<Real> const urx, Array4<Real> const uimhx,
Array4<Real> const uly, Array4<Real> const ury, Array4<Real> const uimhy,
Array4<Real> const ulz, Array4<Real> const urz, Array4<Real> const uimhz,
const Box& domainBox, const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) {
const Box& domainBox, const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const {
// timer for profiling
BL_PROFILE_VAR("Maestro::VelPredInterface()", VelPredInterface);

Expand Down Expand Up @@ -1138,7 +1138,7 @@ void Maestro::VelPredTransverse(
Array4<Real> const uimhyz, Array4<Real> const uimhzy,
Array4<Real> const vimhxz, Array4<Real> const vimhzx,
Array4<Real> const wimhxy, Array4<Real> const wimhyx, const Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) {
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const {
// timer for profiling
BL_PROFILE_VAR("Maestro::VelPredTransverse()", VelPredTransverse);

Expand Down Expand Up @@ -1611,7 +1611,7 @@ void Maestro::VelPredVelocities(
Array4<const Real> const vimhzx, Array4<const Real> const wimhxy,
Array4<const Real> const wimhyx, Array4<const Real> const force,
Array4<const Real> const w0_cart_in, const Box& domainBox,
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) {
const amrex::GpuArray<Real, AMREX_SPACEDIM> dx) const {
// timer for profiling
BL_PROFILE_VAR("Maestro::VelPredVelocities()", VelPredVelocities);

Expand Down

0 comments on commit 8ec4542

Please sign in to comment.