Skip to content

Commit

Permalink
Lint: Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mirenradia committed Jul 19, 2024
1 parent 8b49fe7 commit 4047f30
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Source/CCZ4/Constraints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include "Tensor.hpp"
#include "simd.hpp"

// AMReX includes
#include <AMReX_MultiFab.H>

// System includes
#include <array>

Expand Down Expand Up @@ -80,6 +83,7 @@ class Constraints
int /*level*/);

private:
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
static inline bool s_calc_mom_norm =
false; // set to true with set_up() to store just sqrt(Mom1^2 + Mom2^2 +
// Mom3^2) instead of Mom1, Mom2, Mom3 separately
Expand Down
2 changes: 1 addition & 1 deletion Source/GRTeclynCore/GRAMRLevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void GRAMRLevel::stateVariableSetUp()
else if (bctype == BoundaryConditions::REFLECTIVE_BC)
{
int parity =
boundary_conditions.get_state_var_parity(icomp, idim);
BoundaryConditions::get_state_var_parity(icomp, idim);
if (parity == 1)
{
bc.set(face, amrex::BCType::reflect_even);
Expand Down
1 change: 1 addition & 0 deletions Source/utils/Interval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifndef INTERVAL_H_
#define INTERVAL_H_

#include <AMReX_Extension.H>
#include <AMReX_GpuQualifiers.H>

struct Interval
Expand Down
1 change: 1 addition & 0 deletions Tests/ConstraintsTest/ConstraintsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void run_constraints_test()
const auto &in_arrays = in_mf.arrays();
amrex::ParallelFor(
in_mf, in_mf.nGrowVect(),
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
[=] AMREX_GPU_DEVICE(int ibox, int i, int j, int k)
{
const amrex::IntVect iv{i, j, k};
Expand Down
1 change: 1 addition & 0 deletions Tests/Weyl4Test/Weyl4Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void run_weyl4_test()
const auto &in_arrays = in_mf.arrays();
amrex::ParallelFor(
in_mf, in_mf.nGrowVect(),
// NOLINTNEXTLINE(bugprone-easily-swappable-parameters)
[=] AMREX_GPU_DEVICE(int ibox, int i, int j, int k)
{
const amrex::IntVect iv{i, j, k};
Expand Down

0 comments on commit 4047f30

Please sign in to comment.