diff --git a/Src/Particle/AMReX_ParticleMesh.H b/Src/Particle/AMReX_ParticleMesh.H index 2ded8df7506..90b99831850 100644 --- a/Src/Particle/AMReX_ParticleMesh.H +++ b/Src/Particle/AMReX_ParticleMesh.H @@ -26,7 +26,7 @@ auto call_f (F const& f, return f(p.getSuperParticle(i), fabarr, plo, dxi); } else if constexpr (IsCallable::value) { return f(p.getSuperParticle(i), fabarr); - } else if constexpr (IsCallable::value) { + } else if constexpr (IsCallable::value) { return f(p, i, fabarr, plo, dxi); } else { return f(p, i, fabarr);