aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2021-04-07 17:35:25 +0200
committerGravatar GitHub <noreply@github.com> 2021-04-07 08:35:25 -0700
commitb0f4effe0f15d41815332832deb117ac12dc3708 (patch)
tree80e44da4a2bb34fde4a32611950dcb08263738cd /Source/FieldSolver/SpectralSolver
parent32b948dfb0238b571eb34a46c099827225076a9a (diff)
downloadWarpX-b0f4effe0f15d41815332832deb117ac12dc3708.tar.gz
WarpX-b0f4effe0f15d41815332832deb117ac12dc3708.tar.zst
WarpX-b0f4effe0f15d41815332832deb117ac12dc3708.zip
Remove Unused Variable in ComovingPsatdAlgorithm (#1879)
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H1
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp5
2 files changed, 3 insertions, 3 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H
index 22b04aeba..76526024f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H
@@ -87,7 +87,6 @@ class ComovingPsatdAlgorithm : public SpectralBaseAlgorithm
// Additional member variables
amrex::Array<amrex::Real,3> m_v_comoving;
amrex::Real m_dt;
- bool m_update_with_rho;
};
#endif // WARPX_USE_PSATD
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp
index 96b993dcf..eb4f13bb4 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp
@@ -24,9 +24,10 @@ ComovingPsatdAlgorithm::ComovingPsatdAlgorithm (const SpectralKSpace& spectral_k
kz_vec(spectral_kspace.getModifiedKComponent(dm, 1, -1, false)),
#endif
m_v_comoving(v_comoving),
- m_dt(dt),
- m_update_with_rho(update_with_rho)
+ m_dt(dt)
{
+ amrex::ignore_unused(update_with_rho);
+
const BoxArray& ba = spectral_kspace.spectralspace_ba;
// Allocate arrays of real spectral coefficients