aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2021-10-12 02:39:58 +0200
committerGravatar GitHub <noreply@github.com> 2021-10-11 17:39:58 -0700
commit5a12391f0c2350e9083bf3138da210eb81707e6e (patch)
tree5755fcbc17dfd120e2f3ad8fd019de7b15aca24f /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H
parentd367eb0c15c36baf390d0c9ec7bc068fe25490b7 (diff)
downloadWarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.gz
WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.tar.zst
WarpX-5a12391f0c2350e9083bf3138da210eb81707e6e.zip
Use parser for more input parameters (#2386)
* Use parser for more input parameters * Fix PSATD compilation and apply suggestions from code review * Avoid out of bound array access for num_particles_per_cell_each_dim * Fix few input files with respect to num_particles_per_cell_each_dim * Fix get that incorrectly became query
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H
index 8ac6a1d58..0907cf37f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/GalileanPsatdAlgorithmRZ.H
@@ -21,7 +21,7 @@ class GalileanPsatdAlgorithmRZ : public SpectralBaseAlgorithmRZ
const SpectralFieldIndex& spectral_index,
int const n_rz_azimuthal_modes, int const norder_z,
bool const nodal,
- const amrex::Array<amrex::Real,3>& v_galilean,
+ const amrex::Vector<amrex::Real>& v_galilean,
amrex::Real const dt_step,
bool const update_with_rho);
// Redefine functions from base class
@@ -65,7 +65,7 @@ class GalileanPsatdAlgorithmRZ : public SpectralBaseAlgorithmRZ
bool coefficients_initialized;
// Note that dt and v_galilean are saved to use in InitializeSpectralCoefficients
amrex::Real const m_dt;
- amrex::Array<amrex::Real,3> m_v_galilean;
+ amrex::Vector<amrex::Real> m_v_galilean;
bool m_update_with_rho;
SpectralRealCoefficients C_coef, S_ck_coef;