From 5a12391f0c2350e9083bf3138da210eb81707e6e Mon Sep 17 00:00:00 2001 From: Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> Date: Tue, 12 Oct 2021 02:39:58 +0200 Subject: 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 --- Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index 1df77f6f3..d0dce0fef 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -54,7 +54,7 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm const int norder_z, const bool nodal, const amrex::IntVect& fill_guards, - const amrex::Array& v_galilean, + const amrex::Vector& v_galilean, const amrex::Real dt, const bool update_with_rho, const bool time_averaging, @@ -162,7 +162,7 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm KVectorComponent modified_kz_vec_centered; // Other member variables - amrex::Array m_v_galilean; + amrex::Vector m_v_galilean; amrex::Real m_dt; bool m_update_with_rho; bool m_time_averaging; -- cgit v1.2.3