Skip to content

Commit

Permalink
Reintroduce readability-inconsistent-declaration-parameter-name check. (
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel authored Dec 31, 2021
1 parent 2d3d9eb commit 994ab5b
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-readability-inconsistent-declaration-parameter-name,-modernize-pass-by-value,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.NonNullParamChecker'
Checks: 'clang-diagnostic-*,clang-analyzer-*,corecppguidelines-*,modernize-*,readability-*,-readability-magic-numbers,-readability-identifier-naming,-modernize-avoid-c-arrays,-modernize-use-trailing-return-type,-readability-named-parameter,-readability-implicit-bool-conversion,-readability-isolate-declaration,-readability-braces-around-statements,-modernize-pass-by-value,-clang-analyzer-optin.cplusplus.VirtualCall,-clang-analyzer-core.NonNullParamChecker'
WarningsAsErrors: ''
HeaderFilterRegex: '^((?!/amrex/Src/|/googletest/).)*$'
AnalyzeTemporaryDtors: false
Expand Down
14 changes: 7 additions & 7 deletions amr-wind/core/FieldRepo.H
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public:
std::unique_ptr<ScratchField> create_scratch_field(
const std::string& name,
const int ncomp = 1,
const int ngrow = 0,
const int nghost = 0,
const FieldLoc floc = FieldLoc::CELL) const;

/** Create a scratch field
Expand All @@ -313,7 +313,7 @@ public:
*/
std::unique_ptr<ScratchField> create_scratch_field(
const int ncomp = 1,
const int ngrow = 0,
const int nghost = 0,
const FieldLoc floc = FieldLoc::CELL) const;

//! Advance all fields with more than one timestate to the new timestep
Expand Down Expand Up @@ -373,7 +373,7 @@ protected:
void allocate_field_data(
int lev,
const Field& field,
LevelDataHolder& fdata,
LevelDataHolder& level_data,
const amrex::FabFactory<amrex::FArrayBox>& factory);

//! Allocate field data at all levels
Expand All @@ -383,18 +383,18 @@ protected:
void allocate_field_data(
const amrex::BoxArray& ba,
const amrex::DistributionMapping& dm,
LevelDataHolder& fdata,
LevelDataHolder& level_data,
const amrex::FabFactory<amrex::FArrayBox>& factory);

void
allocate_field_data(int lev, const IntField& field, LevelDataHolder& fdata);
void allocate_field_data(
int lev, const IntField& field, LevelDataHolder& level_data);

void allocate_field_data(const IntField& field);

void allocate_field_data(
const amrex::BoxArray& ba,
const amrex::DistributionMapping& dm,
LevelDataHolder& fdata,
LevelDataHolder& level_data,
const amrex::FabFactory<amrex::IArrayBox>& factory);

//! Reference to the mesh instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public:
const amrex::MFIter& mfi,
const amrex::Box& bx,
const FieldState fstate,
const amrex::Array4<amrex::Real>& src_term) const override;
const amrex::Array4<amrex::Real>& vel_forces) const override;

private:
amrex::Vector<amrex::Real> m_gravity{{0.0, 0.0, -9.81}};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public:
const amrex::MFIter& mfi,
const amrex::Box& bx,
const FieldState fstate,
const amrex::Array4<amrex::Real>& src_term) const override;
const amrex::Array4<amrex::Real>& vel_forces) const override;

private:
amrex::Vector<amrex::Real> m_gravity{{0.0, 0.0, -9.81}};
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/physics/VortexRing.H
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public:
void post_advance_work() override {}

template <typename VortexRingType>
void initialize_velocity(const VortexRingType& core);
void initialize_velocity(const VortexRingType& vorticity_theta);

private:
const CFDSim& m_sim;
Expand Down
4 changes: 2 additions & 2 deletions amr-wind/utilities/FieldPlaneAveraging.H
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public:
/** evaluate line average at specific location for any average component */
amrex::Real line_average_interpolated(amrex::Real x, int comp) const;
/** evaluate line average at specific cell for any average component */
amrex::Real line_average_cell(int cell, int comp) const;
amrex::Real line_average_cell(int ind, int comp) const;

/** evaluate line average derivative at specific location for any average
component */
Expand Down Expand Up @@ -168,7 +168,7 @@ public: // public for GPU
amrex::Real line_hvelmag_average_interpolated(amrex::Real x) const;
/** evaluate line average at specific cell for horizontal velocity magnitude
*/
amrex::Real line_hvelmag_average_cell(int cell) const;
amrex::Real line_hvelmag_average_cell(int ind) const;

/** compute derivatives of horizontal velocity magnitude */
void compute_line_hvelmag_derivatives();
Expand Down
4 changes: 2 additions & 2 deletions amr-wind/utilities/SecondMomentAveraging.H
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public:
/** evaluate second moment at specific location for each component */
amrex::Real line_average_interpolated(amrex::Real x, int comp) const;
/** evaluate second moment at specific cell for both components */
amrex::Real line_average_cell(int cell, int comp1, int comp2) const;
amrex::Real line_average_cell(int ind, int comp1, int comp2) const;
/** evaluate second moment at specific cell for each component */
amrex::Real line_average_cell(int cell, int comp) const;
amrex::Real line_average_cell(int ind, int comp) const;

const amrex::Vector<amrex::Real>& line_moment()
{
Expand Down
4 changes: 2 additions & 2 deletions amr-wind/utilities/ThirdMomentAveraging.H
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public:
amrex::Real line_average_interpolated(amrex::Real x, int comp) const;
/** evaluate third moment at specific cell for both components */
amrex::Real
line_average_cell(int cell, int comp1, int comp2, int comp3) const;
line_average_cell(int ind, int comp1, int comp2, int comp3) const;
/** evaluate third moment at specific cell for each component */
amrex::Real line_average_cell(int cell, int comp) const;
amrex::Real line_average_cell(int ind, int comp) const;

const amrex::Vector<amrex::Real>& line_moment()
{
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/utilities/console_io.H
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void print_summary(std::ostream&);

void print_mlmg_header(const std::string&);

void print_mlmg_info(const std::string& solver, const amrex::MLMG& mlmg);
void print_mlmg_info(const std::string& solve_name, const amrex::MLMG& mlmg);

void print_tpls(std::ostream&);

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/ABLFieldInit.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public:
const amrex::Geometry& geom,
const amrex::Array4<amrex::Real>& velocity,
const amrex::Array4<amrex::Real>& density,
const amrex::Array4<amrex::Real>& tracer) const;
const amrex::Array4<amrex::Real>& temperature) const;

/** Add temperature perturbations
*
Expand Down
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/ABLFillInflow.H
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public:
Field& field,
const amrex::AmrCore& mesh,
const SimTime& time,
const ABLBoundaryPlane& abl_bc);
const ABLBoundaryPlane& bndry_plane);

virtual ~ABLFillInflow();

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/ABLWallFunction.H
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private:
class ABLTempWallFunc : public FieldBCIface
{
public:
ABLTempWallFunc(Field& temperature, const ABLWallFunction& wall_func);
ABLTempWallFunc(Field& temperature, const ABLWallFunction& wall_fuc);

void operator()(Field& temperature, const FieldState rho_state) override;

Expand Down
2 changes: 1 addition & 1 deletion amr-wind/wind_energy/actuator/actuator_utils.H
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace utils {
* turbine
*/
std::set<int> determine_influenced_procs(
const amrex::AmrCore& mesh, const amrex::RealBox& rbox);
const amrex::AmrCore& mesh, const amrex::RealBox& rbx);

void determine_root_proc(ActInfo&, amrex::Vector<int>&);

Expand Down

0 comments on commit 994ab5b

Please sign in to comment.