From f5d066441c09777f4c6f194d77759179019abcfb Mon Sep 17 00:00:00 2001 From: Maxence Thevenet Date: Wed, 24 Mar 2021 09:31:09 +0100 Subject: [PATCH] must pass charge and mass by reference --- src/particles/PlasmaParticleContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/particles/PlasmaParticleContainer.cpp b/src/particles/PlasmaParticleContainer.cpp index 67b4f98b32..e6a3731d96 100644 --- a/src/particles/PlasmaParticleContainer.cpp +++ b/src/particles/PlasmaParticleContainer.cpp @@ -4,7 +4,7 @@ namespace { - bool QueryElementSetChargeMass (amrex::ParmParse& pp, amrex::Real charge, amrex::Real mass) + bool QueryElementSetChargeMass (amrex::ParmParse& pp, amrex::Real& charge, amrex::Real& mass) { // normalized_units is directly queried here so we can defined the appropriate PhysConst // locally. We cannot use Hipace::m_phys_const as it has not been initialized when the