Skip to content

Commit 74102da

Browse files
ax3lEZonidpgrote
authored
Doxygen CI: Warnings as Error (#3560)
Make sure that no Doxygen warnings get in, as we do in other CI runs already. Depends on AMReX-Codes/amrex#3061 --------- Co-authored-by: Edoardo Zoni <[email protected]> Co-authored-by: Edoardo Zoni <[email protected]> Co-authored-by: David Grote <[email protected]>
1 parent 1e2fe15 commit 74102da

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+149
-115
lines changed

.github/workflows/source.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ jobs:
3333
run: .github/workflows/source/check_inputs.py
3434
- name: Doxygen
3535
run: |
36-
sudo apt-get install -y --no-install-recommends doxygen
36+
sudo apt update
37+
sudo apt install -y doxygen texlive-latex-base texlive-latex-extra ghostscript
3738
.github/workflows/source/doxygen

.github/workflows/source/doxygen

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright 2020 Axel Huebl
3+
# Copyright 2020-2023 The WarpX Community
44
#
55
# License: BSD-3-Clause-LBNL
6-
7-
# search recursive inside a folder if a file contains tabs
8-
#
9-
# @result 0 if no files are found, else 1
10-
#
6+
# Authors: Axel Huebl
117

128
set -eu -o pipefail
139

1410
cd Docs
11+
12+
curl -L -o amrex-doxygen-web.tag.xml \
13+
https://amrex-codes.github.io/amrex/docs_xml/doxygen/amrex-doxygen-web.tag.xml
14+
15+
curl -L -o openpmd-api-doxygen-web.tag.xml \
16+
https://openpmd-api.readthedocs.io/en/latest/_static/doxyhtml/openpmd-api-doxygen-web.tag.xml
17+
18+
# Treat all warnings as errors
19+
if ! grep -q "WARN_AS_ERROR = YES" Doxyfile; then
20+
# Add line with the comment
21+
echo "" >> Doxyfile
22+
echo "# Overwrite value of WARN_AS_ERROR" >> Doxyfile
23+
echo "WARN_AS_ERROR = YES" >> Doxyfile
24+
fi
25+
26+
# Run doxygen
1527
doxygen

Docs/Doxyfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,3 +2710,6 @@ GENERATE_LEGEND = YES
27102710
# The default value is: YES.
27112711

27122712
DOT_CLEANUP = YES
2713+
2714+
# Overwrite value of WARN_AS_ERROR
2715+
WARN_AS_ERROR = YES

Source/BoundaryConditions/PEC_Insulator.H

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,12 @@ public:
9191
* \param[in] a_Fz_x_lo the parser for the tangential field at the boundary
9292
* \param[in] a_Fy_x_hi the parser for the tangential field at the boundary
9393
* \param[in] a_Fz_x_hi the parser for the tangential field at the boundary
94-
* \param[in] set_F_y_lo whether the tangential field at the boundary was specified
95-
* \param[in] set_F_y_hi whether the tangential field at the boundary was specified
96-
* \param[in] a_Fx_y_lo the parser for the tangential field at the boundary
97-
* \param[in] a_Fz_y_lo the parser for the tangential field at the boundary
98-
* \param[in] a_Fx_y_hi the parser for the tangential field at the boundary
99-
* \param[in] a_Fz_y_hi the parser for the tangential field at the boundary
100-
* \param[in] set_F_z_lo whether the tangential field at the boundary was specified
101-
* \param[in] set_F_z_hi whether the tangential field at the boundary was specified
102-
* \param[in] a_Fx_z_lo the parser for the tangential field at the boundary
103-
* \param[in] a_Fy_z_lo the parser for the tangential field at the boundary
104-
* \param[in] a_Fx_z_hi the parser for the tangential field at the boundary
105-
* \param[in] a_Fy_z_hi the parser for the tangential field at the boundary
94+
* \\param[in] set_F_z_lo whether the tangential field at the boundary was specified
95+
* \\param[in] set_F_z_hi whether the tangential field at the boundary was specified
96+
* \\param[in] a_Fx_z_lo the parser for the tangential field at the boundary
97+
* \\param[in] a_Fy_z_lo the parser for the tangential field at the boundary
98+
* \\param[in] a_Fx_z_hi the parser for the tangential field at the boundary
99+
* \\param[in] a_Fy_z_hi the parser for the tangential field at the boundary
106100
*/
107101
void
108102
ApplyPEC_InsulatortoField (std::array<amrex::MultiFab*, 3> field,

Source/BoundaryConditions/WarpX_PEC.H

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ namespace PEC {
2121
* \param[in,out] Efield Boundary values of tangential Efield are set to zero
2222
* \param[in] field_boundary_lo Boundary types of the "low" boundaries
2323
* \param[in] field_boundary_hi Boundary types of the "high" boundaries
24+
* \param[in] bc_type Boundary condition type to be applied
2425
* \param[in] ng_fieldgather number of guard cells used by field gather
2526
* \param[in] geom geometry object of level "lev"
2627
* \param[in] lev level of the Multifab
2728
* \param[in] patch_type coarse or fine
2829
* \param[in] ref_ratios vector containing the refinement ratios of the refinement levels
29-
* \param[in] split_pml_field whether pml the multifab is the regular Efield or
30-
* split pml field
30+
* \param[in] split_pml_field whether the MultiFab is the regular Efield or the split PML field
3131
*/
3232
void ApplyPECtoEfield (
3333
std::array<amrex::MultiFab*, 3> Efield,
@@ -45,11 +45,13 @@ namespace PEC {
4545
* \param[in,out] Bfield Boundary values of normal Bfield are set to zero.
4646
* \param[in] field_boundary_lo Boundary types of the "low" field boundaries
4747
* \param[in] field_boundary_hi Boundary types of the "high" field boundaries
48+
* \param[in] bc_type Boundary condition type to be applied
4849
* \param[in] ng_fieldgather number of guard cells used by field gather
4950
* \param[in] geom geometry object of level "lev"
5051
* \param[in] lev level of the Multifab
5152
* \param[in] patch_type coarse or fine
5253
* \param[in] ref_ratios vector containing the refinement ratios of the refinement levels
54+
* \param[in] split_pml_field whether the MultiFab is the regular Bfield or the split PML field
5355
*/
5456
void ApplyPECtoBfield (
5557
std::array<amrex::MultiFab*, 3> Bfield,

Source/Diagnostics/BTDiagnostics.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ private:
136136
* m_t_lab, and z-positions for the i^th snapshot, i_buffer, and level, lev.
137137
* \param[in] i_buffer i^th snapshot or buffer
138138
* \param[in] lev mesh-refinement level for which the field and/or particle buffer data is initialized.
139+
* \param[in] restart whether this is called upon restarting a previous simulation
139140
*/
140141
void InitializeBufferData ( int i_buffer , int lev, bool restart=false) override;
141142
/** Whether to compute back-tranformed values for field-data.

Source/Diagnostics/BoundaryScrapingDiagnostics.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public:
2222
*
2323
* @param i index of diagnostics in MultiDiagnostics::alldiags
2424
* @param name diagnostics name in the inputs file
25+
* @param diag_type diagnostics type (e.g., full, back-transformed, time-averaged, etc.)
2526
*/
2627
BoundaryScrapingDiagnostics (int i, const std::string& name, DiagTypes diag_type);
2728

Source/Diagnostics/ComputeDiagFunctors/BackTransformParticleFunctor.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct SelectParticles
2424
/**
2525
* \brief Constructor of SelectParticles functor.
2626
*
27+
* @param[in] pc WarpX particle container
2728
* @param[in] a_pti WarpX particle iterator
2829
* @param[in] current_z_boost current z-position of the slice in boosted frame
2930
* @param[in] old_z_boost previous z-position of the slice in boosted frame
@@ -78,6 +79,7 @@ struct LorentzTransformParticles
7879
/**
7980
* \brief Constructor of the LorentzTransformParticles functor.
8081
*
82+
* @param[in] pc WarpX particle container
8183
* @param[in] a_pti WarpX particle iterator
8284
* @param[in] t_boost time in boosted frame
8385
* @param[in] dt timestep in boosted-frame

Source/Diagnostics/ComputeDiagFunctors/RhoFunctor.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public:
1919
* \param[in] lev level of MultiFab
2020
* \param[in] crse_ratio coarsening ratio for interpolation of field values
2121
* from simulation MultiFabs to the output MultiFab mf_dst
22+
* \param[in] apply_rz_psatd_filter if true, apply RZ filter in spectral space
2223
* \param[in] species_index Index of species to dump rho per species. This argument
2324
* is optional and defaults to -1 (dump total rho)
2425
* \param[in] convertRZmodes2cartesian if true, all RZ modes are averaged into one component

Source/Diagnostics/Diagnostics.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public:
3636
*
3737
* @param i index of diagnostics in MultiDiagnostics::alldiags
3838
* @param name diagnostics name in the inputs file
39+
* @param diag_type diagnostics type (e.g., full, back-transformed, time-averaged, etc.)
3940
*/
4041
Diagnostics (int i, std::string name, DiagTypes diag_type);
4142

@@ -197,6 +198,7 @@ protected:
197198
/** Initialize m_mf_output vectors and data required to construct the buffers
198199
* \param[in] i_buffer index of buffer for which the output MultiFab is defined.
199200
* \param[in] lev level on which the output MultiFab is defined
201+
* \param[in] restart whether this is called upon restarting a previous simulation
200202
*/
201203
virtual void InitializeBufferData (int i_buffer, int lev, bool restart=false) = 0;
202204
/** Initialize member variables and arrays specific to the diagnostics in the

0 commit comments

Comments
 (0)