aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-03-19 08:08:26 -0700
committerGravatar GitHub <noreply@github.com> 2021-03-19 08:08:26 -0700
commit0310202ef8a1ffddbb07d708f5232baae8dd7cb5 (patch)
tree17ff681a0079cad6845057d0bf29e3a080e562fd /Source/FieldSolver/SpectralSolver/SpectralAlgorithms
parent2cc2c5e61f593e5ffeb3989ae125c0473443b733 (diff)
downloadWarpX-0310202ef8a1ffddbb07d708f5232baae8dd7cb5.tar.gz
WarpX-0310202ef8a1ffddbb07d708f5232baae8dd7cb5.tar.zst
WarpX-0310202ef8a1ffddbb07d708f5232baae8dd7cb5.zip
Warnings: PSATD+RZ & More (#1814)
* PSATD+RZ: Fix Warnings Fix a couple of warnings in PSATD + RZ. * BesselRoots: Missing Include & using * Kernel & Util: Unused Code & Var
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H2
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp2
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H4
3 files changed, 4 insertions, 4 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
index d5efe5b74..efa907d14 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H
@@ -41,7 +41,7 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm
} else {
return SpectralFieldIndex::n_fields;
}
- };
+ }
// TODO Add Doxygen docs
void InitializeSpectralCoefficients (
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
index b96d5fa93..86d9f9696 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp
@@ -299,7 +299,7 @@ PsatdAlgorithmRZ::CurrentCorrection (const int lev,
}
void
-PsatdAlgorithmRZ::VayDeposition (const int lev /**/,
+PsatdAlgorithmRZ::VayDeposition (const int /* lev */,
SpectralFieldDataRZ& /*field_data*/,
std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/)
{
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H
index c19d2fc5e..51bba5b87 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H
@@ -26,7 +26,7 @@ class SpectralBaseAlgorithmRZ
// The destructor should also be a virtual function, so that
// a pointer to subclass of `SpectraBaseAlgorithm` actually
// calls the subclass's destructor.
- virtual ~SpectralBaseAlgorithmRZ() {};
+ virtual ~SpectralBaseAlgorithmRZ() {}
/**
* \brief Virtual function for current correction in Fourier space
@@ -74,7 +74,7 @@ class SpectralBaseAlgorithmRZ
int const norder_z, bool const nodal)
// Compute and assign the modified k vectors
: modified_kz_vec(spectral_kspace.getModifiedKComponent(dm, 1, norder_z, nodal))
- {};
+ {}
// Modified finite-order vectors
KVectorComponent modified_kz_vec;