From b0f4effe0f15d41815332832deb117ac12dc3708 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Wed, 7 Apr 2021 17:35:25 +0200 Subject: Remove Unused Variable in ComovingPsatdAlgorithm (#1879) --- .../SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H | 1 - .../SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms') 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 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 -- cgit v1.2.3