From 807cc1e022dc1a052e8e4971a6a4f781a7c94c86 Mon Sep 17 00:00:00 2001 From: danielbelkin Date: Thu, 30 Jul 2020 07:05:33 -0700 Subject: Add input parameter to control Galerkin-scheme gather (#1191) * Rename l_lower_order_in_v to galerkin_interpolation * Changed galerkin_interpolation from int to bool * ... and same for member versions. * Add input parameter to control galerkin_interpolation * Update documentation * semicolon * Update Docs/source/running_cpp/parameters.rst Co-authored-by: Axel Huebl * Update Docs/source/running_cpp/parameters.rst Resolve ambiguity Co-authored-by: Axel Huebl * Fix doc * Add references to documentation Co-authored-by: Axel Huebl --- Source/Particles/PhysicalParticleContainer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 8c6959060..250cf2816 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1436,7 +1436,7 @@ PhysicalParticleContainer::PushP (int lev, Real dt, const Dim3 lo = lbound(box); - int l_lower_order_in_v = WarpX::l_lower_order_in_v; + bool galerkin_interpolation = WarpX::galerkin_interpolation; int nox = WarpX::nox; int n_rz_azimuthal_modes = WarpX::n_rz_azimuthal_modes; @@ -1493,7 +1493,7 @@ PhysicalParticleContainer::PushP (int lev, Real dt, ex_arr, ey_arr, ez_arr, bx_arr, by_arr, bz_arr, ex_type, ey_type, ez_type, bx_type, by_type, bz_type, dx_arr, xyzmin_arr, lo, n_rz_azimuthal_modes, - nox, l_lower_order_in_v); + nox, galerkin_interpolation); } if (do_crr) { @@ -1797,7 +1797,7 @@ PhysicalParticleContainer::PushPX (WarpXParIter& pti, const Dim3 lo = lbound(box); - int l_lower_order_in_v = WarpX::l_lower_order_in_v; + bool galerkin_interpolation = WarpX::galerkin_interpolation; int nox = WarpX::nox; int n_rz_azimuthal_modes = WarpX::n_rz_azimuthal_modes; @@ -1872,7 +1872,7 @@ PhysicalParticleContainer::PushPX (WarpXParIter& pti, ex_arr, ey_arr, ez_arr, bx_arr, by_arr, bz_arr, ex_type, ey_type, ez_type, bx_type, by_type, bz_type, dx_arr, xyzmin_arr, lo, n_rz_azimuthal_modes, - nox, l_lower_order_in_v); + nox, galerkin_interpolation); } scaleFields(xp, yp, zp, Exp, Eyp, Ezp, Bxp, Byp, Bzp); -- cgit v1.2.3