Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warns #248

Merged
merged 13 commits into from
Sep 18, 2023
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ jobs:
#set -eu -o pipefail
cmake --build . --parallel ${{env.NPROCS}} 2>&1 | tee -a clang-tidy-full-report.txt
egrep "warning:|error:" clang-tidy-full-report.txt \
| egrep -v "Submodules/amrex|Submodules/sundials" \
| egrep -v "Submodules/amrex|Submodules/sundials|Submodules/AMReX-Hydro" \
| egrep -v "ld: warning:" | sort | uniq \
| awk 'BEGIN{i=0}{print $0}{i++}END{print "Warnings: "i}' > clang-tidy-warnings.txt
- name: Full report
Expand All @@ -582,7 +582,7 @@ jobs:
echo "::add-matcher::.github/problem-matchers/gcc.json"
cat clang-tidy-warnings.txt
export return=$(tail -n 1 clang-tidy-warnings.txt | awk '{print $2}')
#exit ${return}
exit ${return}
Lint-codeql:
needs: Formatting
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef _EBUSERDEFINED_H
#define _EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/ChallengeProblem/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlowSpray/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/CounterFlowSpray/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/DiffBunsen2D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/DiffBunsen2D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/JetInCrossflow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_FArrayBox.H>
#include <AMReX_Geometry.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/JetInCrossflow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/NormalJet_OpenDomain/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/NormalJet_OpenDomain/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen2D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen2D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen3D/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/PremBunsen3D/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/SwirlFlowWallInteractions/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/SwirlFlowWallInteractions/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/TripleFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Cases/TripleFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/FlameSheetIons/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/FlameSheetIons/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/IonizedAirWave/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/IonizedAirWave/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/PremBunsen3DKuhl/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/Efield/PremBunsen3DKuhl/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_BackwardStepFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedVortex/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_EnclosedVortex/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_FlowPastCylinder/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/EBUserDefined.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef _EBUSERDEFINED_H_
#define _EBUSERDEFINED_H_
#ifndef EBUSERDEFINED_H
#define EBUSERDEFINED_H

using namespace amrex;

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EB_PipeFlow/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedFlame/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedFlame/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedInjection/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/EnclosedInjection/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>

Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/FlameSheet/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/FlameSheet/pelelm_prob_parm.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_PARM_H_
#define PELELM_PROB_PARM_H_
#ifndef PELELM_PROB_PARM_H
#define PELELM_PROB_PARM_H

#include <AMReX_REAL.H>
#include <AMReX_GpuMemory.H>
Expand Down
4 changes: 2 additions & 2 deletions Exec/RegTests/HITDecay/pelelm_prob.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef PELELM_PROB_H_
#define PELELM_PROB_H_
#ifndef PELELM_PROB_H
#define PELELM_PROB_H

#include <AMReX_Geometry.H>
#include <AMReX_FArrayBox.H>
Expand Down
Loading
Loading